Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
Old 05-02-2002, 01:34 AM   #1
Keljorian
Member
 
Join Date: Apr 2002
Location: Aberdeen MD
Posts: 56
Keljorian is on a distinguished road
I am a head builder don't know a thing about code. But I was wondering how hard it would be to have a mob pop up randomly in random areas, that is aggresive and based against the stats of the character.

Keljorian
Keljorian is offline   Reply With Quote
Old 05-02-2002, 02:01 AM   #2
Sidmouth
Member
 
Join Date: Apr 2002
Location: Washington, DC
Posts: 35
Sidmouth is on a distinguished road
Send a message via AIM to Sidmouth
Kinda depends on what codebase you are using...

If you are on rom, and you have a decent set of progs, it's possible, but really kludgy. You could put a room prog in every room with a random chance to trigger and load a mob that corresponds to the level of the player in the room. That's a lot of rprogs.

If it's not rom... dunno
Sidmouth is offline   Reply With Quote
Old 05-02-2002, 07:01 AM   #3
kaylus1
 
Posts: n/a
As mentioned depending on the mud type you are running, this could be anywhere from easy to moderate. With Diku-Derivs alot of them have *progs which allow you to use a generic scripting language. I know in Circle, DGScripts has a trigger suited quite nice:

Reset
Description: This trigger is called each time the zone of the room it is attached to is reset.
Argument: Not used.
Numeric Argument: The chance this trigger will run when it is checked.
Return value: Not used.
Variables: None.


If you are planning on using other than a Diku-Deriv then it can be easy too.. in an LPC based mud it's quite simple, just a nested switch in the create() of your room. Abermud and Mordor would probably have to be hardcoded (unless you have pDirt abermud)..

Kaylus@Solice
  Reply With Quote
Old 05-02-2002, 08:36 AM   #4
SoEnSo
New Member
 
Join Date: Apr 2002
Posts: 10
SoEnSo is on a distinguished road
On a note for ROM, if it was rom, my personal preferance would be to build 1 rprog(if it has rprogs) and then when the area is complete, get the coder to throw it into the db.c, so it fills each of those rooms in the area with it(or make a command that would span the rprog throughout the area)

just my thoughts, as thats how i would do it.
SoEnSo is offline   Reply With Quote
Old 05-02-2002, 09:47 AM   #5
Caxandra
Member
 
Join Date: Apr 2002
Posts: 44
Caxandra is on a distinguished road
I've seen a much simpler way of doing this.. not entirely random, but close.

Create a room, in this room add only one way exits/portals to differing sections of your game.  Have the mob reset in this room, and when he starts to wander, he'll use one of those exits to leave, thereby appearing in several different areas.

Hrm. This doesn't solve the stats of the character though. Sorry, I should have more caffiene before posting.
Caxandra is offline   Reply With Quote
Reply


Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 01:04 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2014