The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Essentials Script Unreal time system (like Haverst Moon)

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #51    
Old February 16th, 2017 (4:49 PM). Edited February 16th, 2017 by Raizu.
Raizu's Avatar
Raizu Raizu is offline
The Horizon
     
    Join Date: Feb 2017
    Location: Stafford, Virginia
    Gender: Male
    Nature: Modest
    Posts: 2
    This script was really awesome the only problem I have now is that I tried to put it in another project and when I go to the pause menu it won't display in the pause menu. Do I have to do something to make the time display in the pause menu?
    Reply With Quote
      #52    
    Old February 24th, 2017 (4:00 PM).
    FL's Avatar
    FL FL is offline
    Pokémon Island Creator
       
      Join Date: Sep 2010
      Gender: Male
      Posts: 1,759
      Quote:
      Originally Posted by Raizu View Post
      This script was really awesome the only problem I have now is that I tried to put it in another project and when I go to the pause menu it won't display in the pause menu. Do I have to do something to make the time display in the pause menu?
      Just follow the examples about how to get a date string.

      By the way, what you done?
      __________________
      Reply With Quote
        #53    
      Old February 25th, 2017 (8:11 PM). Edited February 25th, 2017 by Raizu.
      Raizu's Avatar
      Raizu Raizu is offline
      The Horizon
         
        Join Date: Feb 2017
        Location: Stafford, Virginia
        Gender: Male
        Nature: Modest
        Posts: 2
        ASo do I take this
        pbGetTimeNow.strftime("%I:%M %p")
        and place it below the #= line?
        I don't quite understand scripting but I'm learning with it.

        For the second question I'm working on a game where the player has psychic powers who is destined to become a watcher (another group similar to rangers but have the capabilities to their powers to help people) along with your mentor Zoroark to guide you to your goal. I haven't been working on it for the past 3 years because my computer was broken so I had to get a new one.
        Reply With Quote
          #54    
        Old October 19th, 2017 (1:08 AM).
        Soccersam's Avatar
        Soccersam Soccersam is offline
        #Hilbert is Badass
           
          Join Date: Oct 2016
          Gender: Male
          Nature: Hasty
          Posts: 89
          I'm sorry if this question is already answered, but I just can't seem to find it in the other comments-
          I want to make it like when the player heals his pokemon, time will advance by three hours.
          I saw the first few comments, but since it was mainly for when the player sleeps, I didn't try it out...
          __________________
          Whatever you do in this life, it's not legendary unless your friends are there to see it. -Barney Stinson
          Reply With Quote
            #55    
          Old October 19th, 2017 (7:59 AM).
          HarmonyConcept HarmonyConcept is offline
             
            Join Date: Sep 2015
            Gender: Female
            Posts: 207
            Quote:
            Originally Posted by Soccersam View Post
            I want to make it like when the player heals his pokemon, time will advance by three hours.
            I saw the first few comments, but since it was mainly for when the player sleeps, I didn't try it out...
            It works exactly the same way as when the player sleeps.

            In the Unreal Time Script, you have to define the variable "NTN_EXTRASECONDS", that affects the current time.

            You can then do this in an event (for example in each nurse event):
            Set Variable {Your NTN_EXTRASECONDS Variable} to +10.800 (there are 10.800 seconds in 3 hours);

            Note: If you freeze the time using the NTN_SWITCHSTOPS switch, you need to be sure that the switch is OFF before attempting to change the time (otherwise it won't work)
            Reply With Quote
              #56    
            Old October 19th, 2017 (10:46 PM).
            Soccersam's Avatar
            Soccersam Soccersam is offline
            #Hilbert is Badass
               
              Join Date: Oct 2016
              Gender: Male
              Nature: Hasty
              Posts: 89
              Quote:
              Originally Posted by HarmonyConcept View Post
              It works exactly the same way as when the player sleeps.

              In the Unreal Time Script, you have to define the variable "NTN_EXTRASECONDS", that affects the current time.

              You can then do this in an event (for example in each nurse event):
              Set Variable {Your NTN_EXTRASECONDS Variable} to +10.800 (there are 10.800 seconds in 3 hours);

              Note: If you freeze the time using the NTN_SWITCHSTOPS switch, you need to be sure that the switch is OFF before attempting to change the time (otherwise it won't work)
              Thanks, I'm trying it right now!

              And also, thanks to FL who made this amazing script!
              __________________
              Whatever you do in this life, it's not legendary unless your friends are there to see it. -Barney Stinson
              Reply With Quote
                #57    
              Old July 27th, 2018 (9:37 PM). Edited July 28th, 2018 by Marin.
              Feark's Avatar
              Feark Feark is offline
                 
                Join Date: Nov 2017
                Posts: 5
                Quote:
                Originally Posted by FL View Post
                At my script.
                Do you mean here?

                Code:
                def pbGraphicsUpdate
                          $PokemonGlobal.addNewFrameCount 
                          pbGraphicsUpdateold
                        end
                      end
                    end
                  end
                end
                If so. It should be like this?


                Code:
                def pbGraphicsUpdate
                          $PokemonGlobal.addNewFrameCount 
                          pbGraphicsUpdateold
                        end
                
                    if [email protected] || @lastHour != pbGetTimeNow.hour
                          @lastHour = pbGetTimeNow.hour
                          $game_map.need_refresh = true
                        end
                      end
                    end
                  end
                end
                Reply With Quote
                  #58    
                Old August 1st, 2018 (4:55 PM).
                FL's Avatar
                FL FL is offline
                Pokémon Island Creator
                   
                  Join Date: Sep 2010
                  Gender: Male
                  Posts: 1,759
                  Quote:
                  Originally Posted by Feark View Post
                  Do you mean here?

                  Code:
                  def pbGraphicsUpdate
                            $PokemonGlobal.addNewFrameCount 
                            pbGraphicsUpdateold
                          end
                        end
                      end
                    end
                  end
                  If so. It should be like this?


                  Code:
                  def pbGraphicsUpdate
                            $PokemonGlobal.addNewFrameCount 
                            pbGraphicsUpdateold
                          end
                  
                      if [email protected] || @lastHour != pbGetTimeNow.hour
                            @lastHour = pbGetTimeNow.hour
                            $game_map.need_refresh = true
                          end
                        end
                      end
                    end
                  end
                  No. I meant between 'updateold' and 'end' here:
                  Code:
                        def update
                          $PokemonGlobal.addNewFrameCount
                          updateold
                        end
                  So the code should be:
                  Code:
                        def update
                          $PokemonGlobal.addNewFrameCount
                          updateold
                      	if [email protected] || @lastHour != pbGetTimeNow.hour
                            @lastHour = pbGetTimeNow.hour
                            $game_map.need_refresh = true
                          end
                        end
                  __________________
                  Reply With Quote
                    #59    
                  Old August 1st, 2018 (6:59 PM).
                  Feark's Avatar
                  Feark Feark is offline
                     
                    Join Date: Nov 2017
                    Posts: 5
                    Quote:
                    Originally Posted by FL View Post
                    No. I meant between 'updateold' and 'end' here:
                    Code:
                          def update
                            $PokemonGlobal.addNewFrameCount
                            updateold
                          end
                    So the code should be:
                    Code:
                          def update
                            $PokemonGlobal.addNewFrameCount
                            updateold
                        	if [email protected] || @lastHour != pbGetTimeNow.hour
                              @lastHour = pbGetTimeNow.hour
                              $game_map.need_refresh = true
                            end
                          end
                    Thanks for the answer brother xD But I already managed to find it I was missing something on your explanation before, btw quick question: are you brazilian?
                    Reply With Quote
                      #60    
                    Old 4 Weeks Ago (2:55 AM).
                    FL's Avatar
                    FL FL is offline
                    Pokémon Island Creator
                       
                      Join Date: Sep 2010
                      Gender: Male
                      Posts: 1,759
                      Quote:
                      Originally Posted by Feark View Post
                      Thanks for the answer brother xD But I already managed to find it I was missing something on your explanation before, btw quick question: are you brazilian?
                      Yep. The main language of my game is the proof.
                      __________________
                      Reply With Quote
                      Reply

                      Quick Reply

                      Join the conversation!

                      Create an account to post a reply in this thread, participate in other discussions, and more!

                      Create a PokéCommunity Account
                      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 7:01 PM.