SETTING: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
command to assign the script (mset, rset, oset). | command to assign the script (mset, rset, oset). | ||
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 | 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 | |||
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