RPG Maker MV / MZ Script Call List

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,512
Reaction score
11,998
First Language
English
Primarily Uses
RMVXA
I don't see these in the list

What is the script call

- to turn dash on/off?

- to change the default volume on SE

both of these are in Options on the Main Menu, and I want to set them at the beginning of the game.

thanks.
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,699
Reaction score
940
First Language
English
Primarily Uses
N/A
I don't see these in the list

What is the script call

- to turn dash on/off?

- to change the default volume on SE

both of these are in Options on the Main Menu, and I want to set them at the beginning of the game.

thanks.

- you'll need to create a plugin for that, it seems. You'll either need to change Game_Map.prototype.isDashingDisabled, or Game_Player.prototype.isDashButtonPressed.

- Look at the ConfigManager. ConfigManager.seVolume = vol. Keep in mind, normal volume is 100, but through a script call you can set any volume level. Please, do not kill us with loud sounds.

Also note that bgm, bgs, me, and se volume are all configurable the same way.
 

Nik0405

Veteran
Veteran
Joined
Dec 5, 2013
Messages
28
Reaction score
8
First Language
German
Hi,

i am trying to make an dynamic weathersystem but i need to get an random value saved in the var 12 wich is generated between var 11 and 1.

I tried it with the script call but i always get "0" as result.

$gameVariables.setValue(12, Math.floor((Math.random() * $gameVariables[11]) + 1))Somebody knows whats wrong? Thanks:)

Ok i found the error.

The $gameVariables[11] was wrong it hast to be $gameVariables.value(11)

$gameVariables.setValue(12, Math.floor((Math.random() * $gameVariables.value(11))I'll just leave this here, if someone wants to gat an random var between an number and another var, here is your function!
 
Last edited by a moderator:

Gryffin

Villager
Member
Joined
Dec 15, 2013
Messages
21
Reaction score
2
First Language
English
Primarily Uses
Hey ya'll, you can open up chat in the google doc to talk with one another!
 

Another Ned

Veteran
Veteran
Joined
Dec 12, 2013
Messages
555
Reaction score
1,664
First Language
German
Primarily Uses
RMMZ
Thank you for this list this early already! Great job, Archeia, and I hope your health is back to full power.

All of a sudden, I can see my future self getting lots of error messages because of forgotten ; in script calls.

Ooh, and just as I was about to ask a question I discovered that there's even more information in column C! x")
 

chalkdust

Resource Staff
Restaff
Joined
Mar 23, 2015
Messages
360
Reaction score
564
First Language
English
Primarily Uses
RMMV
It's amazing to have this up so early! May I request an addition? One thing that is missing is the possible conditions for setting up a conditional branch.

if (code) { stuff } else { stuff }

My request is to flesh out the "code" options that are equivalent to the existing options in the event editor.
 

Naoya

Warper
Member
Joined
Oct 19, 2015
Messages
3
Reaction score
0
First Language
Portuguese
I have one question too :)

How can I get the actor that is using a skill? (My script runs in the middle of a skill thanks to Yanfly's Skill Core, and I need to add a state to the character that used the skill)

Thanks for the hard work guys :D
 
Joined
Feb 21, 2013
Messages
24
Reaction score
3
First Language
SPANISH
Primarily Uses
RMMV
Can someone explain to me. How i can use this

$game_map.events[id].moveto(new_x, new_y)

Its says...

$game_map is not defined
 

krizmn

Occultist
Veteran
Joined
Jun 9, 2015
Messages
117
Reaction score
9
First Language
english
Primarily Uses
   $gameParty.addActor($gameVariables[0]);

I am getting a null error with this.  I know all indexes start with 0 now.  But this should work.  When I replace game variables with "1" I add the member I want.  But when I access the first variable I have it does not....any ideas?

I used the converter program, my only thoughts is that maybe whoever made the converter program may have made a mistake somewhere.

Also, when I am adding new members they are not starting with initial equipment.  When I add them do I need to set their equipment too now?
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,512
Reaction score
11,998
First Language
English
Primarily Uses
RMVXA
@RichardDragon

The Ruby format a_b does not work in JS.  Try gameMap (second word beginning with upper case).
 

DCF

Villager
Member
Joined
Feb 6, 2014
Messages
24
Reaction score
15
First Language
English
Hi All,

First, thanks for putting this together. I'm looking at event movement routes and wanted to set a script call to flip a self switch (mv by default only lets one set global switches in movement route GUI).

Came across this list and found the answer: $gameSelfSwitches.setValue(key, true/false); where key = [mapId, eventId, A-D]

Rather than setting these individually, I'd like to make the code able to identify the current map and calling event ids.

Example: $gameSelfSwitches.setValue([<mapIDcheckCode>,this._eventID,"A"], true);

More generically, expanding the 'check' script calls section for some additional game variables would be greatly appreciated.

Found these throughout the document already...

this._eventId

$gamePlayer.x

$gamePlayer.y

$gameMap.events()[n].x

$gameMap.events()[n].y
 

Baka-chan

☆*:.。. o(≧▽≦)o .。.:*☆
Veteran
Joined
Dec 19, 2012
Messages
490
Reaction score
149
First Language
German
Script call to change location of an event:

$gameMap.event(this._eventId).locate(x,y)

$gameMap.event(this._eventId).setPosition(x,y)

For the direction it should face:

$gameMap.event(this._eventId).setDirection(direction)

direction: 2 = down, 4 = left, 6 = right, 8 = up
 

Zuuhl

Warper
Member
Joined
Oct 26, 2015
Messages
4
Reaction score
1
First Language
Dutch
Right, newbie question here...

I am using DMV_MapMenuButtons.js

(DMV's map menu buttons plugin)

When configuring the plugin I can configure some items.

 * @param Button 1 Data

 * @desc Sets the x, y, coldIcon and hotIcon for button 1

 * @default 466, 2, 1, 17

 *

 * @param Button 1 Func

 * @desc Sets the function used for when button 1 is triggered

 * @default SceneManager.push(Scene_Item)

 

This all works like a charm, but how would I go about having a script call change these parameters?

For instance, I want to change the "Button 1 Data" or the "Button 1 Func" from a common event?

 

Please advice. :)

(if this is the wrong place to ask, please let me know)

 

Oh and keep in mind, before today I never even touched anything JS related, not even when it was dead and I had a long stick... so yeah, I am a complete noob.

Basically this means that if someone explains something -really- well, I can replicate it and learn from there. But right now I have no basis whatsoever, heh...
 
Joined
Feb 21, 2013
Messages
24
Reaction score
3
First Language
SPANISH
Primarily Uses
RMMV
@RichardDragon

The Ruby format a_b does not work in JS. Try gameMap (second word beginning with upper case).
Thanks !
Script call to change location of an event:

$gameMap.event(this._eventId).locate(x,y)
$gameMap.event(this._eventId).setPosition(x,y)

For the direction it should face:

$gameMap.event(this._eventId).setDirection(direction)

direction: 2 = down, 4 = left, 6 = right, 8 = up
Thanks :)

I will try this and reply again.
 
Last edited by a moderator:

Schade

"Treasure hunter"
Veteran
Joined
May 29, 2013
Messages
40
Reaction score
13
First Language
English
Primarily Uses
N/A
Thank you for putting this together.  :)
 
