;anim number is 70630 ;--------------------------------------------------------------------------- ; this goes into the cmd file [State -1, PowerCharge] type = ChangeState value = 70630 triggerall = command = "holdstart" triggerall = command != "holddown" triggerall = power < powermax trigger1 = ctrl trigger1 = statetype != A ;--------------------------------------------------------------------------- ; this goes into states file ; Powercharge [Statedef 70630, PowerCharge] type = S movetype = I physics = S velset = 0,0 ctrl = 0 anim = 70630 sprpriority = 2 [State 0, PowerAdd] type = PowerAdd trigger1 = time value = 10 ;[State 0, PlaySnd] ;type = PlaySnd ;trigger1 = command = "holdstart" ;value = S800,11 ;volume = -10 ;channel = -1 ;freqmul = 1.0 ;loop = 1 ;pan = 0 ;[State 0, StopSnd] ;type = StopSnd ;trigger1 = command != "holdstart" ;trigger2 = power = powermax ;channel = -1 ;ignorehitpause = 1 [State 0, ChangeAnim] type = ChangeAnim trigger1 = command != "holdstart" trigger2 = power = powermax value = 70631 persistent = 0 [State 0, ChangeState] type = ChangeState trigger1 = command != "holdstart" trigger2 = power = powermax value = 0 ctrl = 1