This shows you the differences between two versions of the page.
triggers:timer [2014/12/24 04:00] vodur created |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | TIMER | ||
- | |||
- | Keyword : 'timer' | ||
- | |||
- | Argument: number | ||
- | |||
- | Explanation: This trigger works identically for mprogs/oprogs/aprogs. This trigger will fire every x seconds (x being whatever number is provided in the argument). | ||
- | |||
- | For mobs and objects, the timer is initiated upon loading, so if adding with addmp/addop, you will need to reload the mob/object for the trigger to activate. | ||
- | |||
- | For areas, the timer will initiate when area is loaded (boot/copyover) or immediately when added with addap. | ||
- | |||
- | Only 1 timer trigger is allowed for any given mob/object/area. If you need different actions at different intervals, you can simple use an interval that is the least common denominator and perform logic in the prog accordingly. | ||