colcolstyles
Yours truly
- 1,588
- Posts
- 15
- Years
- The Bay Area
- Seen May 19, 2019
I'm a beginning scripter and experimenting with various scripts. I have a problem right here, it's hidesprite. The sprite keeps reappearing after I make a step, although the flag number is the same as the person's ID. The cry also doesn't work. Can someone help me? (I cannot post a screenshot because the system disallows me to post an URL before having 15 posts.)
Spoiler:#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x7 0x0
wildbattle 0x7 0x1 0x0
fadescreen 1
hidesprite 0x1
setflag 0x1204
fadescreen 0
release
end
#org @1
= I'm a Pokémon, not a human.
My script.
You need a 'waitcry' command after 'cry' or else the game will go ahead and start the battle without waiting for the cry to finish. As for the other problem, everything should work as long as you have '1024' written in the "Person ID" field in AdvanceMap. I can't tell you what's wrong because I don't have the ROM. Make sure that the address in the "Script offset" field matches the address of "@start" that is displayed when you compile the script in XSE.