RMMV Script Calls
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
Comment only
 
 
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
UPDATED (11/7/2018, PHILIPPINES TIMEZONE)
- ADDED Delete All Save Files
VXA Version:
https://docs.google.com/spreadsheets/d/1SPWPqSZ3I_LgilZse2I2sDPq-QyNQphb4T3i5aWMQic/edit?usp=drive_web&ouid=112741546968112756440
http://forums.rpgmakerweb.com/index.php?/topic/25759-script-call-collection-for-vxace/
http://forums.rpgmakerweb.com/index.php?/topic/46456-rpg-maker-mv-script-call-list/&page=1
2
Event Page 1
3
Message
4
Show Text$gameMessage.setFaceImage('Actor1',0)
$gameMessage.setBackground(1)
$gameMessage.setPositionType(1)
$gameMessage.add("Show Text Script Call")
5
Show Choiceschoices = []; params = [];
$gameMessage.setChoices(choices, 0)
choices.push("I love you1");choices.push("I love you2");
choices.push("I love you3");choices.push("I love you4");
choices.push("I love you5");choices.push("I love you6");
choices.push("I love you7");choices.push("I love you8");
params.push()
6
Input Number$gameMessage.setNumberInput(var, digits);
7
Select Key Item$gameMessage.setItemChoice(var, n);n = 1 for regular items, 2 for key items, 3 for Hidden A, 4 for Hidden B
8
Show Scrolling Text$gameMessage.setScroll(scrolling_speed, no_fast_forward);
$gameMessage.add("Text");
scrolling speed should be a number e.g. 2, fast_forward should be true or false
you need this line for each line of text individually
9
Show Gold WindowSceneManager._scene.addChild(new Window_Gold(x, y));
$gameParty.Gold();
10
11
Party
12
Change Gold$gameParty.gainGold(n);
13
Change Items$gameParty.gainItem($dataItems[itemId], n);
14
Change Weapons$gameParty.gainItem($dataWeapons[weaponId], n, true/false *note);*note if decreasing, true will mean it will include already equipped weapons.
15
Change Armor$gameParty.gainItem($dataArmors[armorId], n, true/false *note);*note if decreasing, true will mean it will include already equipped armors.
16
Get All Items
$dataItems.forEach(function(item) {$gameParty.gainItem(item,99,false);});
$dataArmors.forEach(function(armor){ $gameParty.gainItem(armor,99,false);});
$dataWeapons.forEach(function(weapon){ $gameParty.gainItem(weapon,99,false);});
17
Get All Items (unless the name is empty)$dataItems.forEach(function(item) {if (item && item.name) {$gameParty.gainItem(item,99,false);}});
$dataArmors.forEach(function(armor) {if (armor && armor.name) {$gameParty.gainItem(armor,99,false);}});
$dataWeapons.forEach(function(weapon) {if (weapon && weapon.name) {$gameParty.gainItem(weapon,99,false);}});
18
Change Party Member$gameParty.addActor(n);
$gameParty.removeActor(n);
To initialize: $gameActors.actor(actorId).setup(actorId);
19
Check Party Leader$gameParty.leader().actorId() == IDReplace ID with the ID of the actor you want to check.
20
Check Party Index of a Character$gameParty.members().indexOf($gameActors.actor(ACTORID))Replace ACTORID with the ID of the actor you want to check
You can also use it like this: $gameParty.members().indexOf($gameActors.actor(1)) == 0
21
22
Game Progression
23
Control Switches$gameSwitches.setValue(num, true/false);If you want to use in a condition's script condition with multiple switches to check:
($gameSwitches.value(1) == true) && ($gameSwitches.value(2) == true) && ($gameSwitches.value(3) == true)
24
Control Variables$gameVariables.setValue(var, value);
25
Control Variables (Array)$gameVariables.setValue(ID, ["a", "b", "c"]);// set variable 1 to an array of numbers
$gameVariables.setValue(1, [1, 2, 3]);

// Access variable 1, and index into the second element and set it to 10
$gameVariables.value(1)[1] = 10;

// print out variable 1, which is the array, which should now be [1, 10, 3]
console.log($gameVariables.value(1))

