How do I add a healing special in my turn-based rpg?

Hello!

I have been trying to make a small rpg game, by following some videos, but I can’t get the “special” button that is suppposed to heal the player to work. Does anyone know what I can do?

I have seen and have been following a video titled “Make A Pokemon Style Monster Tamer Game - Using GDevelop”, but it doesn’t include something like this. If anyone can help, I’ll certaintly appreciate it :slight_smile:

On top you are constantly setting your bars to helath behavior of your objects

So it makes no sense to change anything other than that behavior values itself
So you should switch it in and not change value of bar in middle event

I don’t remember how health behavior works but maybe apply to mage -5 damage would heal him actually

Thank you for replying so quickly!

Yeah, I sort of understand the first part about constantly changing the settings (sorry that I can’t grasp it completely, I’m new to programming).

I tried changing the “Change the value of Mage_Health: add -5” but it unfortunately didn’t work. If you have any other ideas, I am open to trying them out! And once again thank you for replying!

Does this work to damage mage?

Also make text object put it in your scene and in events change its text to this variable

And you will see if its not going below 0

(Actually more sense would be just to check if that var is equal or less than 0)

I have a “HealCooldown” as a text variable, and the variable “Battle_Turn” = 2 is used to damage the mage.
I tried what you told me but I couldn’t get it work sadly, thank you regardless very much!

For sure it should not be text var but number var

Thank you so much! I got the healing to work, but now the cooldown isn’t working, do you know how that can be made so that the healing has a 3 (or less, if it’s easier) turn cooldown?

Make sub event here
Move your action to it
And copy trigger once to it

Which “action” are you referring to? Sorry, I got confused.

Look on picture i posted in my last message
And look on green arrows

Sorry for the late reply and THANK YOU SO MUCH!!! IT WORKED!!! :laughing: :laughing: :laughing: