YesNoOk
avatar

LifeAdd (SCTRL) (Read 8701 times)

Started by JustNoPoint, October 29, 2015, 11:37:58 pm
Share this topic:
LifeAdd (SCTRL)
#1  October 29, 2015, 11:37:58 pm
  • ******
    • www.justnopoint.com/
Adds the specified amount to the player's life, scaled by the player's defense multiplier if necessary.

Required parameters:
value = add_amt (int)
Specifies amount of life to add to the player's life bar.

Optional parameters:
kill = kill_flag (int)
If kill_flag is 0, then the addition will not take the player below 1 life point. Defaults to 1.

absolute = abs_flag (int)
If abs_flag is 1, then exactly add_amt is added to the player's life (the defense multiplier is ignored). Defaults to 0.

Example:
none
Re: LifeAdd (SCTRL)
New #2  February 05, 2016, 12:53:33 am
  • avatar
  • **
    • USA
    • hamalto1990@yahoo.com
I've used lifeadd in the passed but i always had problems with it.

here is the code i used

[State -2, lifeadd support]
type = LifeAdd
trigger1 = NumHelper(6000) = 1
value = floor(0.01*gethitvar(damage))

Spoiler, click to toggle visibilty


[State 0, Def up]
type = LifeAdd
triggerall = life > 1
triggerall = Var(5) = 1
trigger1 = 1
value= 0.80*fvar(7)

[State -2, Combo]
type = VarSet
trigger1 = 1
fvar(7) = (GetHitVar(damage))
ignorehitpause = 1
Last Edit: February 13, 2016, 08:28:48 am by Odb718