Thread: Development: Pokémon Fire Red Hacked Engine
View Single Post
Old May 29th, 2010 (7:11 AM).
Nikolai Fox's Avatar
Nikolai Fox Nikolai Fox is offline
Join Date: Mar 2010
Gender: Male
Posts: 202
How do you set one variable to a value, and then change it to another value?

I am using the Fire Red Hacked engine, and I used this code which changes the level of the Pokémon a gym leader has to three levels higher than your highest level Pokémon.

setvar 0x4052 0x203
trainerbattle 0x1 etc
setvar 0x4052 0x0

The var first gets set to the value that makes the Pokélevels what I wanted them to be, which worked. But after the battle, all trainer Pokémon levels are still 3 levels higher than my highest level Pokémon. If the value of 4052 is 0, it should cancel the change?

Reply With Quote