IfVar

From Moondust Wiki
Revision as of 12:45, 7 April 2017 by Fun2 (talk | contribs) (Removed unnecessary blank lines.)
Jump to navigation Jump to search

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