Hello! I am relatively new to RPGmaker, but I am getting used to it rather quickly and I am having a lot of fun playing with it! Anyway, I am unsure if I should post this in the VXace thread of the Scripting thread, but since my problem requires custom scripts, I'm going to post it here. Apology to the mods in advance if this thread doesn't belong here.
Anyway, I am currently want to create and equipment into my game that works similar to the ThornMail Mv Plugin. Since VXace doesn't use plugins, I have to resort to using the scripts. I found a script made by GreatRedSpirit where it creates variables based off of the last damage taken from an enemy.
My idea is that I should use the variables created from the script and whenever someone has a thorns armor equip, it does damage back. I have some problems though.
A: I don't know how to access those variables outside of damage formulas
B: I don't know how to call an event when a enemy damages a party member
I assume problem B can be solves using script as I installed another script that calls in events using Conditional Branches, so I believe the solution to that is similar to that, however, I am completely lost on A
I'll provide any screenshots if anyone needs any
Anyway, I am currently want to create and equipment into my game that works similar to the ThornMail Mv Plugin. Since VXace doesn't use plugins, I have to resort to using the scripts. I found a script made by GreatRedSpirit where it creates variables based off of the last damage taken from an enemy.
My idea is that I should use the variables created from the script and whenever someone has a thorns armor equip, it does damage back. I have some problems though.
A: I don't know how to access those variables outside of damage formulas
B: I don't know how to call an event when a enemy damages a party member
I assume problem B can be solves using script as I installed another script that calls in events using Conditional Branches, so I believe the solution to that is similar to that, however, I am completely lost on A
I'll provide any screenshots if anyone needs any