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 Problem with "playsong" command (https://www.pokecommunity.com/showthread.php?t=446799)

MarcoShinyEmerald March 18th, 2021 9:33 AM

Problem with "playsong" command
 
Code:

lock
faceplayer
cry 0x91 0x0
msgbox 0x8869C2A MSG_NORMAL '"Gyaooo!"
waitcry
wildbattle 0x91 0x3C 0x0
special 0x138
playsong 0x1D8 0x0
special2 LASTRESULT 0xB7
compare LASTRESULT 0x1
if 0x1 goto 0x8869C34
compare LASTRESULT 0x4
if 0x1 goto 0x8869C27
fadescreen 0x1
hidesprite 0x9
fadescreen 0x0
setflag 0x203
release
end


I wrote this script for setting a wild battle. I use "playsong 0x18D 0x0" but the theme strarts when the battle is over and not during. What have I missed?

(I didn't put the entire script but only the important part)


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