RPG Maker MV Script Call List

ferallag

Veteran
Veteran
Joined
Aug 5, 2020
Messages
38
Reaction score
4
First Language
english
Primarily Uses
RMMV
we need one for MZ now :elswt: shouldn't Rpg maker provide one with the engine?
how different MV JS from MZ JS?
 

henrypan321

Villager
Member
Joined
Jan 16, 2015
Messages
7
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Hi, I noticed a small issue with the script calls for Show Animation and Show Balloon Icon, with the wait option (setWaitMode). Using script call currently in the list with the wait option will crash the game with the error: "TypeError: Cannot read property 'isAnimationPlaying' of null".

There needs to be an extra line with "this._character = character" with another modification, like so:

Show Animation
Code:
this._character = character;
this._character.requestAnimation(id);
this.setWaitMode('animation');
Show Balloon Icon
Code:
this._character = character;
this._character.requestBalloon(id);
this.setWaitMode('balloon');
where character in the first line is to be replaced with specific event (like $gamePlayer, already listed in the comment section).
 

akemiakia

Villager
Member
Joined
Sep 12, 2020
Messages
8
Reaction score
5
First Language
english
Primarily Uses
RMMV
Thank you for this goldmine of information!
 

JMsoup

New guy
Veteran
Joined
Apr 2, 2012
Messages
50
Reaction score
34
First Language
Chinese
Primarily Uses
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.
 

Dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
484
Reaction score
205
First Language
German
Primarily Uses
RMMV
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.
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)

JavaScript:
$gameActors.actor(1).agi
// returns the agi_Value of Actor 1 in Numbers
that works with all stats from the following IMG:
Screenshot_1.png
JavaScript:
if ($gameActors.actor(1).agi == 22) {add Stuff Here};
// thats if actor 1 has agi_Value 22..
Example for "If Condition"..
 
Last edited:

xDRAGOONx

Veteran
Veteran
Joined
Jan 22, 2019
Messages
210
Reaction score
165
First Language
English
Primarily Uses
RMMV
we need one for MZ now :elswt: shouldn't Rpg maker provide one with the engine?
how different MV JS from MZ JS?
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.
 

JMsoup

New guy
Veteran
Joined
Apr 2, 2012
Messages
50
Reaction score
34
First Language
Chinese
Primarily Uses
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)
Thanks for your reply! This works when I'm using it out of battle but not in the plugin I'm using.
(http://www.yanfly.moe/wiki/Battle_A.I._Core_(YEP)#Extension_Plugins)

I found a workaround though, so thanks for the help!
 

Users Who Are Viewing This Thread (Users: 1, Guests: 3)

Latest Threads

Latest Profile Posts

Once again working on a game I'm not sure I'm going to sell or even publish
That feel when you're awake past midnight and suddenly you're one year older :ninja:
I miss collaborations, but I don't know how to find someone to make face parts just to share them with others, and even though I don't like writing or music, I can't trust anyone with writing on my game because it has themes that are easy to mess up, and music needs a clear tone and scenes.
People donating to me for my upcoming birthday so I can pay my team a little. Such angels, I'm so happy. T uT I smile so much my face hurts. Good souls in this world.
Playing Ragnarok Online again is very nostalgic. The last time I played it was 20 years ago, when I was ten-twelve old.
My first mmorpg.^^

Forum statistics

Threads
105,571
Messages
1,014,723
Members
137,245
Latest member
dashstop
Top