- 1,278
- Posts
- 10
- Years
- Greece!
- Seen Apr 23, 2025
Hello!
I had a problem with a script.
The problem is this:
When the battle ends, the applymovement and the hidesprite don't work.
Maybe I was supposed to add this as a level script?
Here is the script:
#org @start
msgbox @talk1 0x6
applymovement 4 @walk1
waitmovement 4
applymovement 0xff @walk2
waitmovement 0xff
msgbox @talk2 0x6
trainerbattle 0x0 0x200 0x0 @before @after
applymovement 4 @walk3
waitmovement 4
hidesprite 4
setvar 0x4041 0x1
setflag 0x1221
release
end
#org @talk1
= [black_fr]???: [blue_fr]Hey there!
#org @talk2
= [black_fr]Ben:[blue_fr]Hello \v\h01,I'm really glad\nthat you are alive after that boat\laccident.\pBut as always, you are really\nslow.\pAnyway if you go south from here\nyou will find [green_fr]Oldedge town.\l[blue_fr]It's an underground town,you will\lfind more info there.
#org @before
= [blue_fr]Now, I think it's time to have a\nPokemon battle, come at me!
#org @after
= Awesome!\nI will be going for training now!
#org @beaten
= [blue_fr]You may be slow, but you managed\nto beat me, good work \v\h01.\lI will go for training now, see\lyou later!
#org @walk1
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE
#org @walk2
#raw 0x62
#raw 0xFE
#org @walk3
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
EDIT: Tried another script and it works perfectly. No need to answer this.
I had a problem with a script.
The problem is this:
When the battle ends, the applymovement and the hidesprite don't work.
Maybe I was supposed to add this as a level script?
Here is the script:
Spoiler:
#org @start
msgbox @talk1 0x6
applymovement 4 @walk1
waitmovement 4
applymovement 0xff @walk2
waitmovement 0xff
msgbox @talk2 0x6
trainerbattle 0x0 0x200 0x0 @before @after
applymovement 4 @walk3
waitmovement 4
hidesprite 4
setvar 0x4041 0x1
setflag 0x1221
release
end
#org @talk1
= [black_fr]???: [blue_fr]Hey there!
#org @talk2
= [black_fr]Ben:[blue_fr]Hello \v\h01,I'm really glad\nthat you are alive after that boat\laccident.\pBut as always, you are really\nslow.\pAnyway if you go south from here\nyou will find [green_fr]Oldedge town.\l[blue_fr]It's an underground town,you will\lfind more info there.
#org @before
= [blue_fr]Now, I think it's time to have a\nPokemon battle, come at me!
#org @after
= Awesome!\nI will be going for training now!
#org @beaten
= [blue_fr]You may be slow, but you managed\nto beat me, good work \v\h01.\lI will go for training now, see\lyou later!
#org @walk1
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE
#org @walk2
#raw 0x62
#raw 0xFE
#org @walk3
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
EDIT: Tried another script and it works perfectly. No need to answer this.
Last edited: