Sorry for the non-descriptive title, I'm not sure what this is... Other than a monster of a thingy. Could be because I'm brain dead after two Biology midterms and an OChem midterm in two days. Ouchie.
So, I'm using Yanfly's Extra Parameter Formula plugin (and a bunch of her others), but I'm having trouble setting something up... I've removed the personally nonsensical Magic Evasion stat with Yanfly's HitAccuracy. By doing so, I have been able to add my own stat. I call it Power, and Power is a % increase in all outgoing damage. Power is also largely controlled by the character's Agility stat. Because of the way my game handles Agility, the higher the character's Agility stat, the lower their Power, and the lower the character's Agility stat, the higher their Power. Anyway, here's my script thingy for Power...
if (a.isStateAffected(5)) {if (a.agi = 0) {1.62 + base} else {if (a.agi = 1) {1.49 + base}} else {if (a.agi = 2) {1.39 + base}} else {if (a.agi = 3) {1.30 + base}} else {if (a.agi = 4) {1.22 + base}} else {if (a.agi = 5) {1.14 + base}} else {if (a.agi = 6) {1.07 + base}} else {if (a.agi = 7) {1.00 + base}} else {if (a.agi = 8) {0.94 + base}} else {if (a.agi = 9) {0.88 + base}} else {if (a.agi = 10) {0.83 + base}} else {if (a.agi = 11) {0.78 + base}} else {if (a.agi = 12) {0.74 + base}} else {if (a.agi = 13) {0.69 + base}} else {if (a.agi = 14) {0.66 + base}} else {if (a.agi = 15) {0.62 + base}}} else {if (a.agi = 0) {1.39 + base}} else {if (a.agi = 1) {1.30 + base}} else {if (a.agi = 2) {1.22 + base}} else {if (a.agi = 3) {1.14 + base}} else {if (a.agi = 4) {1.07 + base}} else {if (a.agi = 5) {1.00 + base}} else {if (a.agi = 6) {0.94 + base}} else {if (a.agi = 7) {0.88 + base}} else {if (a.agi = 8) {0.83 + base}} else {if (a.agi = 9) {0.78 + base}} else {if (a.agi = 10) {0.74 + base}} else {if (a.agi = 11) {0.69 + base}} else {if (a.agi = 12) {0.66 + base}} else {if (a.agi = 13) {0.62 + base}} else {if (a.agi = 14) {0.59 + base}} else {if (a.agi = 15) {0.56 + base}}}
However, when I look to see what the character's Power is in Yanfly's Status Menu Core (to make sure it's actually working right), all I get is "Syntax Error: Unexpected Token else". Umm... Honestly, I've never tried making a line of code this big and aren't certain where I went wrong... Could I get some help, please? XD