Difference between revisions of "Spec timed teleport"
Jump to navigation
Jump to search
(Modified spec) |
|||
Line 21: | Line 21: | ||
|- | |- | ||
| 1 | | 1 | ||
| Teleport | | Unconditional Teleport | ||
|- | |||
| 2 | |||
| Change of Teleport | |||
|} | |} | ||
|- | |- |
Revision as of 18:36, 7 April 2012
spec_timed_action is a Mob Extended Function. It causes the mob to perform a specific action periodically at a specified (MUD) time.
Usage:
N <mob vnum> spec_timed_action <action number> <two digit hour> <before action string vnum or -1> <after action string vnum or -1> -1
Field | Description | ||||||
---|---|---|---|---|---|---|---|
Mob Vnum | The vnum of the mob that this special function should be attached to | ||||||
Action Number | Specifies the action to perform
| ||||||
Hour | Two digit hour in 24-hour clock (e.g. 2pm = 14) | ||||||
Before Action Text | -1 is no message before the action is taken. Otherwise, description vnum specified in the #STRINGS section. | ||||||
After Action Text | -1 is no message after the action is taken. Otherwise, description vnum specified in the #STRINGS section. |
Example:
N 1200 spec_timed_action 1 21 2788 -1 -1 * Spec assigned to mob vnum 1200. At hour 21 (9pm), perform action 1 (teleport). Display string defined with vnum 2788.