I'm not sure if this would fall under Ace support or RGSS3 support, but I'll try it here.
Say I wanted to make a more complicated skill. In this case let's say it has to do with doing more damage depending on the number of states afflicted. If the skill was too long for the formula box, you'd put it in a script;
class Game_Battler < Game_BattlerBase def status_attack(a, c = 0 e = a.atk * 2 - b.def * 1 for d in [2,3,4,5,6,7] if a.state?(d) c += 1 end end return e if c == 0 return e * 1.1 if c == 1 return e * 1.3 if c == 2 #so on and so forth endendOr something like that. If I were to use a skill like this, could I put this in the formula box to modify the strength for a more powerful version of the skill?
Say I wanted to make a more complicated skill. In this case let's say it has to do with doing more damage depending on the number of states afflicted. If the skill was too long for the formula box, you'd put it in a script;
class Game_Battler < Game_BattlerBase def status_attack(a, c = 0 e = a.atk * 2 - b.def * 1 for d in [2,3,4,5,6,7] if a.state?(d) c += 1 end end return e if c == 0 return e * 1.1 if c == 1 return e * 1.3 if c == 2 #so on and so forth endendOr something like that. If I were to use a skill like this, could I put this in the formula box to modify the strength for a more powerful version of the skill?
Code:
status_attack(a,; e * 2#Or something like this?status_attack(a,; e = a.atk * 4 - b.def * 2