- Joined
- Dec 1, 2013
- Messages
- 35
- Reaction score
- 0
- First Language
- German
- Primarily Uses
- RMMV
I have recently gone back to playing around with VX Ace and ran into a little problem with the script mentioned in the title.
I have created stats for weapons that increase the damage of, for example, thrusting and slicing abilities (named shrp for "sharp" and thrs for "thrust").
I have also created the other side of the medal with sres for "slice resistence" and tres for "thrust resistence".
I added these extra parameters for heroes and enemies with the base stat 0 (obviously).
The problem at hand is that, if including one of the enemy extra stats my skills wil not do any damage.
This "(a.atk * (100 + a.xstat.shrp - b.xstat.sres) / 100) - b.def" is the damage formular for the skill "slice" which is just a casual swing with a blade.
"(100 + a.xstat.shrp) / 100)" turns the xstat "shrp" into a percantage increase of the heroes "atk" stat.
If shrp is 7, for example it would basicly be "atk * 1.07" and this parts works fine.
So far so good.
The "- b.xstat.sres" is, as mentioned, the enemy resistance to the "shrp" stat so it is to decrease the whole percantage thingy.
Is it 4 it would be "atk * 1.03".
But as mentioned including the enemy xstat makes the whole invalid apperantly and the whole thing deals no damage.
I have created stats for weapons that increase the damage of, for example, thrusting and slicing abilities (named shrp for "sharp" and thrs for "thrust").
I have also created the other side of the medal with sres for "slice resistence" and tres for "thrust resistence".
I added these extra parameters for heroes and enemies with the base stat 0 (obviously).
The problem at hand is that, if including one of the enemy extra stats my skills wil not do any damage.
This "(a.atk * (100 + a.xstat.shrp - b.xstat.sres) / 100) - b.def" is the damage formular for the skill "slice" which is just a casual swing with a blade.
"(100 + a.xstat.shrp) / 100)" turns the xstat "shrp" into a percantage increase of the heroes "atk" stat.
If shrp is 7, for example it would basicly be "atk * 1.07" and this parts works fine.
So far so good.
The "- b.xstat.sres" is, as mentioned, the enemy resistance to the "shrp" stat so it is to decrease the whole percantage thingy.
Is it 4 it would be "atk * 1.03".
But as mentioned including the enemy xstat makes the whole invalid apperantly and the whole thing deals no damage.
