Greetings! I’ve been using the Thorn Aura Addon by Alistair for Yanfly’s Lunatic States script to achieve the percentage reflect effect for shields I’m looking for. The link to the original script is here and the link to the add-on is here, but I attached a demo project for simplicity if you prefer to use that.
Note: If you prefer to install the add-on fresh, certain lines in the add-on need to be removed since they attempt to create a popup for the effect. These lines are in the Thorn Percent and normal Thorn categories:
The script is perfect except that the thorns damage cannot distinguish between a physical and magical attack, meaning that the attacker takes recoil regardless of what type of attack is used. I know that the checks “item.physical?” and “item.magical?” are used to distinguish between the two in terms of coding, but I’m not familiar enough with coding to understand how to incorporate those into the add-on (or if it’s even possible for that matter).
I’m hoping that someone can help me in editing the add-on so that I can use both the physical and magical variations of the thorns damage for my shields. If it’s not possible, then I am curious if anyone can help me in finding a different alternative that achieves the same effect as the original add-on except with that physical/magical detection.
Note: If you prefer to install the add-on fresh, certain lines in the add-on need to be removed since they attempt to create a popup for the effect. These lines are in the Thorn Percent and normal Thorn categories:
Code:
text = sprintf(YEA::BATTLE::POPUP_SETTINGS[:hp_dmg], thorn.group)
target.create_popup(text, "HP_DMG")
target.create_popup(state.name, "WEAK_ELE")
I’m hoping that someone can help me in editing the add-on so that I can use both the physical and magical variations of the thorns damage for my shields. If it’s not possible, then I am curious if anyone can help me in finding a different alternative that achieves the same effect as the original add-on except with that physical/magical detection.