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
  #1    
Old September 29th, 2010 (4:50 PM). Edited September 29th, 2010 by help-14.
help-14's Avatar
help-14 help-14 is offline
     
    Join Date: Jul 2007
    Location: Viet Nam
    Age: 24
    Gender: Male
    Nature: Adamant
    Posts: 282
    Send a message via Windows Live Messenger to help-14
    First, i have to say that i haven't test with near May 7th version of starter kit and when turn off the game, honey disappear too o_0 Still working on it.

    - Step 1: Add a new item call HONEY to PBS/items.txt
    Spoiler:


    - Step 2: Add the script to Script Database

    - Step 3: Add new event like those pictures
    Spoiler:



    Reply With Quote

    Relevant Advertising!

      #2    
    Old September 30th, 2010 (1:50 PM).
    nmorr's Avatar
    nmorr nmorr is offline
    Takin a brake. -_-
       
      Join Date: May 2009
      Location: Poke City
      Age: 20
      Gender: Male
      Nature: Jolly
      Posts: 215
      Coolio! I think IK what to give u for your birthday!
      __________________
      This signature has been disabled.
      Spoiler tags in Signatures are not allowed
      Please review and fix the issues by reading the signature rules.

      You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

      Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
      Reply With Quote
        #3    
      Old October 8th, 2010 (9:03 PM).
      aSeRo141414's Avatar
      aSeRo141414 aSeRo141414 is offline
      zZJoennZz inside
         
        Join Date: Jun 2009
        Location: In your head
        Age: 21
        Gender: Male
        Nature: Jolly
        Posts: 379
        Send a message via Yahoo to aSeRo141414
        nice script! this will help me..
        __________________
        Regards,
        aSeRo141414
        Reply With Quote
          #4    
        Old October 9th, 2010 (4:43 AM).
        mattfriends's Avatar
        mattfriends mattfriends is offline
        Inactive... :(
           
          Join Date: Jul 2010
          Age: 20
          Gender: Male
          Posts: 105
          You finally put up a threat.
          __________________
          This signature has been disabled.
          Exceeds signature height limit.
          Please review and fix the issues by reading the signature rules.

          You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

          Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
          Reply With Quote
            #5    
          Old October 24th, 2010 (9:44 PM).
          pokemonseablueversion's Avatar
          pokemonseablueversion pokemonseablueversion is offline
          Pokemon Addict
             
            Join Date: Oct 2009
            Location: Philippines
            Gender: Female
            Nature: Gentle
            Posts: 27
            Send a message via Yahoo to pokemonseablueversion
            Nice! I haven't tried it yet, but I think it will work! BTW, what script will you put onto th Script Database?
            __________________
            Reply With Quote
              #6    
            Old December 7th, 2010 (6:20 PM).
            Mezoka's Avatar
            Mezoka Mezoka is offline
            Nom de Nom Nom
               
              Join Date: Dec 2010
              Location: Somewhere over the rainbow...
              Gender: Male
              Posts: 4
              Send a message via Windows Live Messenger to Mezoka
              Help-14, your scripts are wonderful! This will, without a doubt, help a lot of people in their Pokemon game-making.
              Reply With Quote
                #7    
              Old August 11th, 2014 (11:22 AM).
              Lexxilion's Avatar
              Lexxilion Lexxilion is offline
                 
                Join Date: Jul 2014
                Gender: Male
                Nature: Careful
                Posts: 63
                Ok, so I found the post on the forums, but the images in h14's post are removed. CAn't seem to find any guidance on setting up honey trees elsewhere. Anybody able to share the script and set up of a honey tree event?
                Reply With Quote
                  #8    
                Old August 12th, 2014 (10:29 AM).
                Super Dedenne's Avatar
                Super Dedenne Super Dedenne is offline
                   
                  Join Date: Apr 2014
                  Gender: Other
                  Posts: 32
                  Quote:
                  Originally Posted by Lexxilion View Post
                  Ok, so I found the post on the forums, but the images in h14's post are removed. CAn't seem to find any guidance on setting up honey trees elsewhere. Anybody able to share the script and set up of a honey tree event?
                  Hello, Lexxilion! I can assist you with this as I happen to have this script archived on my computer.
                  I'm going to assume you have this script already loaded into Essentials above "Main".

                  Spoiler:
                  Code:
                  #==============================================================================
                  # ● Honey tree script made by Help-14
                  #==============================================================================
                  
                    #----------------------------------------------------------------------------
                    #   Configuration
                    #----------------------------------------------------------------------------
                      $HONEY_TIME = 5
                      
                    #----------------------------------------------------------------------------
                    #   Script
                    #----------------------------------------------------------------------------
                      def add_honey(event_id)
                        mapid=$game_map.map_id
                        #event=$game_map.events[event_id]
                        $GlobalHoneyTime={} if !$GlobalHoneyTime
                        $GlobalHoneyTime[mapid]={} if !$GlobalHoneyTime[mapid]
                        $GlobalHoneyTime[mapid][event_id]=0
                      end
                        
                      def check_honey(event_id)
                        mapid=$game_map.map_id
                        if $GlobalHoneyTime[mapid][event_id]>$HONEY_TIME*Graphics.frame_rate
                          return true
                        else
                          return false
                        end
                      end
                      
                      def random_honey_tree_pokemon(event_id,list)
                        length=list.length
                        num=rand(length-1)
                        pbWildBattle(list[num][0],list[num][1])
                        mapid=$game_map.map_id
                        $GlobalHoneyTime[mapid][event_id]=0
                      end
                      
                    #----------------------------------------------------------------------------
                    #   Game_System
                    #----------------------------------------------------------------------------
                      class Game_System
                        alias up update
                        
                        def update
                          add_honey_time
                          up
                        end
                        
                        def add_honey_time
                          mapid=$game_map.map_id
                          for event in $game_map.events.values
                            key = [mapid, event.id, "A"]
                            if event.name=="HONEYTREE" and $game_self_switches[key]==true
                              $GlobalHoneyTime[mapid][event.id]+=1
                            end
                          end
                        end
                        
                      end


                  Create an event named "HONEYTREE". The ID of the event is important to note! If an error occurs, please make sure that (in any place where they are prompted) they match the event's ID. Now, with this event paired with your tree graphic, follow the steps using my attached screenshots:

                  PAGE 1:
                  As you can see, 77 is the ID and anywhere where this number repeats is where you should place your event's ID number. Should also make sure it checks with $PokemonBag.pbQuantity(PBItems::HONEY)>0 first and then takes away 1 Honey away from the player when true upon slathering it to the tree...

                  You should also probably make the $HONEY_TIME wait longer than just 5...

                  PAGE 2:
                  Now here's the list of Pokemon that appear! The "10" in this case is just the level of the specific species listed in the array. Go nuts. You can make this different for any tree... The 77, again, is the ID of the event shown.

                  Hope that helps! Works just fine for me.
                  Attached Thumbnails
                  AXCakXD.png‎   AddQeQR.png‎  
                  __________________
                  Public Additions/Snippets:
                  Trainer Outfit: Acro/MachBike Fix
                  (Needs 15.1 update) Pokemon Summary Add-On: Improved Ribbons + Scroll!
                  I might release some of my private plug-n'-play scripts in the future.
                  Reply With Quote
                    #9    
                  Old December 18th, 2014 (12:58 AM).
                  Kaon's Avatar
                  Kaon Kaon is offline
                  Cheese Whiz
                     
                    Join Date: Feb 2007
                    Gender: Female
                    Nature: Naughty
                    Posts: 12
                    Quick thing. Sorry if this is a "necropost." I get this error when I try to load my game, after saving (before checking the honey tree if there were Pokémon present).

                    Exception: NoMethodError
                    Message: undefined method `[]' for nil:NilClass
                    Honey Tree:54:in `add_honey_time'
                    Honey Tree:51:in `each'
                    Honey Tree:51:in `add_honey_time'
                    Honey Tree:45:in `update'
                    Scene_Map:105:in `update'
                    Scene_Map:101:in `loop'
                    Scene_Map:114:in `update'
                    Scene_Map:68:in `main'
                    Scene_Map:65:in `loop'
                    Scene_Map:72:in `main'

                    Anyone else get this error?
                    __________________
                    Friendly neighborhood Spider-Man.
                    Reply With Quote
                      #10    
                    Old December 19th, 2014 (10:51 AM).
                    p.claydon p.claydon is offline
                       
                      Join Date: Jan 2011
                      Gender:
                      Posts: 335
                      im assuming its due to big changes to essentials since this script was released but i couldnt say for sure
                      __________________
                      Still learning how to sprite but if you want to look at my progress then here you go
                      http://pclaydon.deviantart.com/gallery/
                      Reply With Quote
                        #11    
                      Old February 22nd, 2016 (9:39 AM).
                      Letrax's Avatar
                      Letrax Letrax is offline
                         
                        Join Date: Feb 2016
                        Gender: Male
                        Posts: 81
                        I tried this one:
                        http://www.pokecommunity.com/showthread.php?t=233496
                        but doesnt seem to work on 15.1.
                        I got a error on this line:
                        $GlobalHoneyTime[mapid][event.id]+=1
                        Reply With Quote
                          #12    
                        Old February 22nd, 2016 (11:11 AM).
                        Nickalooose Nickalooose is offline
                        --------------------
                           
                          Join Date: Mar 2008
                          Gender: Female
                          Posts: 1,309
                          Whats the error?
                          Reply With Quote
                            #13    
                          Old February 22nd, 2016 (11:46 AM).
                          Letrax's Avatar
                          Letrax Letrax is offline
                             
                            Join Date: Feb 2016
                            Gender: Male
                            Posts: 81
                            http://i.imgur.com/dUvnbjG.png
                            Reply With Quote
                              #14    
                            Old April 13th, 2017 (6:14 AM).
                            JhonnyKurosaki JhonnyKurosaki is offline
                               
                              Join Date: Dec 2016
                              Gender: Male
                              Posts: 1
                              Hi, I do not know if this post is still alive or something similar, but at the moment of execce the event of the second window gives me this error.

                              Spoiler:
                              ---------------------------
                              Pokemon Essentials
                              ---------------------------
                              Exception: RuntimeError

                              Message: Script error within event 51, map 84 (Ciudad Ango):

                              Exception: NoMethodError

                              Message: Section196:23:in `check_honey'undefined method `[]' for nil:NilClass

                              ***Full script:

                              check_honey(78)==true

                              Interpreter:243:in `pbExecuteScript'

                              (eval)in `pbExecuteScript'

                              Interpreter:794:in `eval'

                              Interpreter:243:in `pbExecuteScript'

                              Interpreter:794:in `command_111'

                              Interpreter:320:in `execute_command'

                              Interpreter:193:in `update'

                              Interpreter:106:in `loop'

                              Interpreter:198:in `update'

                              Scene_Map:103:in `update'



                              Interpreter:276:in `pbExecuteScript'

                              Interpreter:794:in `command_111'

                              Interpreter:320:in `execute_command'

                              Interpreter:193:in `update'

                              Interpreter:106:in `loop'

                              Interpreter:198:in `update'

                              Scene_Map:103:in `update'

                              Scene_Map:101:in `loop'

                              Scene_Map:114:in `update'

                              Scene_Map:68:in `main'



                              This exception was logged in

                              C:\Users\Jonathan\Saved Games/Pokemon Essentials/errorlog.txt.

                              Press Ctrl+C to copy this message to the clipboard.
                              ---------------------------
                              Aceptar
                              ---------------------------


                              I do not know if it affected that it is using version 16.1 but I would like to be able to use this script
                              Reply With Quote
                                #15    
                              Old April 13th, 2017 (7:18 AM).
                              M3rein's Avatar
                              M3rein M3rein is online now
                              Not Bored
                              • Moderator
                               
                              Join Date: Nov 2016
                              Location: The Netherlands
                              Gender: Male
                              Nature: Bashful
                              Posts: 322
                              Quote:
                              Originally Posted by JhonnyKurosaki View Post
                              Hi, I do not know if this post is still alive or something similar, but at the moment of execce the event of the second window gives me this error.

                              Spoiler:
                              ---------------------------
                              Pokemon Essentials
                              ---------------------------
                              Exception: RuntimeError

                              Message: Script error within event 51, map 84 (Ciudad Ango):

                              Exception: NoMethodError

                              Message: Section196:23:in `check_honey'undefined method `[]' for nil:NilClass

                              ***Full script:

                              check_honey(78)==true

                              Interpreter:243:in `pbExecuteScript'

                              (eval)in `pbExecuteScript'

                              Interpreter:794:in `eval'

                              Interpreter:243:in `pbExecuteScript'

                              Interpreter:794:in `command_111'

                              Interpreter:320:in `execute_command'

                              Interpreter:193:in `update'

                              Interpreter:106:in `loop'

                              Interpreter:198:in `update'

                              Scene_Map:103:in `update'



                              Interpreter:276:in `pbExecuteScript'

                              Interpreter:794:in `command_111'

                              Interpreter:320:in `execute_command'

                              Interpreter:193:in `update'

                              Interpreter:106:in `loop'

                              Interpreter:198:in `update'

                              Scene_Map:103:in `update'

                              Scene_Map:101:in `loop'

                              Scene_Map:114:in `update'

                              Scene_Map:68:in `main'



                              This exception was logged in

                              C:\Users\Jonathan\Saved Games/Pokemon Essentials/errorlog.txt.

                              Press Ctrl+C to copy this message to the clipboard.
                              ---------------------------
                              Aceptar
                              ---------------------------


                              I do not know if it affected that it is using version 16.1 but I would like to be able to use this script
                              You stated it yourself.
                              Quote:
                              I do not know if this post is still alive or something similar.
                              Have you looked at the date? 7 years old. Since you were doubting it yourself, why did you still post? This thing is most likely outdated as there was no version 16.1 in 2010.
                              __________________
                              Join my Discord for questions, suggestions, resources, small events and more.
                              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 8:12 AM.