TERRASLIGHT'S PROFILE

Search

Need a bit of help with scripting variables in VX Ace

I just got into ruby programming but I'm still not confident in exactly what I'm doing.

I'm creating a survival horror game where you get hit 3 times and you die. I have a variable for the char's damage (1 hit = 10dmg, once it reaches 30, it's game over).

Not wanting to deal with changing the layout of the menu, I disabled it. But I also set up a health system where you can pick up potions and use them to heal you.

My problem is this. I set up a script where pressing "A" would bring up the common event to show you your health and number of potions, and if you want to heal yourself. Instead of displaying Damage = \V (it's kinda lame displaying damage and a random number like 10...), I want to set it like this:

When char's DMG variable is:
0, display it as Health: Healthy.
10, display it as Health: Injured.
20, display it as Health: DANGER
and obviously, if it was 30 it'd already be game over.

I have a feeling it's pretty simple to do... but I'm exactly sure how to do it correctly. Any help or insight is appreciated.
Pages: 1