Thank you very much I will Try it as soon as possible.
I have a rather complex Battle system that is based on a lot of common events triggering during battles and extra statistics stored in variables.
This situation in particular will be triggered by one of these common events.
So I guess I just have to put that script into the common event.
Just 3 of questions. I'm pretty sure about the answers myself but I'll ask just to be sure...
1) Is the modifier stackable?
If it Is I will use it like it is. If is not I will simply have to store the variable and add/subtract from it instead of creating a new variable every time the event triggers. in either case there is no need for a new script, I can do the adjustements myself.
2)To subtract from a stat Should I change the word "add" to "sub" (is it sub?) or should I enter a negative variable? probably both but ... just to be sure.
3)The script does anything that will modify the stats of the basic monster? I'll try to explain better....
If I drain 10 AGI from the enemy during a battle and then I will face the same kind of enemy again would he be as good as new or would be the drain permanently imprinted in that type of enemy? (Probably not since it affects troop_id and not Enemy_id)
Thanks a lot for the help.
P.s.
Actually... another question arises that is way more important.
Using this script is it possible to lower a stat to 0 or below? If that is possible I need to anticipate or I would divide by 0 ... and you know what happens when you divide by 0....