Zedit's Room Commands
Now comes the fun stuff, the room specific commands. When you add commands to the command list you will be asked what number in the list the command should be. This number should be the number of the slot you want the command to be in, if there already is a command in this spot, that command, and all the commands below, will be bumped down one spot to accomodate the change.
Commands can be made dependant on the command above them in the list. That means that if the first command is not carried out (ie a mob isn't loaded because there are already the maximum in the zone) then the dependent command will not be carried out either.
You have several options for the type of commands to be performed when the zone resets:
M) Load Mobile to room O) Load Object to room
E) Equip mobile with object G) Give an object to a mobile
P) Put object in another object D) Open/Close/Lock a Door
R) Remove an object from the room
Load Mobile to room - this will load the mob you specify into the room.
Load Object to room - this will load the object you specify into the room. Remember that the percentage chance that an object will be loaded is set in oedit, so this command will only load an object into the room based on the percentage load rate.
Equip mobile with object - equips a mobile with the object specified. You specify where the object gets placed on the mob(ie wielded, worn on wrist, etc). Again, the percentage chance that this will occure is set in the load rate for an object. This command should be made dependant on the mob loading into the room, otherwise there will be no mob for the object to load onto.
Give an object to a mobile - places the specified object into the mob's inventory. Again, the percentage chance that this will occure is set in the load rate for an object. This command should be made dependant on the mob loading into the room, otherwise there will be no mob for the object to load onto.
Put object in another object - places the object specified into another object. This container object should be a container and should already be loaded in the room. This command should be dependant on the loading of the container object into the room.
Open/Close/Lock a Door - set the state (open, closed, locked) of any door in the room.
Remove an object from the room - if the object is in the room, it is removed from the game. If the object isn't present then this command does nothing. You can use this to prevent the buildup of objects in a room byt first removing the object (if its there) and then loading the object back into the room.
We will try out adding a mob to a room and equiping it with an item. Here we go.
Open zedit for a room in your zone. Type in N (for a new command). Put this command as number 0 in the command list. Now pick option M, to load a mobile to the room. Pick XX00 as the mob you wish to load and input 1 as the maximum that can exist on the MUD (this can be changed later if you want more of these mobs in the game). Now we want to equip this mob with some clothing. Add another new command, this time at position 1 in the command list. Choose E to equip the mobile with an object and make sure to make this command dependant on the previous one's success, after all we don't want to be equipping a mobile with an object if the mobile didn't load for some reason. Input object 2400 (Brokken's Loincloth) and state that only 1 can exist on the MUD. Now, select position 13, worn about waist, to place the loincloth about your mob's waist. That's it. You've just learned the basics of zedit.
|