The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Buggy script/character (https://www.pokecommunity.com/showthread.php?t=398206)

pikadude64 August 10th, 2017 12:45 AM

Buggy script/character
 
Hi, my code works fine for what it is required to do but once the player has received the old rod from the fisherman he vanishes of the screen and reappears when you move. Can anyone see why this is happening or let me know of a solution. Thanks in advance

Spoiler:

'---------------
#org 0x800000
checkflag 0x8C3
if 0x1 goto 0x880004B
faceplayer
lock
msgbox 0x8800056 0x5 '"Hello, would you like to hear my\n..."
compare LASTRESULT 0x1
if 0x1 goto 0x8800027
msgbox 0x880009A MSG_NORMAL '"That's disappointing to hear.\nYou..."
release
end

'---------------
#org 0x80004B
msgbox 0x88004FF MSG_FACE '"My golden Magikarp is my pride and..."
release
end

'---------------
#org 0x800027
msgbox 0x88000DB MSG_FACE '"Excellent. Back in my day when I\n..."
giveitem 0x106 0x1 MSG_FIND
waitfanfare
closeonkeypress
setflag 0x8C3
release
end


'---------
' Strings
'---------
#org 0x800056
= Hello, would you like to hear my\nstory about a wonderful pokemon?

#org 0x80009A
= That's disappointing to hear.\nYou're missing out on something.

#org 0x8004FF
= My golden Magikarp is my pride and\njoy, actually I caught it using\lthat rod that you now own!

#org 0x8000DB
= Excellent. Back in my day when I\nwas just as young as you (story continues but isnt required here)

NewDenverCity August 10th, 2017 3:10 AM

Flag 0x8C3 is an unsafe flag for one. I assume you haven't made a person with a flag attached in A-map so they can disappear a la oak of palette town, but try changing the flag to something else, moving the lock, faceplayer above the checkflag.


All times are GMT -8. The time now is 9:14 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.