RPG Maker MV / MZ Script Call List

● ARCHIVED · READ-ONLY
Started by Archeia 569 posts Page 8 of 29 View original ↗
  1. ultimate2106 said:
    Hey guys I want my event to wait a random number of frames (from 10-15) and I use

    $gameInterpreter.wait(frames);Frames would be the random number. But even if I replace frames with a fixed amount like 10 it always says $gameInterpreter is not defined. Where is my mistake?
    Try

    Code:
    this.wait(frames);
  2. metronome said:
    Sorry for asking again~~

    Nothing for this in RMMV script call?

    Thanks.
    $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));
  3. Heartbreak61 said:
    $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.....
  4. 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. 
  5. Please post in the Javascript forums. This thread is for the Script event command, not for plugins.
  6. Just wondering how to remove equipment from an actor with a script call?
  7. 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.
  8. Hi... What is the RMMV equivalent of @move_speed? I can't figure it out..
  9. This is exacly what i was looking for. Thank you.
  10. I have a quick question: How to check if actor with id assignet to variable has target name?

    I tried a couple of various things but can't find a way

    Nevermind, I found a solution

    Code:
    if ($gameActors.actor($gameVariables.value(21)).name() = "Cheat"){// code here}
  11. Cederick said:
    Can someone help me?

    I need a small script that is really basic but my head hurts after 10h+ non-stop RPG Maker MV

    A script to change the value of the variable 10 to 1 or 2 (random)

    A script that reads == instead of >= like the preset option in RPG Maker MV

    So that I can create a random if else statement within the variable 10 and could change it to 0 after every run for a puzzle in my game.

    Thanks
    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 ._.
  12. 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!
  13. Hi, could you tell me how to invoke Plugin Command by script? Is this possible?
  14. This is such a good resource.  I personally have it bookmarked.
  15. 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.....
  16. 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. =)


     
  17. 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.
  18. $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?
  19. 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.
  20. Shinma said:
    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 don't understand this post. I rechecked to be sure but the 'fix'is the same.

    ChampCrazy said:
    i need to get this script call working!
    or someone knows a script in order to show more than 100 pictures?



    Here's an example:

    Code:
    $gameScreen.showPicture(3, "TempleG_M46", 0, 0, 0, 100, 100, 255, 0)