RPG Maker MV / MZ Script Call List
Learning Javascript$gameSystem.onBeforeSave();
DataManager.saveGame(id);
SceneManager.goto(Scene_Map);
Make sure that save file id is 1 or more.
If you're sure that your previous scene is scene map, you can do SceneManager.pop() instead of goto.
SceneManager._scene.addChild(new Window_Gold(x, y));
Thanks man!
But there is something weird.
In VXA:
@gold_window = Window_Gold.new@gold_window.x = 0@gold_window.y = 0
will let the gold window stay there permanently until it is ordered to stop
in MV:
SceneManager._scene.addChild(new Window_Gold(x, y));
Disappears when the player transfers to different map.....
I'm trying to create a farming plugin. I don't know how to place a sprite on the map. For instance a block of dirt. Then I need to be able to change the image when the player interacts with it. How would I go about placing the sprite on the map.
Please post in the Javascript forums. This thread is for the Script event command, not for plugins.
Just wondering how to remove equipment from an actor with a script call?
Is there anything in script call to change the actor's equipment types, weapontypes? I want to change what type of weapon they can use without having to entirely change the class.
Actually while I am asking, is there a script call to change all the actor's params? Like hit%, resistances and such? I'm not trying to change their class, but adjust params other than stats.
Actually while I am asking, is there a script call to change all the actor's params? Like hit%, resistances and such? I'm not trying to change their class, but adjust params other than stats.
Hi... What is the RMMV equivalent of @move_speed? I can't figure it out..
This is exacly what i was looking for. Thank you.
Nevermind, I found a solution
Code:
if ($gameActors.actor($gameVariables.value(21)).name() = "Cheat"){// code here}
try this:
random set
$gameVariables.setValue(ID,Math.floor((Math.random()*2)+1));
check value
if ($gameVariables.value(ID) === 1(or 2 if you want the higher number to be the main code)) {
code }
else {
code }
as for resetting the value to 0, just do it at the start or end of the event with $gameVariables.setValue(ID, 0)
though not sure how far you want to go with this, but this should help i think ._.
Hey guys I am looking for a way to display a message while in the menu scene. I just want to open a little box that says "Blah blah blah" then you hit OK to confirm. All of the script calls for displaying messages don't work in the menu scene and I can't seem to find a plugin to do this so I am at a loss here.
Basically what I am doing is I am using Yanfly's skill learning script but when you learn certain skills I just want a box that pops up to say "You can now learn X skill". Thanks!
Basically what I am doing is I am using Yanfly's skill learning script but when you learn certain skills I just want a box that pops up to say "You can now learn X skill". Thanks!
Hi, could you tell me how to invoke Plugin Command by script? Is this possible?
This is such a good resource. I personally have it bookmarked.
I am trying to display a players name in a message box through a script. I can't seem to locate the call for this. Does anyone know? I can't do it through MV cause the facee image has to be picked while making the box. I pretty much am trying to have a random character say something. I have the Face working, but not the name. Any ideas?
*Nevermind, I'll just use a script.....
*Nevermind, I'll just use a script.....
This is an incredibly useful list, thank you so much!!!
I found some errors in it, however, and was wondering if someone could edit the list to help reduce the confusion for those of us that aren't that fluent in js.
The link at the top leads back to the VX Ace thread, not this thread. (Could get confusing if someone saved the file and used the link to check for updates)
For changing equipment, it is listed as:
$gameActors.actor(actorId).changeEquip(slotId, item); item = $databaseWeapons[n] or $databaseArmors[n]
It's actually: $gameActors.actor(actorId).changeEquip(slotId, item); item = $dataWeapons[n] or $dataArmors[n]
Oh, and in the list, below row 147 it has a lot of VX Ace code in it. Row 163 is in regards to equipment so relevant to the above. =)
I found some errors in it, however, and was wondering if someone could edit the list to help reduce the confusion for those of us that aren't that fluent in js.
The link at the top leads back to the VX Ace thread, not this thread. (Could get confusing if someone saved the file and used the link to check for updates)
For changing equipment, it is listed as:
$gameActors.actor(actorId).changeEquip(slotId, item); item = $databaseWeapons[n] or $databaseArmors[n]
It's actually: $gameActors.actor(actorId).changeEquip(slotId, item); item = $dataWeapons[n] or $dataArmors[n]
Oh, and in the list, below row 147 it has a lot of VX Ace code in it. Row 163 is in regards to equipment so relevant to the above. =)
So, I noticed that the list included a script call for checking the ID of something an actor has equipped. I figured I'd try it in my test file to see if I could work out an even that detects if the player has anything in the body equipment slot. I ended up getting an "Illegal return statement" error when I interacted with the event I set up. I made the event using the code as it was in the script call list, so I don't know what went wrong.
$gameScreen.showPicture(pictureId, name, origin, x, y, scaleX, scaleY, opacity, blendMode)
How to Use this Scriptcall??
pictureID = a number
origin = a number or text like "upper left" or " centre "
x, y = a number
scaleX, scaleY = in percentage?!
opacity = a number till 255?!
blendmode = a number or text like " Normal"
i need to get this script call working!
or someone knows a script in order to show more than 100 pictures?
How to Use this Scriptcall??
pictureID = a number
origin = a number or text like "upper left" or " centre "
x, y = a number
scaleX, scaleY = in percentage?!
opacity = a number till 255?!
blendmode = a number or text like " Normal"
i need to get this script call working!
or someone knows a script in order to show more than 100 pictures?
EDIT: Ultimately I was able to use Yanfly's Message Macros to solve my problem. Instead of 'adding' messages, I set Yanfly's macro variables to my strings (eg. Yanfly.MsgMacro[1]=DataManager.Sentences[r]) and then used Yanfly's macros.
Hello,
I can't figure out how to get it to display consecutive messages.
That is, using $gameMessage.add adds more lines to the same message, as opposed to displaying whole new messages as the player hits the action button.
I've tried .newPage and .clear but trying methods at random isn't helping. :/
Sorry, I'm SOOOOOO noob here.
Hello,
I can't figure out how to get it to display consecutive messages.
That is, using $gameMessage.add adds more lines to the same message, as opposed to displaying whole new messages as the player hits the action button.
I've tried .newPage and .clear but trying methods at random isn't helping. :/
Sorry, I'm SOOOOOO noob here.
I don't understand this post. I rechecked to be sure but the 'fix'is the same.
Here's an example:
Code:
$gameScreen.showPicture(3, "TempleG_M46", 0, 0, 0, 100, 100, 255, 0)
Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-mz-script-call-list.46456/