SETTING: Difference between revisions

From AddictHelp
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 9: Line 9:


You can assign more then one script to a mob/obj/room, and with the use of '''global''' variables, they can effectively interact.
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]]


[[CATEGORY:Scripts]]
[[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