Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Advertise here

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials
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.

Post Reply
 
Thread Tools
  #1    
Old September 29th, 2010, 04:50 PM
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

Advertise here
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

Last edited by help-14; September 29th, 2010 at 05:27 PM.
  #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.
  #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
  #4    
Old October 9th, 2010, 04:43 AM
mattfriends's Avatar
mattfriends
Inactive... :(
 
Join Date: Jul 2010
Age: 17
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.
  #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?
  #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.
  #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?
  #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!
Post Reply
Quick Reply

Sponsored Links


Advertise here
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 05:50 AM.

About Us
© 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.

Copyright
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. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.