Conditional hacks
LieroHacks supplies ways to only do certain task in hacks when a condition is met. Currently, this area is fairly limited.
To use conditional hacks, you will need a Checkbox variable (type CK or OP, see the reference for more info). A hack can then use an if-statement to do certain tasks only when a checkbox is checked or unchecked. The if-statement looks like this:
cond: The condition that has to be meet. This can currently only be expressed like 'x' or '!x' where 'x' is a variable. Example:
[a
{Executed if a is checked}
[b
{Executed if both a and b is checked
]
[!b
{Executed if a is checked and b is unchecked
]
]
[!a
{Executed if a is unchecked}
]
|
A and b should be checkboxes but doesn't need to be.
Next...
|