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.

common events + skills

So I'm writing a skill that heals you 1/4th maximum HP. Instead of using SP(as that's being used for other things), I'm having it work based on a once a day use thing(using a day/night system I implemented). On the field, it works perfectly, but in battle it doesn't work. I have the skill call a common event do all the testing and to heal the user if conditions are met. The change hp command is ignored and the skill misses(since I set the power to 0) and nothing happens aside from switches being set in the common event. I could set the power to a negative number for healing but I couldn't get a good number to represent 1/4th of the maximum HP a user has and it ignores any switches that maybe on meaning the skill can be used over and over again. How do I get it so in battle it uses the command in the common event I set for it or so that if I have to use the skill's power stat, at least so it can only work when certain conditions are met.

I didn't ask for a script because this seems so trivial that it can be done without a script.

Any help is appreciated.
 
It's an annoying quirk in XP, but I believe that a skill won't do anything if the power is set to 0. (I may be wrong; it's been years since I've used it.) You could theoretically (which may not be the case because I haven't tested it) just remove the skill after it's been used and re-add it when you turn the switch back off (as this eliminates the player trying to use the skill over and over). It wouldn't look very... professional because you would still have to have the power up so that it heals at least something (and it wouldn't reflect what's really being healed), but I believe that is an answer. Try just putting the power to 1 and see if it works alright then. If it doesn't, then I'm wrong. xD
 

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