How to make your agility work, i.e., partially dodging those fireballs and rolling with the blows.
Feel free to skip the rant and go straight to the code.
Agility Sucks Rantgo to line 297 of Game Actor (and 313 if you want to effect mdef) or whatever line your version of Game Actor has for "return pdef1 + pdef2 + ..." and add the green line:
return pdef1 + pdef2 + pdef3 + pdef4 + pdef5
+ [Integer((agi - 50)/5), 0].maxthen Save.
That's it! Now your agility will do something (if it's over 50), for every 5 points. You can change that number however you like but I recommend keeping it higher, rather than lower. The higher that "/5" the less useful agility will be, the smaller it is, like "/2" or "/1", the more powerful agility becomes. I've got mine set up so every 100 points over 50 agility is +20 PDEF. That means if you have an agility of 999, you would have a base PDEF of 189, roughly equivalent to wearing mythril plate and shield... without having to wear it
My work on Dexterity is a bit tangent at this point, and related to projectiles, but I will probably post more on that when the bugs are worked out. ^^
P.S. - This is for RPGmaker XP, I don't know if it will work in VX.
P.S.S - I think I posted in the wrong forum unless this code also works in VX.