- 1
- Posts
- 3
- Years
- Seen Jul 30, 2022
Hello,
I recently began work on my own custom Pokemon FireRed Romhack, and got to the point where the player chooses their starter. However, I ran into difficulty with making the Pokeball disappear when the player chooses the pokemon they want.
The sprite does disappear at first, however after the player takes a step, it reappears again, making me believe it's an issue with Flags. However, I can't figure out what is wrong.
Here is the script:
#dynamic 0x800000
#org @start
lock
checkflag 0x205
if 0x1 goto @chosenpokemon
checkflag 0x206
if 0x1 goto @chosenpokemon
showpokepic 0x440 0xA 0x3
pause 0x30
msgbox @tl 0x5
compare 0x800D 0x1
if 0x1 goto @yes
hidepokepic
release
end
#org @chosenpokemon
msgbox @tl2 0x6
release
end
#org @tl
= Prof: So, You choose [green_fr]Turtwig[black_fr]?
#org @tl2
= Prof: You can't take another!
#org @yes
hidepokepic
hidesprite 0x5
setflag 0x204
givepokemon 0x1B8 0x5 0x8B 0x0 0x0 0x0
setflag 0x828
release
end
The Person ID set to the pokeball is 0204, and the person event no. is 5.
If anyone can help me figure out the issue, it'll be very appreciated!
Thank you in advance.
I recently began work on my own custom Pokemon FireRed Romhack, and got to the point where the player chooses their starter. However, I ran into difficulty with making the Pokeball disappear when the player chooses the pokemon they want.
The sprite does disappear at first, however after the player takes a step, it reappears again, making me believe it's an issue with Flags. However, I can't figure out what is wrong.
Here is the script:
#dynamic 0x800000
#org @start
lock
checkflag 0x205
if 0x1 goto @chosenpokemon
checkflag 0x206
if 0x1 goto @chosenpokemon
showpokepic 0x440 0xA 0x3
pause 0x30
msgbox @tl 0x5
compare 0x800D 0x1
if 0x1 goto @yes
hidepokepic
release
end
#org @chosenpokemon
msgbox @tl2 0x6
release
end
#org @tl
= Prof: So, You choose [green_fr]Turtwig[black_fr]?
#org @tl2
= Prof: You can't take another!
#org @yes
hidepokepic
hidesprite 0x5
setflag 0x204
givepokemon 0x1B8 0x5 0x8B 0x0 0x0 0x0
setflag 0x828
release
end
The Person ID set to the pokeball is 0204, and the person event no. is 5.
If anyone can help me figure out the issue, it'll be very appreciated!
Thank you in advance.
Last edited: