The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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 (04:50 PM). Edited September 29th, 2010 by help-14.
help-14's Avatar
help-14
Trainer
 
Join Date: Jul 2007
Location: Viet Nam
Age: 22
Gender: Male
Nature: Adamant
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:



__________________
My Deviantart: help-14.deviantart.com
Reply With Quote
  #2    
Old September 30th, 2010 (01:50 PM).
nmorr's Avatar
nmorr
Takin a brake. -_-
 
Join Date: May 2009
Location: Poke City
Age: 18
Gender: Male
Nature: Jolly
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 (09:03 PM).
aSeRo141414's Avatar
aSeRo141414
zZJoennZz inside
 
Join Date: Jun 2009
Location: In your head
Age: 18
Gender: Male
Nature: Jolly
Send a message via Yahoo to aSeRo141414 Send a message via Skype™ to aSeRo141414
nice script! this will help me..
__________________
Regards,
aSeRo141414
Reply With Quote
  #4    
Old October 9th, 2010 (04:43 AM).
mattfriends's Avatar
mattfriends
Inactive... :(
 
Join Date: Jul 2010
Age: 18
Gender: Male
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 (09:44 PM).
pokemonseablueversion's Avatar
pokemonseablueversion
Pokemon Addict
 
Join Date: Oct 2009
Location: Philippines
Gender: Female
Nature: Gentle
Send a message via Yahoo to pokemonseablueversion Send a message via Skype™ 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 (06:20 PM).
Mezoka's Avatar
Mezoka
Nom de Nom Nom
 
Join Date: Dec 2010
Location: Somewhere over the rainbow...
Gender: Male
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
 
Join Date: Jul 2014
Gender: Male
Nature: Careful
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
 
Join Date: Apr 2014
Gender:
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
Pokemon Summary Fix: Improved Ribbons + Scroll!
Reply With Quote
  #9    
Old 4 Days Ago (12:58 AM).
Kaon's Avatar
Kaon
Cheese Whiz
 
Join Date: Feb 2007
Gender: Female
Nature: Naughty
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 3 Days Ago (10:51 AM).
p.claydon
 
Join Date: Jan 2011
Gender:
im assuming its due to big changes to essentials since this script was released but i couldnt say for sure
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 03:49 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.