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.

Making the enemy use a different attack if can't use

What I mean is this:

Say the enemy has the option to use an attack with 100 SP and an another attack with 500 SP.

And say the enemy has about 300 SP left. Now, the thing with the script is if the enemy uses an attack with insufficient SP, they skip a turn.

So in this situation, the enemy uses the 500 SP attack, and since it doesn't have enough SP, it would skip the turn, instead of using the 100 SP attack.

Can anyone fix this?
 

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