Time across multiple maps

Discussion in 'RPG Maker VX' started by chartboye, Apr 16, 2018 at 6:30 PM.

  1. chartboye

    chartboye Villager Member

    Messages:
    9
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    I tried to make an event using common events and after 120 seconds there is a text box and it fades out into a cutscene.
    It works if the player stays in the same room. But I want it to spread across a few select maps. I tried to put the event that causes the text box when the common event makes the variable hit 1 in each room and it hasn't worked. Can anybody give me a hand?
    I've attached images of the common event and the event itself.
     

    Attached Files:

    #1
  2. Andar

    Andar Global Moderators Global Mod

    Messages:
    24,243
    Likes Received:
    5,049
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    1) are you using VX or VXA? Your profile says VXA, but you posted in VX - those are two different programs.

    2) you can't count hours directly, you need to count minutes or seconds and only count up the hour variable after 60 minutes are full.
    That is because common events are restarted on map change.
     
    #2
  3. chartboye

    chartboye Villager Member

    Messages:
    9
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    VXA. Apologies, didn't know they were different.
     
    #3
  4. chartboye

    chartboye Villager Member

    Messages:
    9
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    Linked another image, something like that?
     

    Attached Files:

    #4
  5. Andar

    Andar Global Moderators Global Mod

    Messages:
    24,243
    Likes Received:
    5,049
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    No
    Don't forget that a parallel common event loops. You need to add to the variables when a segment is complete, not set it.
    Wait 60, control second +1
    If second = 60, control minute +1 and set second to zero again.
    And so on.

    The total wait numbers in the entire common event added together should NOT exceed 60 or so, because the numbers of waitframes in the event is the minimum time you need to stay on one map for it to work.
     
    #5

Share This Page