SETTING: Difference between revisions

From AddictHelp
Jump to navigation Jump to search
Kahlan (talk | contribs)
New page: To set a script on a mob/obj/room, you must edit that mob/obj or script with the appropriate olc command (medit, redit, oedit), then use the "?set" command to assign the script (mset, rset...
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
command to assign the script (mset, rset, oset).   
command to assign the script (mset, rset, oset).   


i.e. "oset script 1200"
Example:
  oset script 1200


will assign script vnum 1200 to the object currently being edited if it has
This will assign script vnum 1200 to the object currently being edited if it has not already been assigned.  If the script specified has been assigned, this will remove it, and you will get a message indicating what it's doing.
not already been assigned.  If the script specified has been assigned, this
will remove it, and you will get a message indicating what it's doing.


You can assign more then one script to a mob/obj/room, and using 'global'
You can assign more then one script to a mob/obj/room, and with the use of '''global''' variables, they can effectively interact.
variables, they can effectivly interact.
 
See also: [[SCRIPT COMMANDS]], [[VARIABLES]]
 
[[CATEGORY:Scripts]]

Latest revision as of 05:45, 29 November 2008

To set a script on a mob/obj/room, you must edit that mob/obj or script with the appropriate olc command (medit, redit, oedit), then use the "?set" command to assign the script (mset, rset, oset).

Example:

oset script 1200

This will assign script vnum 1200 to the object currently being edited if it has not already been assigned. If the script specified has been assigned, this will remove it, and you will get a message indicating what it's doing.

You can assign more then one script to a mob/obj/room, and with the use of global variables, they can effectively interact.

See also: SCRIPT COMMANDS, VARIABLES