Orange Time System

Discussion in 'JS Plugin Releases (RMMV)' started by Hudell, Oct 24, 2015.

  1. Hudell

    Hudell Dog Lord Veteran

    Messages:
    3,323
    Likes Received:
    2,969
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    Try this:

    Code:
    if($dataMap.meta.time_set !== undefined){
      OrangeTimeSystem.hour = Number($dataMap.meta.time_set);
      OrangeTimeSystem.updateTime();
    }
     
  2. XGuarden

    XGuarden Veteran Veteran

    Messages:
    419
    Likes Received:
    12
    First Language:
    French
    tanks you solve my problem =:0)
     
  3. XGuarden

    XGuarden Veteran Veteran

    Messages:
    419
    Likes Received:
    12
    First Language:
    French
    I curently use some event where I change the variable timeofday.
    The same one that your sustem use for store time of the day(1-3).
    After some stuff, I want to put it back at the good value.
    So how can I set to my variabl the corect time value stored in your pluggin?
     
  4. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    the demo disapears? :kaocry:
     
  5. Rupert484

    Rupert484 Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    English
    Let's say that you have an event that's scheduled to go off at midnight every day in real time.
    Is there a way to queue the event in case you were in dialogue or doing some other kind of uninterruptible action when it was supposed to go off?

    I'm sorry if this is an obvious question or was already answered.
     
  6. HotMafia

    HotMafia Villager Member

    Messages:
    6
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMMV
    First of all, this plugin is fantastic, but I'm seeing a few odd behaviors when using it with Time System Variables, OrangeHUD, and Variable Pictures: I have an event set up where the player is shown an image, a text box shows, and then, using scripts, the day moves forward by one, and the hour becomes 6 AM, with both of these changes shown in a clock image I have created. For some reason, the script call to set the hour to 6 seems to do nothing
     
    Last edited: May 11, 2017
  7. Andar

    Andar Veteran Veteran

    Messages:
    28,672
    Likes Received:
    6,594
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Show us screenshots of what you did, and we can check it for errors.
     
  8. HotMafia

    HotMafia Villager Member

    Messages:
    6
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMMV
    Funny enough, Once I switched the order in which the scripts were called, it fixed all my problems. I previously had the day change, and then the hour, so by switching those, everything works again. I am still curious as to why that is
     
  9. Shiniiji

    Shiniiji Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    German
    Hmm, so far this works great. :D But I can´t find the demo, did I miss something? I just wan´t to know how I can show a clock time ingame so players can see the actual time(the actual date [day,month,year] would be great too).
     
  10. steveobam

    steveobam Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    i seem to cant get the hour to go up such as 2-3.
    any help would much welcomed

    Use this. hope this helps.
     

    Attached Files:

    Last edited by a moderator: Jun 2, 2017
  11. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,888
    Likes Received:
    7,679
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV

    @steveobam , please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


    You can edit your post if you need to add more.
     
  12. kurtramone

    kurtramone Warper Member

    Messages:
    2
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    N/A
    I was setting up clock hud to show something like: "day of the week name (Monday) day period (Morning), hour:minute".

    Is it possible to show day period like night, morning, dawn and evening? It only shows a number, or I'm missing something?
     
  13. steveobam

    steveobam Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    I think this might help. Try making a new event in common events and using this script.
     

    Attached Files:

    Last edited: Jun 3, 2017
  14. kurtramone

    kurtramone Warper Member

    Messages:
    2
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    N/A
    steveobam likes this.
  15. WrathfulCupcake

    WrathfulCupcake Villager Member

    Messages:
    10
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Hi, I am running into a couple issues I was hoping to get help with. I'm sorry for my newb questions, I am still learning:

    For this one, I am trying to advance the time/day when a person rents a room:

    This works perfect, except that it isn't advancing to the next day. So for example, I set up my "advance time command" to 1pm ( OrangeTimeSystem.hour = 13;) and changed my game start time to 11pm Day 1. I then rented a room and used the code above to advance time to the next day (day 2) at 1pm, but instead it changed it to 1pm on Day 1. Any tips?

    See Image 1 (Inn Advance)

    I am also having an issue with the lighting indoors not being affected by the "ON switch"
    I set up. I set the switch in the plugin settings, and then created an event up in the corner with the switch "on". I have tried changing priorities, triggers, etc and it doesnt have an effect.

    Lastly I am having issues with a daily event (I am wondering if this is due to the problems I am having advancing time above) I am attempting to teleport a player to a new location each day at 1pm. Nothing happens though.
     

    Attached Files:

    Last edited: Jul 8, 2017
  16. Soulnet

    Soulnet Veteran Veteran

    Messages:
    198
    Likes Received:
    97
    First Language:
    English
    Script: OrangeTimeSystem.setTime(0, 0, 6, OrangeTimeSystem.day + 1)

    I use that as the 'wake up' time for a tavern. So it's 6am the next day.

    I think that's what you're looking for.
     
    Hudell likes this.
  17. WrathfulCupcake

    WrathfulCupcake Villager Member

    Messages:
    10
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Yay, that works thanks!
     
  18. Sir_Titas

    Sir_Titas Villager Member

    Messages:
    9
    Likes Received:
    0
    First Language:
    english
    Primarily Uses:
    N/A
    how would I go about having an event occur every Saturday
     
  19. Solis

    Solis Veteran Veteran

    Messages:
    366
    Likes Received:
    84
    First Language:
    English
    I can't find the demo? Is there one attached to this post?
     
  20. fizzly

    fizzly Veteran Veteran

    Messages:
    413
    Likes Received:
    293
    Location:
    Poland
    First Language:
    Polish
    Primarily Uses:
    N/A
    @Hudell I'm not sure I should report that to you or KHAS, but I'm using your time system and KHAS Ultra Lighting, but every time while I'm inside (by switch or tilkeset) - lights are gone. Not sure why...

    And 2nd thing: I want to make home (where is inside, but normal tint screening) and caves (where is inside but there is very dark always) - how can I achieve this? There is only one "inside" :blush:
     

Share This Page