I'm trying to create status ailment spells that, through Yanfly's Selection control, can hit either a single target or an entire group, either friend or foe. In order to make single-target use a little less useless, I'd like group-target use to reduce the accuracy of the spell. In fact, there are several cases in which I would like a skill to have variable accuracy, including:
Reducing accuracy of status ailment spells when targeting all enemies (as above)
Healing spells that bypass magic evasion, but can still be reflected
Elemental attacks that bypass magic evasion if the target absorbs the element
Instant death spells that never miss undead enemies (which invokes a custom react effect)
Revive spell that has perfect accuracy on KOed targets, but 20% accuracy on undead enemies
To start with the first one, status ailment accuracy, I think it might be possible using a <Pre-Damage Eval> notetag from Yanfly's Skill Core, or something similar. But I'm at a bit of a loss concerning the custom code. In particular, I have no idea how to check whether I've just targeted a group or an individual. If anyone could offer any insight into any of these scenarios, I would be very appreciative.
Reducing accuracy of status ailment spells when targeting all enemies (as above)
Healing spells that bypass magic evasion, but can still be reflected
Elemental attacks that bypass magic evasion if the target absorbs the element
Instant death spells that never miss undead enemies (which invokes a custom react effect)
Revive spell that has perfect accuracy on KOed targets, but 20% accuracy on undead enemies
To start with the first one, status ailment accuracy, I think it might be possible using a <Pre-Damage Eval> notetag from Yanfly's Skill Core, or something similar. But I'm at a bit of a loss concerning the custom code. In particular, I have no idea how to check whether I've just targeted a group or an individual. If anyone could offer any insight into any of these scenarios, I would be very appreciative.