< >
Hello, guest! Please log in or register.

The PokéCommunity

Go Back     The PokéCommunity Forums > Create & Discover > Game Development > Pokémon Essentials Question Need some help regarding Snag Balls.

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 Post Reply
 
Thread Tools
  #1    
Old June 21st, 2012 (11:57 PM).
Seth Pegasus's Avatar
Seth Pegasus Seth Pegasus is offline
 
Join Date: May 2012
Gender: Male
Posts: 66
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

Relevant Advertising!

  #2    
Old June 22nd, 2012 (10:42 AM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 647
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 Seth Pegasus is offline
 
Join Date: May 2012
Gender: Male
Posts: 66
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 Pokemon 3000 is offline
huh?
 
Join Date: Sep 2005
Location: Germany
Gender: Male
Nature: Rash
Posts: 70
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 p.claydon is offline
 
Join Date: Jan 2011
Gender:
Posts: 315
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 Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,093
PokeBattle_Battle, line 125. Delete || !battler.isShadow?. Snag Balls work on any Pokémon.
Reply With Quote
  #7    
Old June 22nd, 2012 (1:32 PM). Edited June 22nd, 2012 by Seth Pegasus.
Seth Pegasus's Avatar
Seth Pegasus Seth Pegasus is offline
 
Join Date: May 2012
Gender: Male
Posts: 66
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 (4:54 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,093
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 (5:15 PM).
Seth Pegasus's Avatar
Seth Pegasus Seth Pegasus is offline
 
Join Date: May 2012
Gender: Male
Posts: 66
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 (8:39 AM). Edited October 18th, 2014 by Hargatio.
Hargatio's Avatar
Hargatio Hargatio is offline
 
Join Date: Jan 2014
Posts: 23
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 Post 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 1:52 PM.


Contact Us Archive Privacy Statement Terms of Service Top