The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle 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    
Old June 21st, 2012 (11:57 PM).
Seth Pegasus's Avatar
Seth Pegasus
 
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    
Old June 22nd, 2012 (10:42 AM).
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    
Old June 22nd, 2012 (10:53 AM).
Seth Pegasus's Avatar
Seth Pegasus
 
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    
Old June 22nd, 2012 (11:58 AM). Edited June 22nd, 2012 by Pokemon 3000.
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.
Reply With Quote
  #5    
Old June 22nd, 2012 (12:15 PM).
p.claydon
 
Join Date: Jan 2011
Gender:
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    
Old June 22nd, 2012 (12:45 PM).
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
PokeBattle_Battle, line 125. Delete || !battler.isShadow?. Snag Balls work on any Pokémon.
__________________
Reply With Quote
  #7    
Old June 22nd, 2012 (01:32 PM). Edited June 22nd, 2012 by Seth Pegasus.
Seth Pegasus's Avatar
Seth Pegasus
 
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?
Reply With Quote
  #8    
Old June 22nd, 2012 (04:54 PM).
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
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    
Old June 22nd, 2012 (05:15 PM).
Seth Pegasus's Avatar
Seth Pegasus
 
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
  #10    
Old October 15th, 2014 (08:39 AM). Edited October 18th, 2014 by Hargatio.
Hargatio's Avatar
Hargatio
 
Join Date: Jan 2014
EDIT: I solved the problem. There was only one mistake while creating that item in pbs.file "items".
Code:
535,ROCKETBALL,Rocket Ball,3,0,"A dark ball, that catches every Trainer's Pokémon.",0,2,4
This is the number for a common pokeball. You need to enter a "3" for a snagball-type. Than it works fine!

Hey guys,

I have a problem, too with creating a pokeball that steals Trainerpokemon.

I followed your advices. but I can't catch it yet.

What I did:
First I created a new Item within the pbs.file "items".
Code:
535,ROCKETBALL,Rocket Ball,3,0,"A dark ball, that catches every Trainer's Pokémon.",0,2,4
Second I was opening the script section "PokeBalls" and added a new type of Pokeball (around line 76) with the following code.
Code:
24=>:ROCKETBALL,
. It follows the "sportsball".

Next step was scrolling down to the end of the script (in my case line 226) and added as last command the following code:

Code:
BallHandlers::OnCatch.add(:SNAGBALL,proc{|ball,battle,pokemon|
pokemon.makeShadow
})
But when I starts the game and try to catch a trainer's pokemon they message appeared: Trainer blocked the ball. Dont be a thief.

Did I forget anything?

I would be deeply grateful for help. Thanks in advance!

Regards
\Hargatio
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 07:17 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.