Still getting a handle on Ruby, and trying to not be a cargo cultist.
I'm planning on having some skills that can sidestep a target's evasion, mag. evade, or damage reflection, but still be subject to PDR or MDR (as such, cannot use certain hit), and have these flagged by notetags. Didn't find anything of the like on the master script list.
First trouble is that I don't know how to set it up to read notetags, and since I'm trying to avoid the cargo cultist route, I'd like to learn how to do that properly and why it works.
I was thinking that the best way to go about this was to have the thing outright skip the checking for these things. Found the damage reflection without much issue, but for the evasion and mag. evade, I might have to temporarily set the those to zero and then put the value back afterwards, so as to not leave the target without evasion period (though that might make an interesting debilitating skill). Anyways, for the damage reflection, here's what I've got:
Without knowing how to implement notetags, I cannot test this. Thoughts, please?
I'm planning on having some skills that can sidestep a target's evasion, mag. evade, or damage reflection, but still be subject to PDR or MDR (as such, cannot use certain hit), and have these flagged by notetags. Didn't find anything of the like on the master script list.
First trouble is that I don't know how to set it up to read notetags, and since I'm trying to avoid the cargo cultist route, I'd like to learn how to do that properly and why it works.
I was thinking that the best way to go about this was to have the thing outright skip the checking for these things. Found the damage reflection without much issue, but for the evasion and mag. evade, I might have to temporarily set the those to zero and then put the value back afterwards, so as to not leave the target without evasion period (though that might make an interesting debilitating skill). Anyways, for the damage reflection, here's what I've got:
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# * Invoke Magic Reflection
#--------------------------------------------------------------------------
alias :steak_bypass_mrf_go_ohio_beat_fiami :invoke_magic_reflection
def invoke_magic_reflection(target, item)
steak_bypass_mrf_go_ohio_beat_fiami(target, item)
unless <bypass_mrf>
@subject.magic_reflection = true
@log_window.display_reflection(target, item)
apply_item_effects(@subject, item)
@subject.magic_reflection = false
end
end
I left what I intend to put in the notetags in the angle brackets, since I don't know the syntax for notetags just yet.
#--------------------------------------------------------------------------
# * Invoke Magic Reflection
#--------------------------------------------------------------------------
alias :steak_bypass_mrf_go_ohio_beat_fiami :invoke_magic_reflection
def invoke_magic_reflection(target, item)
steak_bypass_mrf_go_ohio_beat_fiami(target, item)
unless <bypass_mrf>
@subject.magic_reflection = true
@log_window.display_reflection(target, item)
apply_item_effects(@subject, item)
@subject.magic_reflection = false
end
end
I left what I intend to put in the notetags in the angle brackets, since I don't know the syntax for notetags just yet.