YesNoOk
avatar

Lock Life and Power (Read 8008 times)

Started by 2OS, June 08, 2012, 07:55:05 PM
Share this topic:

2OS

Lock Life and Power
#1  June 08, 2012, 07:55:05 PM
  • ****
  • 608 Wannabe
  • Ich schicke dich zur HOELLE!! STIRB DU FEIGLING!!
    • Egypt
[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.