Difference between revisions of "Trig time block"
Jump to navigation
Jump to search
(Created page with "trig_time_block is a Extended Trigger Before Move trigger. It blocks a PC from going a given direction for the specified start and end times. May be combined with other tri...") |
|||
Line 17: | Line 17: | ||
|- | |- | ||
|Start time | |Start time | ||
|The time to start denying access to specified exit, using a 24 hour clock. | |The time to start denying access to specified exit, using a 24 hour clock. This number must be less than the '''end time''' | ||
|- | |- | ||
|End time | |End time | ||
|The time to start allowing access to specified exit, using a 24 hour clock. | |The time to start allowing access to specified exit, using a 24 hour clock. This number must be greater than the '''start time''' | ||
|- | |- | ||
|Success string vnum | |Success string vnum |
Revision as of 23:20, 25 December 2011
trig_time_block is a Extended Trigger Before Move trigger. It blocks a PC from going a given direction for the specified start and end times. May be combined with other trig_time_block triggers. If time falls outside of specified times, access is granted. Time wrapping is not supported, so specifying times that extend past midnight will not work as expected.
Usage:
Q <room vnum> <door direction> trig_time_block <start time (00-23)> <end time (00-23)> <success msg or -1> <fail msg or -1> -1
Field | Description |
---|---|
Room vnum | Room to apply the trigger to |
Door direction | The direction of the door to apply the trigger to |
Start time | The time to start denying access to specified exit, using a 24 hour clock. This number must be less than the end time |
End time | The time to start allowing access to specified exit, using a 24 hour clock. This number must be greater than the start time |
Success string vnum | -1 - No success message #STRINGS vnum with success message |
Fail string vnum | -1 - No failure message #STRINGS vnum with failure message |
-1 | Unused field |
Example:
Q 1200 1 trig_time_block 05 07 <success msg or -1> <fail msg or -1> -1 S