Advanced Game Time Script help once more

● ARCHIVED · READ-ONLY
Started by Capitán 6 posts View original ↗
  1. So I'm using this script here;

    So basically what I want to do is set up this event:

    m8L6uT5.png

    I want to set it up in way that this door can only be opened before 10pm

    Basically like store hours; Open from 8am to 10pm;

    How can I do this with this script?
     
  2. For your script call, you can type in the following :

    GameTime.hours? >= 8 && GameTime.hours? <= 22

    This basically means, 'If it is between 0800 and 2200 hours...'

    In addition, move your commands from below 'Else', to directly below 'Conditional Branch: Script:..,'
  3. I would do it like this:



    But maybe there is a better way  :)

    EDIT: Just noticed it was 10 PM and not AM. Just change the value of the second conditional branch to 22 then.
  4. While both of your ideas work to the fullest extent;

    Susan's was the simplest.

    Thank you both :)  

    May your sword strike true, and first.
  5. Yeah, my scripting knowledge is minimum level really x)
  6. So is mine actually, Deathspecter. I just experiment with the script calls given.

    You will get better at identifying and using script calls by doing so regularly.

    If you are interested, either of you can try playing around with the default script calls available in VX Ace. It helps you in a lot of eventing dilemmas.

    Just remember to practice them in a throwaway project until you are familiar with them.

    Please note that some do not work the way you think they do.

    This is the link to the script call collection list in the forums :

    http://forums.rpgmakerweb.com/index.php?/topic/25759-script-call-collection-for-vxace/