This is supposed to be an extremely simple command. The player enters the state by holding the x+y keys, then exits the state by releasing them:
.CMD File
[Command]
name = "hold_xy"
command = /x+y
...
[State -1, Nutrition]
type = ChangeState
value = 1000
triggerall = var(2) <= 0
triggerall = statetype = S
triggerall = ctrl
; No AI.
trigger1 = !var(59)
trigger1 = command = "hold_xy"
.CNS File
[State 1000, PowerIcon]
type = Explod
trigger1 = Anim = 1000
ID = 1000
anim = 1002
pos = 0, -350
postype = p1
bindtime = -1
sprpriority = 3
scale = IfElse(!var(59)&&Command="holdup", 0.5, 0.2), IfElse(!var(59)&&Command="holdup", 0.5, 0.2)
ownpal = 1
facing = IfElse(Facing=1, 1, -1)
[State 1000, EndAnim]
type = ChangeAnim
triggerall = Anim = 1000
; No AI.
trigger1 = !var(59)
trigger1 = Command != "hold_xy"
; TODO: AI
value = 1001
[State 1000, 7]
type = ChangeState
trigger1 = Anim = 1001
trigger1 = AnimTime = 0
value = 0
ctrl = 1
I'm able to enter the state by holding x+y and exit the state by releasing x+y (triggering the animation to leave the state just fine), but the IfElse to enlarge the scale on the Explod plainly refuses to trigger when I hold the UP key.