Joined
Feb 21, 2013
Messages
24
Reaction score
3
First Language
SPANISH
Primarily Uses
RMMV
Hi, again.

Someone can say how i can use this?

$gameVariables.setVariable

Thanks on advice.
 
Last edited by a moderator:
Joined
Oct 26, 2012
Messages
31
Reaction score
5
First Language
Indonesia
Primarily Uses
Anyone can help me? What script call to get enemy ID / name then store it on a variable?
 

Leonard

Warper
Member
Joined
Oct 27, 2015
Messages
4
Reaction score
1
First Language
Spanish
Hi, again.

Someone can say how i can use this?

$gameVariables.setVariable

Thanks on advice.
$gameVariables.setValue(variable_id,new_value);Is working for me. For instance:

$gameVariables.setValue(1,12);Can be used to assign 12 to the variable 1.

Hope it helps :)
 

Another Ned

Veteran
Veteran
Joined
Dec 12, 2013
Messages
555
Reaction score
1,664
First Language
German
Primarily Uses
RMMZ
I'm super happy I actually found the script call for checking whether the party has a certain item in their inventory (because if it's already in the Script Call List, I haven't found it).

$gameParty.hasItem($dataItems[itemID]);

Even more super happy, because I also found the script call for getting the amount of a certain item!

$gameParty.numItems($dataItems[itemID]);

@Richard Dragon: Do you mean $gameVariables.setValue? It's $gameVariables.setValue(variableID, value); and value can be a number or something more complicated that returns a number (like the getting the amount of an item thing I posted). If not then I don't know either, sorry.
 

Latest Threads

Latest Profile Posts

51F2AC5E-A605-446E-9439-D77AA6A0B0ED.pngAdded console to my content thread here
Sweet nostalgia. My fave Final Fantasy game.
Steam page is now live!
1632768058957.png
just discovered thig game called Willowbrooke Post... beautiful artstyle if I do say so myself... does anyone know what this kind of style is called??
In one of my game projects, I am working on an arena where you can fight combatants or bet on monsters, and, man, it is taking so long, lmao. I do not think that it helps that I am using an evented combat system with a lot of things that I have to edit.

Forum statistics

Threads
115,423
Messages
1,089,742
Members
150,169
Latest member
switchstone
Top