Variable Cover Rates
This small script was originally requested by Nessiah. By using it, you’ll be able to assign variable HP conditions for the Cover/Substitute trait when applied to states (instead of the default 25%).
Instructions
Just enter <target hp: n%> in the notebox of the state. If the state has a Cover trait, it’ll use it instead of the default 25%.
Compatibility
Should go below Yanfly’s Ace Core Engine and Ace Battle Engine.
Is there a way to also cover only selected characters an to set characters who would not alow others to cover them, too?
I hope it’s not too hard to understand what i want to express ^^”
well..a little doubt…..how to make an absolute cover? I mean, set n as 100 only means any amount of HP approaching 100 rather than equal…which means this cover can’t work in the very beginning with team of full HP, is there a way changing <into ≤? thanks
Just use 101%.
101 seems not work…
You’re right 😮
I made a stupid mistake (division instead of multiplication =__=)
Should work fine now.
COOL! works pretty fine! btw, do you know how to define this Substitute into detail? like
can only block single physical damage to team mate? instead of block everything…probably in Scene_Battle…..hope it won’t trouble you 🙂
It does block magic attacks. The only things it doesn’t block are items and absolute attacks (the ones that are neither physical nor magical).
oppps,,I mean ..I know it can block magic and so it’s ridiculously powerful, is there any way to set it only for single and physical dmg?
See the line 149 of my script? It should be this:
target.hp < target.mhp * hp_target && (!item || !item.certain)
Replace it with this:
target.hp < target.mhp * hp_target && (!item || (item.physical? && item.for_one?))
Genius! oh, this sentence works in battle_scene rather than this cover script
all done, many thanks!
Huh, if you’re using my script, you should paste it in it instead or else it’ll be overwritten…