- Joined
- Apr 2, 2018
- Messages
- 8
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMVXA
Okay, so I have this 'Parry' state that uses Yanfly's Lunatic States: https://yanflychannel.wordpress.com/rmvxa/battle-scripts/lunatic-states/
The Parry state is set to trigger per the React tag when the actor with the State would take damage (but before he actually does so).
What I want to do is reference the attack value of the attacker per the script below as indicated by X.atk:
The Parry state is set to trigger per the React tag when the actor with the State would take damage (but before he actually does so).
What I want to do is reference the attack value of the attacker per the script below as indicated by X.atk:
Code:
when /parrying/i
if @result.hp_damage > 0 && (100 * (X.atk / (self.def * 2)) < rand(100)
@tp += @result.hp_damage / 100
@result.hp_damage /= 2
end
break
Last edited:

