User Tools

Site Tools


triggers:mprog:delay

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
triggers:mprog:delay [2014/12/24 03:43] – vodurtriggers:mprog:delay [2026/10/15 21:13] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-DELAY Keyword : 'delay' 
- 
-Argument: number 
- 
-Explanation: The argument is a percentage chance. This trigger activates when the delay of a mobile (set with the MOB DELAY command) expires. This trigger can be used to create staged mobile behaviour, for example, a guardian could see a player entering a room, give a warning and activate a delay. If the player is still present when the delay expires, the guard would attack the player. (See also MOB REMEMBER). A mobile can have several delay triggers, but every time the delay timer expires, all the triggers are checked and the first successful one executed. 
- 
-Note: "MOB DELAY" is not implemented for lua scripting. It is suggested to use "random 100" triggers and control variables to create similar functionality. 
- 
-Example: “Addmp 1000 delay 100” if the mob delay expires, the delay mprog will always trigger. (A better example of delay can be find at the end of this guide.) 
  
triggers/mprog/delay.1419392582.txt.gz · Last modified: by vodur