help needed.....

Started by dark byakuya, August 09, 2010, 01:26:12 AM

Previous topic - Next topic

dark byakuya

does anyone know how to make a chars life or power refill  over time?
Oh no alpha is gonna blooow!! EVERYONE PANIC!!!!!!!!!!

GT

Put this under statedef -2 (I'm not sure exactly how/when you want the meters to refill but eh)

[State -2]
type = poweradd
trigger1 = 1
value = 3

^----- Always gain power

[State -2]
type = lifeadd
trigger1 = 1
value = 3

^------ Always gain life.

Xinos

Or, if you want to determine the speed of how your health/power increases, you can use this trigger.

[State -2]
type = lifeadd
trigger1 = time %5 = 0
value = 3

[State -2]
type = poweradd
trigger1 = time %5 = 0
value = 3

This means, health/power will increase by 3, each 5 frames.

2OS

Or

[State -2]
type=lifeadd
trigger1=time>=0&&timemod=5,1
value=3

[State -2]
type=poweradd
trigger1=time>=0&&timemod=5,1
value=3


Hardly anyone I know makes use of timemod so I'm just throwin it out there, really this works same as above, no difference

Rajaa Retired

Because the docs recommend usage of %.

dark byakuya

thank you all for the help!
Oh no alpha is gonna blooow!! EVERYONE PANIC!!!!!!!!!!