Using your example in the above post, you could do something like this in a script call event (with the page settings as Battle and Turn 0):
(function(){$gameTroop.members().forEach(function(member){member.enemy().params[2] = ($gameVariables.value(67) + $gameVariables.value(32))/$gameVariables.value(43);});})();It would set all enemies attack to the formula you provided when the battle starts, but again a plugin would be better, as this script call would need to be in every troop event.
(function(){$gameTroop.members().forEach(function(member){member.enemy().params[2] = ($gameVariables.value(67) + $gameVariables.value(32))/$gameVariables.value(43);});})();It would set all enemies attack to the formula you provided when the battle starts, but again a plugin would be better, as this script call would need to be in every troop event.
Would you be able to use this method to adjust the amount of gold and exp that enemy drops or would that be completely different?
