The PokéCommunity Forums Fan Games Game Development Pokémon Essentials
Closing a Store at Night

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old March 28th, 2013 (5:44 PM). Edited March 28th, 2013 by Yusshin.
Yusshin's Avatar
Yusshin Yusshin is offline
♪ Yggdrasil ♪
     
    Join Date: Jul 2009
    Location: Quebec, Canada
    Age: 24
    Nature: Brave
    Posts: 2,424
    So this is what I have:

    Spoiler:


    And I've read these two pages:

    http://pokemonessentials.wikia.com/wiki/Events

    Quote:
    s:PBDayNight.isNight?(pbGetTimeNow) Is ON during the night (i.e. between 8pm and 6am), and OFF if it is not (i.e. during the day).
    http://pokemonessentials.wikia.com/wiki/Time-sensitive_events

    But for some reason, at night-time, the museum doesn't display the messages, even though it should. When the player runs into the event, it doesn't display the message or send them down; it just doesn't do anything. Nothing at all. The player passes the event and that's it.

    What is wrong with the event? Did I misunderstand something?

    Oh, and the other two pages are standard door events, but with this Conditional Switch turned on (left-hand side conditions):

    Quote:
    s:PBDayNight.isDay?(pbGetTimeNow) Is ON during the day (i.e. between 6am and 8pm), and OFF if it is not (i.e. during the night).
    Also,

    How do I modify a trainer event to allow for variables?

    Whenever I try, recompilation seems to erase anything "extra" added to the trainer, thus my Trainer Battles +1 variable disappears.

    I could make all trainers without using COMMENTS, but that's not as easy, and when you have hundreds of trainers to do in a single game... /grawr
    __________________


    Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
    "My scar makes me sassy, child!"
    The Big Bang Theory Fan Club - Click To Join!
    The French Club
    Reply With Quote

    Relevant Advertising!

      #2    
    Old March 30th, 2013 (11:37 AM).
    Yusshin's Avatar
    Yusshin Yusshin is offline
    ♪ Yggdrasil ♪
       
      Join Date: Jul 2009
      Location: Quebec, Canada
      Age: 24
      Nature: Brave
      Posts: 2,424
      Bump. Still don't know what's wrong with this.
      __________________


      Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
      "My scar makes me sassy, child!"
      The Big Bang Theory Fan Club - Click To Join!
      The French Club
      Reply With Quote
        #3    
      Old March 30th, 2013 (5:46 PM).
      FL's Avatar
      FL FL is offline
      Pokémon Island Creator
         
        Join Date: Sep 2010
        Gender: Male
        Posts: 1,686
        The page order. The page with the condition must be the last one. The RPG Maker XP checks the pages with conditions backward (first is the last page) and when the event match the conditions the page runs. If you have a page with no condition, this page is ran when checked in RPG Maker XP. If none page match the conditions nothing is ran.

        When I says "runs" I mean activates by it trigger condition (Action Button, Player Touch, Autorun, etc...).
        __________________
        Reply With Quote
          #4    
        Old March 30th, 2013 (7:59 PM).
        Yusshin's Avatar
        Yusshin Yusshin is offline
        ♪ Yggdrasil ♪
           
          Join Date: Jul 2009
          Location: Quebec, Canada
          Age: 24
          Nature: Brave
          Posts: 2,424
          Quote:
          Originally Posted by FL . View Post
          The page order. The page with the condition must be the last one. The RPG Maker XP checks the pages with conditions backward (first is the last page) and when the event match the conditions the page runs. If you have a page with no condition, this page is ran when checked in RPG Maker XP. If none page match the conditions nothing is ran.

          When I says "runs" I mean activates by it trigger condition (Action Button, Player Touch, Autorun, etc...).
          But all pages have conditions. The default door pages (page two and three) are the daytime switch, and the "museum is closed" page (page one) verifies if it's nighttime. That covers 6am-8pm and then 8pm-6am again.
          __________________


          Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
          "My scar makes me sassy, child!"
          The Big Bang Theory Fan Club - Click To Join!
          The French Club
          Reply With Quote
            #5    
          Old March 31st, 2013 (4:08 AM).
          FL's Avatar
          FL FL is offline
          Pokémon Island Creator
             
            Join Date: Sep 2010
            Gender: Male
            Posts: 1,686
            Quote:
            Originally Posted by Yusshin View Post
            But all pages have conditions. The default door pages (page two and three) are the daytime switch, and the "museum is closed" page (page one) verifies if it's nighttime. That covers 6am-8pm and then 8pm-6am again.
            Are you sure? Post the other pages here.

            Before this try again. Try to remove the switchs conditions and try again. Made a event with script line 'p pbGetTimeNow' and copy-paste the result here.

            Unrelated: I recommend the Essentials Translation System.
            __________________
            Reply With Quote
            Reply
            Quick Reply

            Sponsored Links
            Thread Tools

            Posting Rules
            You may not post new threads
            You may not post replies
            You may not post attachments
            You may not edit your posts

            BB code is On
            Smilies are On
            [IMG] code is On
            HTML code is Off

            Forum Jump


            All times are GMT -8. The time now is 11:46 AM.