RMMV Script Calls
Comments
 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: October 3, 2017
(Added a new section, Set Player Location.
Sometimes Transfer Player causes FPS Drop if teleported on the same map.)
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
CTRL+ ENTER or ALT+ ENTER for new lines
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
10
Party
11
Change Gold$gameParty.gainGold(n);
12
Change Items$gameParty.gainItem($dataItems[itemId], n);
13
Change Weapons$gameParty.gainItem($dataWeapons[weaponId], n, true/false *note);*note if decreasing, true will mean it will include already equipped weapons.
14
Change Armor$gameParty.gainItem($dataArmorsweaponId], n, true/false *note);*note if decreasing, true will mean it will include already equipped armors.
15
Change Party Member$gameParty.addActor(n);
$gameParty.removeActor(n);
To initialize: $gameActors.actor(actorId).setup(actorId);
16
17
Game Progression
18
Control Switches$gameSwitches.setValue(num, true/false);
19
Control Variables$gameVariables.setValue(var, value);
20
Control Self Switch$gameSelfSwitches.setValue(key, true/false);key = [mapId, eventId, A-D]
var key = [66, 5, 'A'];
$gameSelfSwitches.setValue(key, true);
21
Control Timer$gameTimer.start(time); $gameTimer.stop();
22
23
Flow Control
24
Conditional Branchif (code) { stuff } else { stuff }
25
Loopwhile (;;) { stuff }
26
Break Loopbreak;
27
Exit Event Processing$gameInterpreter._index = $gameInterpreter._list.length;
28
Common Event$gameTemp.reserveCommonEvent(n);
29
Label
30
Jump to Label
31
Comment/*
32
33
Actor
34
Change HP$gameActors.actor(actorId).gainHp(n)Also allow using party member index: $gameParty.members()[index].gainHp(n)
35
Change MP$gameActors.actor(actorId).gainMp(n)Also allow using party member index: $gameParty.members()[index].gainMp(n)
36
Change TP$gameActors.actor(actorId).gainTp(n)Also allow using party member index: $gameParty.members()[index].gainTp(n)
37
Change State$gameActors.actor(actorId).addState(n);
$gameActors.actor(actorId).removeState(n);
Also allow using party member index: $gameParty.members()[index].addState(n);
38
Recover Allfor (var j = 0; j < $gameActors.length; j++) {
$gameActors.actor(j).recoverAll();
};
39
Change EXP$gameActors.actor(actorId).gainExp(n);Negative n if you want the actor to lose Exp.
40
Change Level$gameActors.actor(actorId).changeLevel(n, true/false);n = level the actor will become. true/false to show level up.
41
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
42
Change Skill$gameActors.actor(actorId).learnSkill(n);
$gameActors.actor(actorId).forgetSkill(n);
43
Change Equipment$gameActors.actor(actorId).changeEquip(slotId, item);item = $dataWeapons[n] or $dataArmors[n]
44
Change Name$gameActors.actor(actorId).setName(n)
45
Change Class$gameActors.actor(actorId).changeClass(n, keepExp)keepExp is either true or false
46
Change Nickname$gameActors.actor(actorId).setNickname(n)
47
Change Profile$gameActors.actor(actorId).setProfile(n)
48
49
Event Page 2
50
Movement
51
Transfer Player$gamePlayer.reserveTransfer(mapId, x, y, direction, fade type);direction = look at NumPad fade type = 0-Black, 1-White, 2-None
52
Set Vehicle Location$gameMap.vehicle(vehicleId).setLocation(mapId, x, y);
53
Set Event Location$gameMap.event(eventID).setPosition(x, y)
54
Set Player Location$gamePlayer.locate(x, y);
55
Scroll Map$gameMap.startScroll(direction, distance, speed);direction = look at NumPad
56
Set Movement Route
57
Get ON/OFF Vehicle$gamePlayer.getOnOffVehicle();
58
59
Timing
60
Wait$gameInterpreter.wait(frames);
61
62
Character
63
Change Transparency$gamePlayer.setTransparent(flag)
64
Change Player Followers$gamePlayer.showFollowers(); $gamePlayer.hideFollowers();Might need $gamePlayer.refresh();
65
Gather Followers$gamePlayer.gatherFollowers(); this.setWaitMode('gather');
66
Show Animationcharacter.requestAnimation(id); this.setWaitMode('animation');For character: $gamePlayer; $gameMap.event(ID);
67
Show Balloon Iconcharacter.requestBalloon(id); this.setWaitMode('balloon');For character: $gamePlayer; $gameMap.event(ID);
68
Erase Event$gameMap.eraseEvent(this._eventId);
69
70
Screen
71
Fadeout Screen$gameScreen.startFadeOut(fade_speed);Default is 24
72
FadeIn Screen$gameScreen.startFadeIn(fade_speed);might want to call wait to go with it, by default the event command does
73
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);
74
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);
75
Shake Screen$gameScreen.startShake(power, speed, duration);If you want wait for completion call the following $gameInterpreter.wait(duration);
76
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);
77
78
Picture
79
Show Picture$gameScreen.showPicture(pictureId, name, origin, x, y,
scaleX, scaleY, opacity, blendMode)
80
Move Picture$gameScreen.movePicture(pictureId, origin, x, y, scaleX,
scaleY, opacity, blendMode, duration)
81
Picture Blend Mode$gameScreen._pictures[id]._blendMode = #
82
Rotate Picture$gameScreen.rotatePicture(pictureId, speed);
83
Tint Picture$gameScreen.tintPicture(pictureId, tone, duration);
84
Erase Picture$gameScreen.erasePicture(pictureId);
85
Audio & Video
86
Sound Object: { name: filename, volume: n, pitch: n, pan: n }
87
Play BGMAudioManager.playBgm( refer to sound object above );
88
Fadeout BGMAudioManager.fadeOutBgm(n);
89
Save BGM$gameSystem.saveBgm();
90
Replay BGM$gameSystem.replayBgm();
91
Play BGSAudioManager.playBgs( refer to sound object above );
92
Fadeout BGSAudioManager.fadeOutBgs(n);
93
Play MEAudioManager.playMe( refer to sound object above );
94
Play SEAudioManager.playSe( refer to sound object above );
95
Stop SEAudioManager.stopSe();
96
Play MovieGraphics.playVideo(path/name.ext);
97
98
Event Page 3
99
Scene Control
100
Battle ProcessingBattleManager.setup(troopId, true/false, true/false);
$gamePlayer.makeEncounterCount();
SceneManager.push(Scene_Battle);
First true/false is for allowing to Escape, 2nd true/false is for allowing the player to lose
Loading...
 
 
 
Event Pages Script Call
Battle-Related Script Calls