this._character = character;
this._character.requestAnimation(id);
this.setWaitMode('animation');
this._character = character;
this._character.requestBalloon(id);
this.setWaitMode('balloon');
Im using "$gameActors.actor(1)" for this Example but that should work the same as using "$gameParty.leader()" or other character data.Hi all,
Does anyone know the script call for the value of sp and ex parameters?
I'm using yanfly's battle ai and am trying to make priority conditions based on things such as evasion and damage rate.
$gameActors.actor(1).agi
// returns the agi_Value of Actor 1 in Numbers
if ($gameActors.actor(1).agi == 22) {add Stuff Here};
// thats if actor 1 has agi_Value 22..
I'm guessing the reason that they don't is that they technically already do. It's all there in the code and the community has transcribed it before so we will probably do it again. Also, it could be considered motivation to start looking under the hood, so to speak, for some of us. I just got to the point recently where I wanted to change the players movement speed based on whether or not they were on the world map so I wrote a script for it. I realized that if I'm adding a script to every move event, I should be able to write a mini plugin that accomplishes this on its own. And with some help from an amazing member of this community, I was able to do it. If I hadn't started digging around in the js files, I never would have reached to this point.we need one for MZ nowshouldn't Rpg maker provide one with the engine?
how different MV JS from MZ JS?
Thanks for your reply! This works when I'm using it out of battle but not in the plugin I'm using.Im using "$gameActors.actor(1)" for this Example but that should work the same as using "$gameParty.leader()" or other character data.
("$gameActors.actor(1)" is only depending on actor ID(1) , "$gameParty.leader()" is only the Party Leader)
I don't know if there is a direct function as a shortcut, but you can get that info the same way an event gets it without scripting.Is there and if so, what is the script call to determine the regionID of an event?