Hi, I'm new to forums so hopefully I'm putting this in the right place. But I'm wondering if what I want to do is even possible, I want a character to only use healing or defensive magic during one battle, if she uses any offensive magic, like fire, thunder, etc., then the battle is lost and the player has to try again. Thanks in advance and sorry if I put this question in the wrong spot.
Battle/Event help
RPG Maker MV SupportWhat's the condition for winning? Will the battle end after a certain amount of turns? Is the player allowed to use non-magical attacks or will any offensive attack cause the player to lose? I can set it up but need to know the specifics.
There will be two characters in the party, this one I'm talking about can't do anything offensively, she's just going to buff and heal the other character until they defeat the enemy, the enemy's HP has to hit 0. Thanks for the help.
Ah, okay. If the characters don't share skills you can create a Common Event with a Conditional
Switch named "No Offensive Magic" or whatever and attach it to all the offensive skills your healer has.
If they do share skills you can add this to the damage formula:
$gameVariables.setValue(1, a._actorId);
That'll store the ID of the character using the skill to a Variable, then you can set an extra conditional so that it only activates when used by the healer. Just set that conditional's variable to whatever number the healer's ID is.
Switch named "No Offensive Magic" or whatever and attach it to all the offensive skills your healer has.
If they do share skills you can add this to the damage formula:
$gameVariables.setValue(1, a._actorId);
That'll store the ID of the character using the skill to a Variable, then you can set an extra conditional so that it only activates when used by the healer. Just set that conditional's variable to whatever number the healer's ID is.
Thank you so much, I can't believe I couldn't figure that out. It makes sense now, thank you again for the help.
Original thread: https://forums.rpgmakerweb.com/threads/battle-event-help.105548/