Hi guys, how do I create a spell that damages the enemy but also raises the user's stats just for that fight? Thanks in advance.
Spells that causes damage AND buffs the user
RPG Maker MV SupportYou can use Yanfly's Skill Core and give the skill the notetag:
The parameter is the number corresponding to the parameter you want to buff - they're in the order you see them on the Class tab of the database, starting at 0. And if you do 99 turns or something, that's pretty guaranteed to be the rest of the fight.
Code:
<After Eval>
user.addBuff(parameter, turns);
</After Eval>
The parameter is the number corresponding to the parameter you want to buff - they're in the order you see them on the Class tab of the database, starting at 0. And if you do 99 turns or something, that's pretty guaranteed to be the rest of the fight.
By the way, I saw that in this plugin there is also a command that keeps skills locked during fights and unlocks them under certain conditions. I was wondering, how could I set a skill to be unlocked by the usage of another skill? Sorry I know nothing about javascript unfortunately.
Skill B gets the notetag:
Then skill A has a common event attached to it which turns switch 69 on. You'd just need to add an event at the end of battles or a troop event at turn 0 that turns the switch off to begin with.
Code:
<Custom Requirement>
value = $gameSwitches.value(69);
</Custom Requirement>
Then skill A has a common event attached to it which turns switch 69 on. You'd just need to add an event at the end of battles or a troop event at turn 0 that turns the switch off to begin with.
Original thread: https://forums.rpgmakerweb.com/threads/spells-that-causes-damage-and-buffs-the-user.163451/