Difference between revisions of "Timer"

From PGE Wiki
Jump to navigation Jump to search
(Created page with "Category: LunaDLL Category: Autocode Commands ==Prototype== Timer,-,CUSTOM EVENT #,DISPLAY?,REPEAT?,Active time,- ==Description== Starts a timer that counts its Activ...")
 
(Added "lang=text" to remove "Syntax highlight errors")
 
Line 2: Line 2:
 
[[Category: Autocode Commands]]
 
[[Category: Autocode Commands]]
 
==Prototype==
 
==Prototype==
 +
<syntaxhighlight lang="text">
 
Timer,-,CUSTOM EVENT #,DISPLAY?,REPEAT?,Active time,-
 
Timer,-,CUSTOM EVENT #,DISPLAY?,REPEAT?,Active time,-
 +
</syntaxhighlight>
  
 
==Description==
 
==Description==
Line 16: Line 18:
  
 
==Examples==
 
==Examples==
<syntaxhighlight>
+
<syntaxhighlight lang="text">
 
// Timer that activates custom event #1000 after 100 seconds and displays itself
 
// Timer that activates custom event #1000 after 100 seconds and displays itself
 
Timer,0,1000,1,0,6000,0
 
Timer,0,1000,1,0,6000,0
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 14:35, 14 October 2019

Prototype

Timer,-,CUSTOM EVENT #,DISPLAY?,REPEAT?,Active time,-

Description

Starts a timer that counts its Active time down to 0. Once it reaches 0, it activates CUSTOM EVENT.

Notes

DISPLAY? = 0 = Don't show the timer in the top right corner DISPLAY? = 1 = Display the timer

REPEAT? = 0 = Don't restart the timer when it finishes. REPEAT? = 1 = Restart the timer back to its starting point when it finishes.

Examples

// Timer that activates custom event #1000 after 100 seconds and displays itself
Timer,0,1000,1,0,6000,0