Difference between revisions of "ZenyChanged"

From OpenKore Wiki
Jump to navigation Jump to search
(Add EventMacro event condition: ZenyChanged)
 
Line 1: Line 1:
Is checked everytime the amount of zeny changes, is true if the math condition is true.
+
{{Template:ZenyChanged}}
:* Supports percentages. (based on total zeny before change and change amount)
 
  
: Syntax:
+
[[Category:EventMacro_Automacros]]
ZennyChanged <[[EventMacro#Math condition operators|Math condition operators]]>
 
 
 
: Example:
 
ZennyChanged > 10%
 
ZennyChanged >= 1000
 
 
 
: Set variables:
 
$.ZennyChangedLastChange => Saves the amount of zenny changed that made ZennyChanged activate
 
$.ZennyChangedLastZennyAfter => Saves the amount of zenny left after the change that made ZennyChanged activate
 
 
[[Category:EventMacro_Conditions_Event]]
 
[[Category:EventMacro_Conditions_Event]]

Revision as of 10:09, 5 July 2019

ZenyChanged
  • Description: Is checked everytime the amount of zeny changes, is true if the math condition is true.
  • Supports percentages. (based on total zeny before change and change amount)
Syntax:
ZennyChanged <Math condition operators>
Example:
ZennyChanged > 10%
ZennyChanged >= 1000
Set variables:
$.ZennyChangedLastChange => Saves the amount of zenny changed that made ZennyChanged activate
$.ZennyChangedLastZennyAfter => Saves the amount of zenny left after the change that made ZennyChanged activate