I have a skill which I have used for 9 hours of game play. The formula looks like this.
Now, however, I want to include a variable in the calculation of damage, so I have this.
When I use the revised skill, however, I get the error message:
unexpected $end, expecting keyword_end
In my ignorance, I had assumed that when I revised the formula, I would leave the "end"s where they were.
I have no idea what is wrong here. Can anyone spot the mistake?
Thanks.
Code:
if $game_player.region_id == 40;
if b.state?(23); b.add_debuff(6, 3); end;
base[20] + 4*a.level + a.mat*4 - b.mdf*1.5;
else;
base[20] + 4*a.level + a.mat*3 - b.mdf*1.5;
end
Code:
if $game_player.region_id == 40;
if b.state?(23); b.add_debuff(6, 3); end;
base[20] + 4*a.level + a.mat*4 - b.mdf*1.5 * (v[245]/100);
else;
if b.state?(23); b.add_debuff(6, 3);
base[20] + 4*a.level + a.mat*3 - b.mdf*1.5 * (v[245]/100);
end
unexpected $end, expecting keyword_end
In my ignorance, I had assumed that when I revised the formula, I would leave the "end"s where they were.
I have no idea what is wrong here. Can anyone spot the mistake?
Thanks.

