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.

Displaying A Message During Battle

My aim is to get a message to display during battle when a status effect is dispelled. For instance, I set a 10% change to recover when damage was dealt. When the effect (which I named Lesser Holy Aura) is gone, is there any way without scripting for me to display the message "The force of the attack dispelled your Lesser Holy Aura!" ?
 
This MAY be the answer

Make a common event that is accessed by the skill you are using.
When you attack, you give the monster that ailment and then caculate the chance of whatever happening happening.

Look at the "common" events section, it should be useful.
 
I think Deathbreak is on the right track. (except you have the "State" in effect for the player, not the enemies, correct?)

Assuming that a skill initiates the state, create a common event that gets called when the skill is successful.
In this event, turn on a switch that indicates that the skill was used. (i.e.  0001: LHA_cast).

Now, create a second common event. (Trigger: None)
In this event, use the conditional branch to check if the actors State is 'Inflicted'.
Check "Set handling when conditions do not apply"
in the "Else" section, display your message, then turn off the "0001: LHA_cast" switch.

(I tried doing this with "Parallel" as the trigger & "0001:LHA_cast" as the condition,
but the message doesn't display until after the battle ends.

So, In your Troop that you are going to test with, on the Battle Event page,
set Condition: Switch [0001: LHA_cast] is ON, and Span: Turn
Enter the command:  Call Common Event: <your second common event>

This will display the message, in battle, at the end of the turn where the State wears off.

Give it a try

(P.S. this could probably be done more efficiently with a script.)
 

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