I've learned how to check variables and modify them based on certain data, such as the example below:
crit = tonumber (GetVariable ("crit")) or 0
crit = crit + 1
SetVariable ("crit", crit)
I'm curious how to enter a command based on a variable. For example,
crit = tonumber (GetVariable ("crit")) or 0
if crit = 1 [execute command]
if crit = 2 [execute some other command]
This way I can set up an automated chain of events from start to finish.
crit = tonumber (GetVariable ("crit")) or 0
crit = crit + 1
SetVariable ("crit", crit)
I'm curious how to enter a command based on a variable. For example,
crit = tonumber (GetVariable ("crit")) or 0
if crit = 1 [execute command]
if crit = 2 [execute some other command]
This way I can set up an automated chain of events from start to finish.