RPG Maker MV / MZ Script Call List

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
I know it’s possible to check if an actor has a particular skill, but is it also possibly to blindly check which skills an actor has with a script call?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,147
Reaction score
10,711
First Language
Czech
Primarily Uses
RMMV
Open dev console in game via f8, type in $gameActors.actor(1), hit enter and see for yourself.
 

Archeia

Level 99 Demi-fiend
Staff member
Developer
Joined
Mar 1, 2012
Messages
15,494
Reaction score
15,939
First Language
Filipino
Primarily Uses
RMMZ
UPDATED: June 16, 2018 (JST)
- Added Get All Items Script Call (including not getting blank ones)
- Added Get All Skills
- Added Change Tileset Z Value
- Added Set Destination
- Updated Change Armor
- Updated Recover All
- Updated Movement Command Syntax to use setValue than setVariable
 

Archeia

Level 99 Demi-fiend
Staff member
Developer
Joined
Mar 1, 2012
Messages
15,494
Reaction score
15,939
First Language
Filipino
Primarily Uses
RMMZ
UPDATED: June 28, 2018 (LA, CA)
- Added Check Player Location
- Added Check Player Direction
- Added Change Player Camera Position
- Added Change Map Camera
 
Last edited:

katoriina

Lurker
Member
Joined
Jan 7, 2017
Messages
8
Reaction score
1
First Language
English
Primarily Uses
RMMV
I'm pretty new at this javascript business- and I realize this is a very simple question. But I have no idea how to do it. xP

I just need to know the script call for checking to see if the party leader has a particular armor equipped.
 

JayA

Veteran
Veteran
Joined
Dec 8, 2017
Messages
34
Reaction score
12
First Language
English
Primarily Uses
RMMV
I did not know this sheet existed until now. Super useful! Thanks!
 

Nitroshock6

Villager
Member
Joined
Jan 25, 2015
Messages
5
Reaction score
0
First Language
English
Primarily Uses
Is there a way to have the script call on all current battling members (non reserve)? This is the formula I have right now but am unsure how to replace "$gameActor.actors(2)"

{ ( $gameActor.actors(2).gainHp($gameActors.actor(2).mat*1.5) )

};

Edit: Thank you so much
 
Last edited:

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
733
Reaction score
596
First Language
French
Primarily Uses
@Nitroshock6 :
Code:
$gameParty.battleMembers().forEach(function(member){member.gainHp(your_formula_here)})
 

Archeia

Level 99 Demi-fiend
Staff member
Developer
Joined
Mar 1, 2012
Messages
15,494
Reaction score
15,939
First Language
Filipino
Primarily Uses
RMMZ
UPDATED (9/22/2018, PHILIPPINES TIMEZONE)
ADDED 2 NEW SCENE CONTROL COMMANDS
- Copy Position of the Player/Event/Object
- Copy just the direction of the Player/Event/Object

Is there a way to call a function where all allies recover HP and MP? I know there was in VX Ace but tracing it in MV when I recently migrated... well, I'm kind of spinning in my head.

UPDATED RECOVER ALL
- Forgot to heal MP as well.
- Added new zoom calls.
 
Last edited:

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
970
Reaction score
432
First Language
english
Primarily Uses
RMMV
this list is missing
$gameParty.hasItem($dataItems[itemId])

this list has "change item" but not "check for item"
 

poppicha

Villager
Member
Joined
Aug 30, 2015
Messages
13
Reaction score
5
First Language
Thai
Primarily Uses
RMMV
Excuse me. I want a script call to check if enemy doesn't have any state affect.

Like $gameTroop.member()[0].(doesn't have any state affect);
I don't know what to insert.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,886
Reaction score
8,590
First Language
German
Primarily Uses
RMMV
Excuse me. I want a script call to check if enemy doesn't have any state affect.
Such a script call doesn't exist. you have to make a loop that checks for every state, it can't be a single line.

what you could do is request a plugin that gives you a new function for that, and then call that new function.
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
733
Reaction score
596
First Language
French
Primarily Uses
@poppicha, @Andar
Code:
$gameActors.actor(actorId)._states.length === 0
$gameTroop.members()[enemyIndex]._states.length === 0

States are stored in an array, if the array length is 0 it means there is currently no state affecting the actor.
Note that this doesn't account for passive states because those are usually stored in a different array.
 

Jewelraffe

Villager
Member
Joined
Feb 19, 2017
Messages
26
Reaction score
5
First Language
English
Primarily Uses
RMMV
(First post woot)

I know about both the Change Equipment event thingy and the script call, but how would you unequip everything for your whole party? Without the tedium that is Change Equips for every slot for every actor who could be present at that point? Thanks! :D
 
Last edited:

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
712
Reaction score
231
First Language
English
Primarily Uses
@Jewelraffe
for(k=0; k< $gameParty.size(); k++){
var member = $gameParty.members()[k];
for(j=0; j < member.equips().length; j++){
if(member.equips()[j] !== null){
member.changeEquip(j, null);
}

}
}
 

Jewelraffe

Villager
Member
Joined
Feb 19, 2017
Messages
26
Reaction score
5
First Language
English
Primarily Uses
RMMV
@Jewelraffe
for(k=0; k< $gameParty.size(); k++){
var member = $gameParty.members()[k];
for(j=0; j < member.equips().length; j++){
if(member.equips()[j] !== null){
member.changeEquip(j, null);
}

}
}

Oh nice! It works perfectly, thanks! :D
 

Kagemaru

Veteran
Veteran
Joined
Dec 11, 2017
Messages
49
Reaction score
5
First Language
French
Primarily Uses
RMMV
In the system section of the list, there's only script calls for the system music(Battle BGM, victory & defeat MEs, ect) but nothing for the system sounds. Is there a reason for that? If possible, could someone tell me how I could change the battle start SE(The SE during the battle transition) with a script call?? Thanks!
 
Joined
Feb 18, 2015
Messages
615
Reaction score
333
First Language
English
Primarily Uses
RMMV
Is there a way to use the "check player location" call to check if a player isn't at that coordinate? Yes, I realize that I could set variables to be player X and player Y, but in order to check that I'd have to have an event set to parallel. Otherwise it just reports the values from when the variables are initialized. (I'm using QMap, for reference, which allows you to set a JavaScript condition for whether an object appears on the map or not.)
 

Latest Threads

Latest Profile Posts

Bengawan Solo with fantasy style arrangement. :D
So I just got my computer back (Was posting stuff on my phone) But now my dang monitor's broken! I'll need to get a new one, which means... JOBS! Yaaay... When I get a new monitor, I'll post picture of one of my RPGMMV projects.
Wish me luck... :kaodes:
Had to clean up disk space because Windows Updates was having my primaries' disk space for breakfast, lunch and dinner. I guess the clean up thingy doesn't work or something because there were 15gigs of old update files in it.
Monday morning, and the sudden message: Hey, can you set up a full second lesson about pixel art till tomorrow?

Forum statistics

Threads
115,892
Messages
1,093,767
Members
151,138
Latest member
SouthernGamer
Top