SimpleHookEvent: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Add EventMacro event condition: SimpleHookEvent)
 
m (add category on SimpleHookEvent, which i forgot)
Line 12: Line 12:
: Example:
: Example:
  $.SimpleHookEventLastMonster => monster ID in target_died hook
  $.SimpleHookEventLastMonster => monster ID in target_died hook
[[Category:EventMacro_Conditions_Event]]

Revision as of 15:07, 4 July 2019

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