In the next few days a new block type is being added to GSE3 - an If/Then/Else block.
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.