IfVar
Revision as of 00:29, 9 May 2015 by Horikawa otane (talk | contribs) (Created page with "Category: LunaDLL Category: Autocode Commands ==Prototype== IfVar,-,COMPARISON,VALUE,EVENT,Active time,VARIABLE NAME ==Description== Check permanent user variables, a...")
Prototype
IfVar,-,COMPARISON,VALUE,EVENT,Active time,VARIABLE NAME
Description
Check permanent user variables, and activates EVENTS if the COMPARISON against VALUE is true.
Notes
COMPARISON types compare the value os the user variable to the VALUE in the command.
COMPARISON = 0 = EQUALS. If the VALUE is exactly equal, activate the event. COMPARISON = 1 = GREATER THAN. If the VALUE is bigger, activate the event. COMPARISON = 2 = LESS THAN. If the VALUE is smaller, activate the event.
Examples
// If the "BossesBeaten" variable is greater than 7, activate event 1000
IfVar,0,1,7,0,1,BossesBeaten