;--------------Power-charge----------- [Statedef 750000] type = S physics = S ctrl = 0 velset = 0,0 anim = 750 [State 750000, 1] type = playsnd trigger1 = time = 8 value = 3,2 channel = 0 [State 750000, 2] type = poweradd trigger1 = time >= 12 value = 5+(time/2) [State 750000, 3] type = changestate triggerall = time >= 1 trigger1 = command != "Power_Charge" trigger2 = power >= 3000 value = 751000 ctrl = 1 [Statedef 751000] type = S physics = S [State 751000, 1] type = changeanim trigger1 = command != "Power_Charge" value = 751 [State 751000, 2] type = stopsnd trigger1 = anim = 751 channel = 0 [State 751000, 3] type = playsnd trigger1 = anim = 751 && power = 3000 value = 4,5 [State 751000, 4] type = ChangeState trigger1 = anim = 751 && animtime = 0 value = 0 ctrl = 1
e nel cmd:
[Command] name = "Power_Charge" command = a+b time = 30 [State -1, Power_Charge] type = changestate value = 750000 triggerall = roundstate = 2 && statetype = S && ctrl trigger1 = command = "Power_Charge" trigger1 = power <=3000

Aiuto










