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.

Talking in battle

Does anybody know how to make it so that if my character is fighting somone in battle, that when the enemy reaches for example, maybe 50 health, he says a certain thing? So if an enemy reaches "this much health", he say's somthing.
 

poccil

Sponsor

Battle events are configured in the Troops tab of the database.  In your case, select the troop, then set the "Condition" to "Enemy XXX's HP 50% or below" and set the "Span" to "Battle".  However, if you want the message to display upon destroying an enemy, then you must set the enemy to Immortal by right clicking on the menu, then use the "Change Enemy State" event command to set the Knockout state on the enemy after displaying the message.
 
I'll try to save you before a Mod moves this! Of course you can use the "Troops" tab in the database. Find a specific troop you want the message to be in. (Find the battle) Then in the big white box towards the bottom you set up your event's and use the Condition box just above the "Big white event box" to choose when, and how long those events happen.

  But you may want a "SCRIPT" that displays a message or messages during any battle at random once your hero's health is critical, or at mid point. For example, your hero's health is down and he says "Can't give up yet!" no matter what battle you in. This can be done with scripts, but also the same events in all the battles. PM to learn how more.
  Hope I saved you with adding what you really meant, you know, implementing scripts into the battle  ;)

-Polidoro
 

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