Difference between revisions of "SimpleHookEvent"

From OpenKore Wiki
Jump to: navigation, search
m (add category on SimpleHookEvent, which i forgot)
 
Line 1: Line 1:
Is checked every time the hook you set, is triggered.
+
{{Template:SimpleHookEvent}}
  
: Syntax:
+
[[Category:EventMacro_Automacros]]
SimpleHookEvent <hook name>
+
 
+
: Example:
+
SimpleHookEvent target_died
+
 
+
: Set all variables the hook have as:
+
$.SimpleHookEventLast<capitalized variable name>
+
 
+
: Example:
+
$.SimpleHookEventLastMonster => monster ID in target_died hook
+
 
[[Category:EventMacro_Conditions_Event]]
 
[[Category:EventMacro_Conditions_Event]]

Latest revision as of 05:10, 5 July 2019

SimpleHookEvent
  • Description: Is checked every time the hook you set, is triggered.
Syntax:
SimpleHookEvent <hook name>
Example:
SimpleHookEvent target_died
Set all variables the hook have as:
$.SimpleHookEventLast<capitalized variable name>
Example:
$.SimpleHookEventLastMonster => monster ID in target_died hook