Is it possible to make a piece of equipment that restores HP or MP to the wearer at the start of a fight? Like through a common event linked to a variable that the gear provides, or through automatically using a skill on the wearer?
Making an accessory resoter HP/MP at the start of a battle
RPG Maker VXAce SupportOne possible way I can think of is to make a common event checking if any character is wearing that accessory or not. If yes, insert in HP/MP restore event and text to tell players what happened. Then go call that common event in every Troop's event pages.
I think there's a script from Yanfly that help you conveniently copy a page in one troop to every troops. Try searching for that.
I think there's a script from Yanfly that help you conveniently copy a page in one troop to every troops. Try searching for that.
Okay, thank you. I already have yanfly's script for that, I just wanted to check if there was a faster way. Thank you.
Okay I tried doing what you said but the in the common event, the conditional branching only let's me select one character each time. Is there a way to make it check for all actors?
I wish one could choose a variable instead of a specific actor, so that you can create a Loop, check the actor based on the current variable, then shift the variable up by one and leave conditionally if that variable passes the amount of actors you have. Otherwise, you're most likely to use a Script Call and do something like $game_party.alive_members.each do |member| member.hp += 20 if member has equipment.
Original thread: https://forums.rpgmakerweb.com/threads/making-an-accessory-resoter-hp-mp-at-the-start-of-a-battle.112005/