Thread: [Question] Battle different form
View Single Post
  #2    
Old February 23rd, 2012, 07:11 AM
TACHAN
 
Join Date: Jan 2010
Gender: Female
Quote:
Originally Posted by tasmania12 View Post
Is there a way to event battle a different form of a pokemon?
I did this:

pbWildBattle(PBSpecies::GIRATINA,25)
poke.form=2

I tested it and it errored:



Spoiler:

---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError

Message: Script error within event 3, map 5 (Shadow Cave):

Exception: NameError

Message: (eval)in `pbExecuteScript'undefined local variable or method `poke' for #<Interpreter:0x3930d80>

***Full script:

pbWildBattle(PBSpecies::GIRATINA,25)
poke.form=2


Interpreter:243:in `pbExecuteScript'

Interpreter:1592:in `eval'

Interpreter:243:in `pbExecuteScript'

Interpreter:1592:in `command_355'

Interpreter:493:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Scene_Map:103:in `update'

Scene_Map:101:in `loop'



Interpreter:275:in `pbExecuteScript'

Interpreter:1592:in `command_355'

Interpreter:493:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Scene_Map:103:in `update'

Scene_Map:101:in `loop'

Scene_Map:114:in `update'

Scene_Map:68:in `main'



It doesn't like the 'poke' part of 'poke.form=2'
Read here the "Wild Pokemon with equipped item":
http://www.pokecommunity.com/showthr...12#post6852512
It adds these lines in an empty script above of the script Main.

It uses the item "GRISEOUSORB" for Giratina's alternative form and the number of switch that you want, 80 for example. This does that the Pokemon always has this equipped item. Giratina changes form taking this item.

Then in the window of Giratina's event put:

Quote:
Switch: [80 for example] = ON
Script: pbWildBattle(
:BSpecies::GIRATINA,25,1)
Switch: [80 for example] = OFF
I do not know do it without forcing that it takes the item to transform.
Reply With Quote