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)
-   -   Other Script Help [ANSWERED] (https://www.pokecommunity.com/showthread.php?t=325387)

wetroz May 3rd, 2014 6:04 PM

Script Help [ANSWERED]
 
Hello guys! I'm pretty new to scripting, and I've ran into some trouble.

My question is about a pretty basic script that you can find here:
Quote:

#dynamic 0x8007DC

#org @start
checkflag 0x1337
if 0x1 goto @moveaway
msgbox @talk1 0x6
release
end

#org @moveaway
msgbox @talk2 0x6
playsong 0x012E 0x0
applymovement 1 @walk1
waitmovement 1
hidesprite 1
setflag 0x1336
fadesong 0x0132
release
end



#org @talk1
= Don't you have a lesson to\nattend to?\pChuong is waiting for you in\nEsteraden.

#org @talk2
= Oh, I see you've finished your\nlesson. Go ahead and walk through.

#org @walk1
#raw 0x66
#raw 0x13
#raw 0xFE
As you can see in the end of the script, I want the person to move a step right and then disappear for good. However, when I take another step he reappears. How do I make him disappear permanently?

Thanks in advance
Wetroz

DrFuji May 3rd, 2014 7:06 PM

Quote:

Originally Posted by wetroz (Post 8230015)
Hello guys! I'm pretty new to scripting, and I've ran into some trouble.

My question is about a pretty basic script that you can find here:


As you can see in the end of the script, I want the person to move a step right and then disappear for good. However, when I take another step he reappears. How do I make him disappear permanently?

Thanks in advance
Wetroz

You can stop the OW reappearing by placing the flag number you set into the OW's 'Person ID' in Advance Map.

Also, you shouldn't be using flags as high as 0x1336 or 0x1337. There are safer flags that are readily avaliable. Read this thread for more information.

wetroz May 3rd, 2014 7:12 PM

Quote:

Originally Posted by DrFuji (Post 8230127)
You can stop the OW reappearing by placing the flag number you set into the OW's 'Person ID' in Advance Map.

Thanks alot for the reply, it solved my problem!
Also, I'll try to use lower flags in the future


All times are GMT -8. The time now is 9:12 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.