Toggling "set" battle mode (Firered)
First insert this somewhere:
Code:
29 00
FE F4 03 02 AA 92 87 1D 08 2B 04 D0 3D 02 02 00 00 40 00 92 87 1D 08 28 35 87 1D 08
Then, at 0x1D8727, put:
Code:
28 XX XX XX 08
Where XX is the pointer to the battle script you inserted above.
Usage:
In a script, put this:
Code:
...
writebytetooffset 0xAA 0x203F4FE
...
Make sure you writebytetooffset 0x0 0x203F4FE after the battle(s) and on the whiteout script, so it doesn't get stuck on Set mode forever.
Explanation:
This is a really cheap and inefficient solution that branches off the original script that asks this:
[IMG alt="[PokeCommunity.com] Quick Research & Development Thread"]
And if 0x203F4FE = 0xAA, it won't ask at all regardless of the player's option setting.
This could be useful if you're making a battle facility and don't want them to be able to switch after knocking out a Pokémon
Esto es para FR tendrás que adaptarlo a RF.
Créditos a:
Squeetz