Please select by the first letter of the name or type in your search below:

- A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z -
Other


.:. MPROGADD



Syntax:   mprogadd [mob vnum] [mprog vnum|name] [trigger] [delay] [phrase]
          mprogdelete [mob vnum] [#mprog]

For a list of triggers and their phrases, see 'help mob triggers'

The mobprog can be given by its vnum or its name (see 'help mpedit').  To see
the #mprog number of each mobprog on a mob, type: mproglist [mob vnum]
Both commands change the mob's programs and save the mob's zone file straight
away, so the change is kept for the whole game.  A phrase can be up to 200
characters.  You are then asked for a git commit message for the zone file,
as after 'medit save' (see 'help olc save').

A delay of -1 indicates that the script triggers immediately upon the event.
This means that whatever character update was occurring when the trigger fired is
interrupted while the trigger executes.  This is important because some triggers
have the ability to prevent such updates from succeeding.  For example, an EXIT
trigger can prevent a player from leaving the room, but only if the trigger fires
instantly (with a delay of -1).

A delay of 0 indicates that the script is added to the list of scripts to run on
the next update, and that we should 0 for 0 updates to run the script (So it will
literally be run on the next mobile update, which occurs immediately after a
character update in the code.)  This means that a delay of 0 makes the trigger
'seem' instant, but it gives the character update code a chance to finish before
executing the script.

Otherwise, the delay indicates how long the script waits to run, in 1/10ths of a
second.  Therefore a delay of 10 would indicate a delay of 1 second.

See also:  MOB PROGRAMS, MPEDIT, MOB FUNCTIONS, MOB COMMANDS, MOB TRIGGERS,
           MOB ACT CODES, MOB LOGIC, SEMANTIC





:: Beginning

 
 Copyright © 2003 A Moment in Tyme
 Web Design by: Tannil and Guy
.:. Top of Page