Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Healing over time question

Hey guys.

I'm using a bandage that, when used, heals you a little, waits a second, heals you more, waits longer, heals you even more, then waits even longer, and heals you for a lot more. So basically, the longer you wait, the more health you gain from the bandage. Great concept in an ABS where you're in the middle of an arena fighting. You can tuck away behind a rock and heal yourself, but as soon as an enemy gets there, you'd better bolt. And as soon as you push an arrow key, or shield, or attack keys, then the healing process is stopped. However....

I'm doing this solely with events, but I need help figuring out how to stop the healing if you're attacked. I've tried setting a variable to your health, so I can use a condition to say that if that variable is dropped below what it starts as, then turn "healing" switch off. But if you've ever used variables at all, then you know that that doesn't work quite like it seems it would. Any suggestions? I can't seem to figure this one out... though it's my bed time and I might just be too exhausted to think properly. I'm going to sleep on it, but I'd appreciate some input. Even if it's just you telling me that the idea's idiotic and I should consider something different. XD

Thanks .org!
 
Requiem Battle System 3.0

I think I can do it with events... I don't know. Basically, The bandage heals you based on how long you wait. The longer you wait, the more health it recovers.

I've already made it so if you move, it cancels the healing... but how can I record the player's health when the healing starts, save that variable, and then make it check to see if the health is lower than it was when it started. The only problem with that is that if the player gains X amount of health already then get's attacked for X amount or less, then he'll just keep healing. So I guess I'd have to check his hp after every time he heals, right?
 

Jason

Awesome Bro

Okay I think I can get this to work with events (I are teh event master) although I'm not amazing with RMVX, but I'll give it a shot.

Just wondering, is your healing over time event a common event ? That would make things so much easier.
 
Of course it is... I'm not so bad at events either. I'm just stumped, and I have so many other systems I'm trying to work on so I can release the first demo.

Dice game
Arena Betting
Interrogation
Alcohol
Serving Drinks
Sex minigame - Yes. I said "Sex minigame"


I'm just getting sick of messing with that one, so I thought I'd feed it to the forums. Thanks a lot, Jbrist. It IS a common event. If you'd like to take a look at it, let me know.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top