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 running shoes only work indoors (https://www.pokecommunity.com/showthread.php?t=354890)

ashketchem2512 August 30th, 2015 8:25 PM

running shoes only work indoors
 
so recently new to modding but i'm working on a firered mod. I won't go into too many details, but I wrote a script on XSE that is supposed to set the flag for running shoes. and it does but I can only run indoors not outside. the event is still cleared the flag is set. i don't know what i did wrong and any help would be appreciated. here's my script to see what i did wrong.

#org 0x80220D
lock
faceplayer
checkflag 0x996
checkflag 0x82F
if 0x1 goto 0x8802254
msgbox 0x88022BA 0x5
compare 0x800D 0x1
if 0x1 goto 0x8802236
msgbox 0x88022FA 0x6
setflag 0x82F
msgbox 0x8802298 0x4
fanfare 0x13E
waitfanfare
closeonkeypress
msgbox 0x8802265 0x6
setflag 0x996
release
end

#org 0x802254
msgbox 0x8802265 0x6
release
end

#org 0x802236
setflag 0x82F
msgbox 0x8802298 0x4
fanfare 0x13E
waitfanfare
closeonkeypress
msgbox 0x8802265 0x6
setflag 0x996
release
end

#org 0x8022BA
= I have a package \nfor you from \lyour mother \pdo you want it??

#org 0x8022FA
= Well I guess \nI'll hold on \lto it for you.

#org 0x802298
= [player] received the running shoes!!

#org 0x802265
= I'll let you know \nif she sends \lanything else.

Squeetz September 2nd, 2015 3:13 AM

I'm not sure if this will alleviate your problem, but you when checking for a flag, immediately after do the 'if' command.
Changes in Bold


#org 0x80220D
lock
faceplayer
checkflag 0x996
if 0x1 goto 0x8802254
checkflag 0x82F
if 0x1 goto 0x8802254
msgbox 0x88022BA 0x5
compare 0x800D 0x1
if 0x1 goto 0x8802236
msgbox 0x88022FA 0x6
setflag 0x82F
msgbox 0x8802298 0x4
fanfare 0x13E
waitfanfare
closeonkeypress
msgbox 0x8802265 0x6
setflag 0x996
release
end


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