The Mugen Fighters Guild
Help => M.U.G.E.N Development Help => Tips, Tricks, Tutorials => Topic started by: 2OS on June 08, 2012, 07:55:05 pm
-
[Statedef -2]
[State ]
type=varset
triggerall=!ishelper
trigger1=var(0)<life
var(0)=life
ignorehitpause=1
[State ]
type=varadd
triggerall=!ishelper
trigger1=gethitvar(damage)
var(0)=-gethitvar(damage)
ignorehitpause=1
[State ]
type=varset
triggerall=!ishelper
trigger1=var(1)<power
var(1)=power
ignorehitpause=1
[State PowerAdd]
type=varadd
triggerall=!ishelper
trigger1=
var(1)=
ignorehitpause=1
[State ]
type=lifeset
trigger1=1
value=var(0) ;; it should be noted that lifeadds and targetlifeadds ( throws, poison ) will do nothing if you use this but you will become immune to the debug keys F1 and F2 ( like Rare Akuma and Inazumachi's cheap modes )
[State ]
type=powerset
trigger1=1
value=var(1) ;; this will stop moves that drain power. whatever amount of power you have before that kind of move executes will be sustained
this setup is to stop subtraction so pressing F3 or the spacebar will re-fill both. to stop addition as well put the lifeset and powerset in -1 -2 -3.
stopping addition is highly effective for power in training mode if you don't like the fact that it's hard coded to maximize itself at all times.