timeout: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(merge)
m (Conversion script moved page Timeout to timeout: Converting page titles to lowercase)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
''[[:Category:Self Condition|Self Conditions]]:''
''For console command, see [[timeouts.txt]].''
 
== [[:Category:Self Condition|Self Conditions]] ==


; timeout [<seconds>]
; timeout [<seconds>]
: If this option is set, wait for the specified number of seconds before using the block again.
: If this option is set, wait for the specified number of seconds before using the block again.


''Target [[:Category:Monster Condition|Monster]] and [[:Category:Monster Condition|Player]] Conditions:''


; target_timeout [<seconds>]
== Console Command ==
: If this option is set, Kore will wait for this number of seconds before using this skill on a monster/player again. This is different from '''timeout''' because the time is stored for each monster/player.
;timeout (<timeout key>) [<seconds>]
 
:<timeout key>
::- a timeout key name from timeouts.txt.  
 
:<seconds>
::- the time in seconds.  


== Examples ==
:Set a timeout.
{| class="wikitable" border="1" cellspacing="0"
|-style=background-color:#F9F9F9;
!Command
!Description
|-
|align=center|timeout <timeout key>
|Display the current value of specified key name.
|-
|align=center|timeout <timeout key> <seconds>
|Set a new value for the specified key name.
|}


useSelf_item Gift Box {
timeout 5
}


: Use Gift Box every 5 seconds.
== [[EventMacro#Parameters|Parameter]] of the automacro eventMacros: ==
{{Template:Timeout}}


[[Category:Self Condition]]
[[Category:Self Condition]]
[[Category:Console Command]]
[[Category:EventMacro_Automacros]]
[[Category:EventMacro_Parameters]]

Latest revision as of 22:34, 26 April 2021

For console command, see timeouts.txt.

Self Conditions

timeout [<seconds>]
If this option is set, wait for the specified number of seconds before using the block again.


Console Command

timeout (<timeout key>) [<seconds>]
<timeout key>
- a timeout key name from timeouts.txt.
<seconds>
- the time in seconds.
Set a timeout.
Command Description
timeout <timeout key> Display the current value of specified key name.
timeout <timeout key> <seconds> Set a new value for the specified key name.


Parameter of the automacro eventMacros:

timeout <number>
  • timeout is an optional parameter.
  • timeout defines the time in seconds before this automacro can activate again after an activation.
  • If not used in the automacro the default value will be used, which is: 0.
  • Must have a numeric value.
automacro <automacro name> {
    <automacro conditions and parameters (and only them)>
    timeout 60
    call myMacro
}
macro myMacro {
    <macro instructions (and only them, as this is regular macro)>
    log This macro will only be called every 60 seconds
}