// Example Eventing Use:
◆Script:$gameVariables.setValue(20, ["あ", "い", "う", "え", "お"]);
: :$gameVariables.setValue(19, $gameVariables.value(20)[1]);
◆Text:None, Window, Bottom
: :\v[19]

// Another Example by Caethyrill
◆Control Variables:#0001 Array = ["あ", "い", "う", "え", "お"]
◆Control Variables:#0002 First = $gameVariables.value(1)[0]
◆Control Variables:#0003 Random = $gameVariables.value(1)[Math.randomInt(5)]
◆Text:None, Window, Bottom
: :Array: \v[1]
: :First: \v[2]
: :Random: \v[3]
26
Control Self Switchvar key = [mapId, eventId, A-D]
$gameSelfSwitches.setValue(key, true);
Example:
var key = [28, 67, 'A'];
$gameSelfSwitches.setValue(key, true);
27
Clear All Self Switches$gameSelfSwitches.clear();
28
Control Timer$gameTimer.start(time); $gameTimer.stop();
29
30
Flow Control
31
Conditional Branchif (code) { stuff } else { stuff }
32
Loopwhile (;;) { stuff }
33
Break Loopbreak;
34
Exit Event Processing$gameInterpreter._index = $gameInterpreter._list.length;
35
Exit GameSceneManager.exit();
36
Common Event$gameTemp.reserveCommonEvent(n);
$gameTemp.clearCommonEvent(n);
37
Label
38
Jump to Label
39
Comment/*
40
41
Actor
42
Change HPvar m = $gameActors.actor(id)
var d = damage
var KO = true/false
Game_Interpreter.prototype.changeHp.call(this, m, d, KO);
Also allow using party member index: $gameParty.members()[index].gainHp(n)

Example Uses:

-- Decrease Actor ID #1 by 70%
var m = $gameActors.actor(1)
var d = Math.round(-0.7*m.mhp)
var KO = true
Game_Interpreter.prototype.changeHp.call(this, m, d, KO);

43
Change MP$gameActors.actor(actorId).gainMp(n)Also allow using party member index: $gameParty.members()[index].gainMp(n)
44
Change TP$gameActors.actor(actorId).gainTp(n)Also allow using party member index: $gameParty.members()[index].gainTp(n)
45
Change State$gameActors.actor(actorId).addState(n);
$gameActors.actor(actorId).removeState(n);
Also allow using party member index: $gameParty.members()[index].addState(n);
46
Recover All$gameParty.members().forEach(function(m){
m.recoverAll();
});

You can also use:

$gameParty.members().forEach(function(m){
m.gainHp(Math.round(1*(m.mhp)));
m.gainMp(Math.round(1*(m.mmp)));
});

You can also use something like this for battle to include reserved members.
$gameParty.battleMembers().forEach(function(member){member.gainHp(your_formula_here)})
47
Change EXP$gameActors.actor(actorId).gainExp(n);Negative n if you want the actor to lose Exp.
48
Change Level$gameActors.actor(actorId).changeLevel(n, true/false);n = level the actor will become. true/false to show level up.
49
Change Parameters$gameActors.actor(actorId).addParam(paramId, n);
Negative n if you wish the actor to lose stats. Params: 0-MaxHP, 1-MaxMP, 2-ATK, 3-DEF, 4-MAT, 5-MDEF, 6-AGI, 7-LUK
50
Change Skill$gameActors.actor(actorId).learnSkill(n);
$gameActors.actor(actorId).forgetSkill(n);
51
Add All Skills$dataSkills.forEach(function(skill){ if(skill) $gameParty.leader().learnSkill(skill.id);});replace $gameParty.leader() with any other actor
52
Change Equipment$gameActors.actor(actorId).changeEquip(slotId, item);item = $dataWeapons[n] or $dataArmors[n]
53
Change Name$gameActors.actor(actorId).setName(n)
If you want to change an Actor's name based on another Actor's name:
$gameActors.actor(actorId).setName($gameActors.actor(actorId).name())
54
Change Class$gameActors.actor(actorId).changeClass(n, keepExp)keepExp is either true or false
55
Change Nickname$gameActors.actor(actorId).setNickname(n)
56
Change Profile$gameActors.actor(actorId).setProfile(n)
57
58
Event Page 2
59
Movement
60
Transfer Player$gamePlayer.reserveTransfer(mapId, x, y, direction, fade type);direction = look at NumPad fade type = 0-Black, 1-White, 2-None
61
Set Vehicle Location$gameMap.vehicle(vehicleId).setLocation(mapId, x, y);
62
Set Event Location$gameMap.event(eventID).setPosition(x, y)
63
Set Player Location$gamePlayer.locate(x, y);
64
Check Player Location$gamePlayer.pos(x, y)
65
Check Player Direction$gamePlayer._direction()Down(2), Left(4), Right(6), Up(8)
66
Scroll Map$gameMap.startScroll(direction, distance, speed);direction = look at NumPad
67
Zoom$gameScreen.startZoom(x,y,zoom,wait);Example:
$gameScreen.startZoom($gamePlayer.screenX(), $gamePlayer.screenY(), 2.5, 60);

Instant Zoom:

$gameScreen.setZoom(x,y,zoom);


Clear Zoom
$gameScreen.clearZoom();
68
Change Player Camera Position$gamePlayer.center(x, y)
69
Change Map Camera$gameMap.setDisplayPos(x, y)
70
Set Movement Route
71
Set Destination$gameTemp.setDestination(mapX, mapY)
72
Get ON/OFF Vehicle$gamePlayer.getOnOffVehicle();
73
74
Timing
75
Waitthis.wait(frames)
76
77
Character
78
Change Transparency$gamePlayer.setTransparent(flag)
79
Change Player Followers$gamePlayer.showFollowers(); $gamePlayer.hideFollowers();Might need $gamePlayer.refresh();
80
Gather Followers$gamePlayer.gatherFollowers(); this.setWaitMode('gather');
81
Show Animationcharacter.requestAnimation(id); this.setWaitMode('animation');Replace character with one of these: $gamePlayer; $gameMap.event(ID);
For "This Event" $gameMap.event(this._eventId)
For example: $gameMap.event(6).requestBalloon(3); this.setWaitMode('balloon');
82
Show Balloon Iconcharacter.requestBalloon(id); this.setWaitMode('balloon');Replace character with one of these: $gamePlayer; $gameMap.event(ID);
For example: $gameMap.event(6).requestBalloon(3); this.setWaitMode('balloon');
83
Erase Event$gameMap.eraseEvent(this._eventId);
84
85
Screen
86
Fadeout Screen$gameScreen.startFadeOut(fade_speed);Default is 24
87
FadeIn Screen$gameScreen.startFadeIn(fade_speed);might want to call wait to go with it, by default the event command does
88
Tint Screen$gameScreen.startTint([red,green,blue,grey], duration);red,green,blue between -255 to 255, grey between 0 and 255, if you want wait for completion call the following $gameInterpreter.wait(duration);
89
Flash Screen$gameScreen.startFlash([red, green, blue, intensity], duration);All between 0 and 255, if you want wait for completion call the following $gameInterpreter.wait(duration);
90
Shake Screen$gameScreen.startShake(power, speed, duration);If you want wait for completion call the following $gameInterpreter.wait(duration);
91
Set Weather Effect$gameScreen.changeWeather("weather", power, duration);Weather = "none","rain","storm","snow". If you want wait for completion call the following $gameInterpreter.wait(duration);
92
93
Picture
94
Show Picture$gameScreen.showPicture(pictureId, name, origin, x, y,
scaleX, scaleY, opacity, blendMode)
95
Move Picture$gameScreen.movePicture(pictureId, origin, x, y, scaleX,
scaleY, opacity, blendMode, duration)
96
Picture Blend Mode$gameScreen._pictures[id]._blendMode = #
97
Rotate Picture$gameScreen.rotatePicture(pictureId, speed);
98
Tint Picture$gameScreen.tintPicture(pictureId, tone, duration);
99
Erase Picture$gameScreen.erasePicture(pictureId);
100
Erase all displayed pictures// Erase Pictures
for (var i = 1; i <= 100; ++i) {
$gameScreen.erasePicture(i);
}
Loading...
Main menu