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.
RPG Maker MV / MZ Script Call List
● ARCHIVED · READ-ONLY
-
-
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. -
I regret that saying to me "you'll need to create a plugin" is equivalent to saying "you'll need to sprout wings and fly".
Oh well, never mind. -
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! -
Hey ya'll, you can open up chat in the google doc to talk with one another!
-
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") -
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. -
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 -
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 -
$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? -
@RichardDragon
The Ruby format a_b does not work in JS. Try gameMap (second word beginning with upper case). -
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 -
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 -
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... -
Thanks !@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
I will try this and reply again. -
Thank you for putting this together. :)
-
Hi, again.
Someone can say how i can use this?
$gameVariables.setVariable
Thanks on advice. -
Anyone can help me? What script call to get enemy ID / name then store it on a variable?
-
$gameVariables.setValue(variable_id,new_value);Is working for me. For instance:Hi, again.
Someone can say how i can use this?
$gameVariables.setVariable
Thanks on advice.
$gameVariables.setValue(1,12);Can be used to assign 12 to the variable 1.
Hope it helps :) -
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.