How do you write command in script

Discussion in 'Learning Javascript' started by Mister.Right, Jun 6, 2017.

  1. Mister.Right

    Mister.Right Veteran Veteran

    Messages:
    249
    Likes Received:
    83
    I would like to make an event do something in script, for example, walking. I wanted to learn MV api, so my intention to write event's command in script. So what is the object to start with? $gamemap.event[id]?
     
    #1
  2. Kyo Panda

    Kyo Panda Veteran Veteran

    Messages:
    34
    Likes Received:
    24
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    Most of the event commands lies in the Game_Interpreter, so if you want to replicate how they work in script, that is a good place to start.
     
    #2
  3. Quxios

    Quxios Veteran Veteran

    Messages:
    1,055
    Likes Received:
    778
    First Language:
    English
    Primarily Uses:
    RMMV
    To get an event object from the map its:
    Code:
    $gameMap.event(ID)
    or
    $gameMap._events[ID]
    
     
    #3
  4. Mister.Right

    Mister.Right Veteran Veteran

    Messages:
    249
    Likes Received:
    83
    @Quxios Why did you quit making any more scripts, bro? You are a few good scripters out here.
     
    Last edited: Jun 11, 2017
    #4

Share This Page