Item that enhances permanently one stat

kimono

Well-known member
Hi, I'm searching a method to script an item that gives +2 Health (increases +2 max health) forever.
I'm wondering if it's possible with this kind of item to generate items that increases the mp, speed or anything other main player stat?
 
What you need to do is have a global variable maybe initialize it with a level script for the first level then on player spawn animation set maxhealth to the variable then the health too.

If item is picked up increment the variable then apply it to maxhealth and optionally to health. This  health boost will carry over save games and reset on a new games.
 
kimono

I had a similar question regarding global variables
And blood bane link me to a demo.

http://www.chronocrash.com/forum/index.php?topic=5006.msg77370#msg77370

Hope this helps in  some way .
 
msmalik681 : Thanks for your reply. I see that you've made something approching this with equipment in your project Tekken the Devil Rage.
PS VITA: Thanks for pointing this demo; as far as I remember, the items used in Bloodbane Map Demo enhance some stats in a short period but not permanently.
 
kimono said:
Hi, I'm searching a method to script an item that gives +2 Health (increases +2 max health) forever.

I have made something like that and it's pretty much as malik described:
msmalik681 said:
What you need to do is have a global variable maybe initialize it with a level script for the first level then on player spawn animation set maxhealth to the variable then the health too.

If item is picked up increment the variable then apply it to maxhealth and optionally to health.

I've implemented the system in Cherry On Top and Robo Magi.
 
Back
Top Bottom