TERRASLIGHT'S PROFILE

Search

Filter

Need a bit of help with scripting variables in VX Ace

You guys are awesome. I stayed up too long trying to figure it out and I completely overlooked something that simple. You guys have my eternal gratitude!

When my short story here is complete, I will share it with you guys and personally give thanks in the credits.

Need a bit of help with scripting variables in VX Ace

Update: Nevermind! Sorry for the inconvenience but it was my fault. It works perfect. The reason why it didn't work before was because I started moving the common events around to display the health correctly, totally neglecting that I moved the common event to open with key A.

I have one last issue though pertaining to this health system, and I ask that those of you who have helped me thus far bear with me.

I got a little ambitious so let me tell you how my health system works. When you get hit, the screen flashes red and the character screams. On the third hit, the character gives a dying scream, which then the game over screen comes on. I got this to work pretty well. I upped the challenge: another character with a different scream, and a different death scream. I got this to work too.

The issue lies in the "one second of invincibility" that I want to implement between hits, because as of now, damage is triggered by "event touch" and this literally means you can get hit 3 times almost instantly and die within a fraction of a second. That's not good.

I have tried creating a separate event page for the monster, where the first touch would switch on "invincibility" where the monster event switches to a second page and can't hurt you. On the second page, I set the monster event to wait 60 frames (on the command Event Move Route...) before it turns off the "invincibility" switch.

The monster doesn't wait 60 frames before the switch turns off, and if I check the option "wait for completion," the player waits as does the monster after he gets hit. I still get killed instantly. This is the main problem.

EDIT: the trigger for event page two is autorun. If this is incorrect, let me know.

When I believe I have something, I can get the monster to pause between the 1st and 2nd hit. But I have the problem of the 2nd to 3rd hit being instantaneous (since after the 2nd hit results in DANGER HP, it is triggered by a damage variable). I believe I'm not getting something here that should be working...

Need a bit of help with scripting variables in VX Ace

Thank you for all the informative input. I have tried making a switch that would activate when the health window is displayed, switch monsters to a separate event which stops them in place.

However... the monsters stop without the health window even opening, and after the commands of the health window closing, the switch is supposed to turn off, making monsters move again... which they don't! I think somewhere in my commands, it's preventing it from reaching all the other commands.

I'll upload a picture of what I have so far, and from what I have for my commands. It's a bit messy... but I'll have it up as soon as I figure out how to upload pictures.

Need a bit of help with scripting variables in VX Ace

My apologies, I meant the "A" key on the keyboard.

I was hopeful because I thought it would work, but unfortunately the monsters still walk around. I appreciate the effort though!

Need a bit of help with scripting variables in VX Ace

Awesome! This works perfect, it was a lot more simple than I thought.

Sorry if I'm asking for too much, but there's also another problem. With the press of button "A," a message that shows your health and (if you're damaged) prompts you if you want to heal. I think this is a nice feature to have when you're running away from ghosts and need to heal quickly without having to menu->items->use, which also takes a lot away from the atmosphere.

My problem is that I'm unsure of how to pause the ghosts events from moving around (they're set to approach the player), and what's even worse is that as you're being prompted to heal yourself, they can't hurt you so they just walk around you like retards...

There are two solutions to this, the simpler one being to pause the characters so you can safely heal yourself.
The second being to allow the events to touch you and apply their commands to hurt you (I imagine getting this to work would add to the scariness of having to run away with real-time healing, but would be much more difficult to implement).

Sorry for the long post, but thanks again Idida for the tremendous help!

Need a bit of help with scripting variables in VX Ace

Yes, I'm understanding this and seeing that it can work.

However... where in the script editor do I add this? Sorry, noob question. -_-

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