Thread: [Question] Battle different form
View Single Post
  #4    
Old February 24th, 2012 (03:08 AM). Edited February 24th, 2012 by TACHAN.
TACHAN TACHAN is offline
 
Join Date: Jan 2010
Gender: Female
Posts: 165
Quote originally posted by tasmania12:
Can I do it using a variable if I wanted to use it on a pokemon that I want to battle with several forms throughout my game instead of using a switch linked to the item that changes Giratina's form? (If you can follow that... :D)
OK.
Already I have managed to put a form of a Pokemon without depending on the item.

In script:
Quote:
Events.onWildPokemonCreate+=proc {|sender,e|
pokemon=e[0]
if $game_variables[80]=1
pokemon.form=1
end
}

Events.onWildPokemonCreate+=proc {|sender,e|
pokemon=e[0]
if $game_variables[80]=2
pokemon.form=2
end
}

Events.onWildPokemonCreate+=proc {|sender,e|
pokemon=e[0]
if $game_variables[80]=3
pokemon.form=3
end
}

Events.onWildPokemonCreate+=proc {|sender,e|
pokemon=e[0]
if $game_variables[80]=4
pokemon.form=4
end
}

Events.onWildPokemonCreate+=proc {|sender,e|
pokemon=e[0]
if $game_variables[80]=5
pokemon.form=5
end
}
pokemon.form=1, 2, 3, 4, or 5... It depends on all the forms has the pokemon

In event:
Quote:
Variable: [80] = 1, 2, 3, 4 or 5.
Script: pbWildBattle(
:BSpecies::ROTOM,25,1)
Variable: [80] = 0
I suppose that it will work, but I have not used it.

PD: I believe that everything does not work with trainers
Reply With Quote