<Custom Parameters>
if $gameActors.actor(8).isBattleMember() {
var death = 0;
death += $gameSystem.winCount();
death = death.clamp(0, 25);
atk = death * 2;
}
So I have been trying to use the gameActors script call mixed with Yanfly's Equip core, so when my actor is in the party he begins gaining these stats. I have tried this in order to combat $gameSystem.winCount() but whenever I try the party check it says "unexpected identifier" I have tried this once before to initiate a state. Am I doing something wrong? is there and alternative to these things?
is there no more to the error message? Can you open the console (F8) and grab a screenshot or copy/paste the text from the console? That should give more information.
SyntaxError: Unexpected identifier
at Game_Actor.evalParamPlus (/C:/Users/Ashe/Documents/Games/Acer%20Reborn/js/plugins/YEP_EquipCore.js:515)
at Game_Actor.paramPlus (/C:/Users/Ashe/Documents/Games/Acer%20Reborn/js/plugins/YEP_EquipCore.js:477)
at Game_Actor.Game_BattlerBase.param (rpg_objects.js:2439)
at Game_Actor.Object.defineProperties.mhp.get (rpg_objects.js:2121)
at Game_Actor.Game_BattlerBase.refresh (rpg_objects.js:2602)
at Game_Actor.Game_BattlerBase.refresh (/C:/Users/Ashe/Documents/Games/Acer%20Reborn/js/plugins/YEP_BuffsStatesCore.js:1049)
at Game_Actor.Game_BattlerBase.refresh (/C:/Users/Ashe/Documents/Games/Acer%20Reborn/js/plugins/YEP_WeaponUnleash.js:488)
at Game_Actor.Game_BattlerBase.refresh (/C:/Users/Ashe/Documents/Games/Acer%20Reborn/js/plugins/YEP_AutoPassiveStates.js:278)
at Game_Actor.Game_BattlerBase.refresh (/C:/Users/Ashe/Documents/Games/Acer%20Reborn/js/plugins/YEP_RowFormation.js:1059)
at Game_Actor.Game_Battler.refresh (rpg_objects.js:2988)rpg_managers.js:1618 SceneManager.catchException
Did i do it right?
That says that the error is only in the EquipCore and it is a syntax error - something you wrote doesn't exist as a predefined function or property.
You'll have to check where you might have mispelled something.
unless yanfly handled that, I would look at the ATK for this, especially as the actor-parameter attack is usually read-only and can't be overwritten (unless of course Yanfly's plugin changes that)
That said however, what exactly is the purpose of that?
If it works, it would set the attack of the user to two times the number of battles won for the first 25 battles, and then to 50 for all battles after that - even ignoring equipment etc.