The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices

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  
Unread June 22nd, 2012, 07:57 AM
Seth Pegasus's Avatar
Seth Pegasus
Unhatched Egg
 
Join Date: May 2012
Gender: Male
I understand how the Snag Balls work, they catch the opponents Shadow Pokemon. I want to know how to make a Snag Ball that allows me to capture any opponent Pokemon. I did find a section in the scripts that has the Snag Ball stuff in it, but I have no idea what I'm looking at or how the script works.

Also, if someone can show me how to make a Poke ball that can capture a Pokemon and turn it into a Shadow Pokemon, I would really appreciate it.
Reply With Quote
  #2  
Unread June 22nd, 2012, 06:42 PM
Rayd12smitty's Avatar
Rayd12smitty
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
I may be wrong, because i don't know much about scripting at all, but I may be able to help with a poke ball that makes a pokemon shadow. I know you can do it through an event in the game (makeShadow). If you can make a conditional branch that checks the poke ball, and then has a script for "makeShadow" Im sorry this probably isn't much help, but no one else was responding
__________________

Reply With Quote
  #3  
Unread June 22nd, 2012, 06:53 PM
Seth Pegasus's Avatar
Seth Pegasus
Unhatched Egg
 
Join Date: May 2012
Gender: Male
Quote:
Originally Posted by Rayd12smitty View Post
I may be wrong, because i don't know much about scripting at all, but I may be able to help with a poke ball that makes a pokemon shadow. I know you can do it through an event in the game (makeShadow). If you can make a conditional branch that checks the poke ball, and then has a script for "makeShadow" Im sorry this probably isn't much help, but no one else was responding
Thanks for the help. I'll look into it and see if I can make it work.
Reply With Quote
  #4  
Unread June 22nd, 2012, 07:58 PM
Pokemon 3000's Avatar
Pokemon 3000
huh?
 
Join Date: Sep 2005
Location: Germany
Gender: Male
Nature: Rash
Try this:

First: Ccreate an Item that's the specific Pokéball. e.g:

520,SHADOWBALL,Shadow Ball,3,0,"A dark ball, that turns regular Pokémon in Shadow Pokémon.",0,2,4

Important are the last two parameters (2 and 4). It says that the item can be used directly in the battle and it's a pokéball.

Second: Go to the script editor in the rpg maker xp and go to the section "PokemonBalls". Change line 77 from

23=>:SPORTBALL

to

23=>:SPORTBALL,

(Add a comma)

And right under this line, write:

24=>:SHADOWBALL

Then go to around line 236 and put under this line:

BallHandlers::OnCatch.add(:SHADOWBALL,proc{|ball,battle,pokemon|
pokemon.makeShadow
})

That's should be... I'm not sure, if it's work, but it should. Sorry if my english is not clear enough, I'm not a native english speaker.

Edit: I've tested it and it's work.

Last edited by Pokemon 3000; June 22nd, 2012 at 08:16 PM.
Reply With Quote
  #5  
Unread June 22nd, 2012, 08:15 PM
p.claydon
Smoochum
 
Join Date: Jan 2011
it would be fun to allow a ball that can steal other trainers pokemon but i guess it would make rematches bit strange
Reply With Quote
  #6  
Unread June 22nd, 2012, 08:45 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Gender: Male
PokeBattle_Battle, line 125. Delete || !battler.isShadow?. Snag Balls work on any Pokémon.
__________________
Reply With Quote
  #7  
Unread June 22nd, 2012, 09:32 PM
Seth Pegasus's Avatar
Seth Pegasus
Unhatched Egg
 
Join Date: May 2012
Gender: Male
Quote:
Originally Posted by Pokemon 3000 View Post
Try this:

First: Ccreate an Item that's the specific Pokéball. e.g:

520,SHADOWBALL,Shadow Ball,3,0,"A dark ball, that turns regular Pokémon in Shadow Pokémon.",0,2,4

Important are the last two parameters (2 and 4). It says that the item can be used directly in the battle and it's a pokéball.

Second: Go to the script editor in the rpg maker xp and go to the section "PokemonBalls". Change line 77 from

23=>:SPORTBALL

to

23=>:SPORTBALL,

(Add a comma)

And right under this line, write:

24=>:SHADOWBALL

Then go to around line 236 and put under this line:

BallHandlers::OnCatch.add(:SHADOWBALL,proc{|ball,battle,pokemon|
pokemon.makeShadow
})

That's should be... I'm not sure, if it's work, but it should. Sorry if my english is not clear enough, I'm not a native english speaker.

Edit: I've tested it and it's work.
I tried it out and it does work. Thank you.



Maruno,

Ok I deleted || !battler.isShadow? but I get a SyntaxError in line 128.
What did I do wrong?

Last edited by Seth Pegasus; June 22nd, 2012 at 09:42 PM. Reason: Your double post has been automatically merged.
Reply With Quote
  #8  
Unread June 23rd, 2012, 12:54 AM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Gender: Male
The line should read:

Code:
if @opponent && !pbIsSnagBall?(ball)
You probably deleted a ")". I tidied it up for the sake of a clean example.
__________________
Reply With Quote
  #9  
Unread June 23rd, 2012, 01:15 AM
Seth Pegasus's Avatar
Seth Pegasus
Unhatched Egg
 
Join Date: May 2012
Gender: Male
Quote:
Originally Posted by Maruno View Post
The line should read:

Code:
if @opponent && !pbIsSnagBall?(ball)
You probably deleted a ")". I tidied it up for the sake of a clean example.
Ok thanks I got it working. I think the problem might have been that I changed this script and added 2 separate ballhandlers to the pokeballs script at the same time.

Now that I did added my new pokeball and changed the pokebattle_battle script then compiled and then added another ballhandler it works just fine.

Thanks again.
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 UTC. The time now is 01:55 AM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 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 posts belong to the user.