[ENH] if/Then/Else Block
TimothyLuke opened this issue · 2 comments
If/then blocks were left out to get GSE3 complete. Put back the following noting that the condition can only be evaluated outside combat and not dynamic.
{
[“Type”] = “If”,
[“Condition] = “nameofvariablethatreturnstrueorfalse”,
[“True”] = { actionblocks },
[“False”] = { actionblocks }
}
This is a container block like loops but provides some if capabilities. This is possible with just a variable which is fine for one or two abilities but not great to manipulate blocks. This has the same API limitations in that it’s not dynamic and can only be tested in combat but it would allow for things like “I’m in the maw please do this instead of what I normally do”.
To use this you would create a variable that returns a true or false value. Then it’s add blocks which could be other loops, repeats, actions for the true or false part states.