Is there any way to have an elemental skill always inflict a status ailment if it hits an enemy's weak point? You know, like if you hit an opponent weak to fire with a Fire-Elemental spell, they will always be burned?
Elemental Skill inflicts a status ailment if it hits a weakness
RPG Maker VXAce SupportYes, but you'll need a plugin, preferably Yanfly's Battle Engine Core and Action Sequences. Make your fire attack skill, then insert the following lines into the action sequence:
if (target.elementRate(2) > 1)
add state 44: target
end
Where 2 is the ElementID of Fire, and 44 is the StateID of the "Burning" state.
if (target.elementRate(2) > 1)
add state 44: target
end
Where 2 is the ElementID of Fire, and 44 is the StateID of the "Burning" state.
Plugin? That sounds like something for RPGMaker MV. ._.;
No, you can just do this in the damage formula.
Example formula, assume you're using
Example formula, assume you're using
a.atk * 4 - b.def * 2as the damage formula- Fire element id is = 2
- Burn state has state id = 2
Code:
if b.element_rate(2)) > 1.0; b.add_state(2); end; a.atk * 4 - b.def *2
After removing the ending parenthesis from the first bit of code, it works perfectly! Thanks!
EDIT: My problem here is solved. Requesting a thread lock, please. ^_^
EDIT: My problem here is solved. Requesting a thread lock, please. ^_^
Original thread: https://forums.rpgmakerweb.com/threads/elemental-skill-inflicts-a-status-ailment-if-it-hits-a-weakness.122009/