RPG Maker MV Script Call List

Discussion in 'RPG Maker MV' started by Archeia, Oct 24, 2015.

  1. NoInkling

    NoInkling Veteran Veteran

    Messages:
    39
    Likes Received:
    9
    First Language:
    English
    Try

    Code:
    this.wait(frames);
     
  2. Heartbreak61

    Heartbreak61 Wandering Noob Veteran

    Messages:
    188
    Likes Received:
    86
    Location:
    on your screen
    First Language:
    Indonesian
    Primarily Uses:
    RMMV
    $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));
     
    metronome likes this.
  3. metronome

    metronome Veteran Veteran

    Messages:
    348
    Likes Received:
    142
    First Language:
    English (Sure!)
    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. leathalchicken

    leathalchicken Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    English
    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. Shaz

    Shaz Veteran Veteran

    Messages:
    37,714
    Likes Received:
    11,421
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Please post in the Javascript forums. This thread is for the Script event command, not for plugins.
     
  6. gumgum921

    gumgum921 Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    English
    Just wondering how to remove equipment from an actor with a script call?
     
  7. krizmn

    krizmn Occultist Veteran

    Messages:
    114
    Likes Received:
    8
    Location:
    Maine, USA
    First Language:
    english
    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.
     
    Last edited by a moderator: Dec 30, 2015
  8. juiocyplumbs

    juiocyplumbs Villager Member

    Messages:
    5
    Likes Received:
    0
    Hi... What is the RMMV equivalent of @move_speed? I can't figure it out..
     
  9. ShadowSFX

    ShadowSFX Villager Member

    Messages:
    20
    Likes Received:
    0
    First Language:
    Spanish
    This is exacly what i was looking for. Thank you.
     
  10. Janusz

    Janusz Veteran Veteran

    Messages:
    26
    Likes Received:
    4
    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}
     
    Last edited by a moderator: Jan 15, 2016
  11. skyshadow235

    skyshadow235 Villager Member

    Messages:
    21
    Likes Received:
    1
    First Language:
    English
    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 ._.
     
    Last edited by a moderator: Jan 14, 2016
  12. Defacto1769

    Defacto1769 Villager Member

    Messages:
    16
    Likes Received:
    5
    First Language:
    English
    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. satoya

    satoya Warper Member

    Messages:
    2
    Likes Received:
    1
    First Language:
    Japanese
    Hi, could you tell me how to invoke Plugin Command by script? Is this possible?
     
  14. TheGamedawg

    TheGamedawg Veteran Veteran

    Messages:
    350
    Likes Received:
    132
    Location:
    United States
    First Language:
    English
    This is such a good resource.  I personally have it bookmarked.
     
  15. krizmn

    krizmn Occultist Veteran

    Messages:
    114
    Likes Received:
    8
    Location:
    Maine, USA
    First Language:
    english
    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.....
     
    Last edited by a moderator: Jan 20, 2016
  16. Shinma

    Shinma Lurker Veteran

    Messages:
    756
    Likes Received:
    335
    Location:
    Alabama, USA
    First Language:
    English
    Primarily Uses:
    RMMV
    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. =)


     
     
    Last edited by a moderator: Jan 30, 2016
  17. Korokage

    Korokage Veteran Veteran

    Messages:
    56
    Likes Received:
    9
    First Language:
    English
    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. ChampCrazy

    ChampCrazy Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    German
    $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. Internetomancer

    Internetomancer Veteran Veteran

    Messages:
    56
    Likes Received:
    26
    First Language:
    English
    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.
     
    Last edited by a moderator: Feb 23, 2016
  20. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,586
    Likes Received:
    14,293
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM


    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)
     
    Last edited by a moderator: Feb 13, 2016

Share This Page