Run common event for another event.

Discussion in 'JS Plugin Requests' started by vectorinox, Dec 5, 2016.

    Tags:
  1. vectorinox

    vectorinox Airport Luggage Veteran

    Messages:
    45
    Likes Received:
    9
    Location:
    Singapore
    First Language:
    Singlish
    Is there a way to make an event cause another event to run a common event?


    Something like putting a script call: "run.event( common event id, event id)" inside an event, which cause the event to make the event with the id runs the common event with the id.


    Sorry for the eventception.
     
    #1
  2. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,806
    Likes Received:
    10,587
    First Language:
    English
    Primarily Uses:
    RMVXA
    In the event you want to initiate the common event, on the first tab of the Event Command Menu, left side, towards the bottom, select 'Call Common Event' and choose which one you want to run.
     
    #2
  3. Shaz

    Shaz Veteran Veteran

    Messages:
    37,718
    Likes Received:
    11,428
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Why would you want one event to tell another event to run a common event?  What's the scenario?
     
    #3
  4. vectorinox

    vectorinox Airport Luggage Veteran

    Messages:
    45
    Likes Received:
    9
    Location:
    Singapore
    First Language:
    Singlish
    It's a complicated one. I was using Galv event spawner to spawn some random events. And another  event to pick a random event to run a common event. That's why I needed a script. Because the event is chosen at random.
     
    #4
  5. Shaz

    Shaz Veteran Veteran

    Messages:
    37,718
    Likes Received:
    11,428
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    You haven't explained why you want one event to tell another event to run a common event.  Why not run it from the first event?  Why not make the second event run it without being told to by another event?


    Scenario = context = what is it you're trying to do.  Not how you're trying to do it.  Unless we know what it is you want to accomplish by getting one event to tell another to run a common event, we're a bit in the dark.
     
    #5
  6. Jonforum

    Jonforum Veteran Veteran

    Messages:
    1,581
    Likes Received:
    1,361
    Location:
    Canada / Québec
    First Language:
    French
    Primarily Uses:
    RMMV
    to run common event with script.
    Use this


    // ? = ID CommonEvent
    $gameTemp.reserveCommonEvent(?);

    // And for run this with the event id
    var tempID = $dataMap.events[this._eventId].id
    $gameTemp.reserveCommonEvent(tempID);


    but like say @Shaz


    Am not understant your scenario.
     
    Last edited by a moderator: Dec 9, 2016
    #6

Share This Page