- 13
- Posts
- 5
- Years
- Seen Jan 22, 2024
Hi guys, I have a good question.
I want to use XSE to apply movement and make a trainer challenge my player in FireRed.
I know how to use applymovement and giveitem, and I tried to use trainerbattle to make a battle, but it just won't work.
Here's what I used:
#dynamic 0x2FD72E
#org @start
msgbox @talk1 0x6
playsong 0x0109 0x0
applymovement 10 @walk1
waitmovement 10
applymovement 0xFF @jaywalk2
waitmovement 0xFF
msgbox @before 0x6
trainerbattle 0x0 0x01 0x0 @after @beaten
msgbox @talk3
applymovement 10 @walk3
waitmovement 10
hidesprite 10
setvar 0x6000 0x1
setflag 0x1211
fadesong 0x0116
release
end
#org @talk1
= ???: Hey there, you!
#org @before
= LEAF: My name is LEAF, and I\nassume you've beaten BROCK, the\lGYM LEADER from PEWTER CITY.\pPretty good for you. What's your\nname?\pWell, nice to meet you \v\h01!\pNow, I challenge you!
#org @after
= LEAF: Wow, you're pretty strong!
#org @talk3
= LEAF: I'll be seeing you around,\nboy.
#org @walk1
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x4A
#raw 0xFE
#org @jaywalk2
#raw 0x63
#raw 0x55
#raw 0xFE
#org @walk3
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE[/B][/B]
Can someone help me, please?
I want to use XSE to apply movement and make a trainer challenge my player in FireRed.
I know how to use applymovement and giveitem, and I tried to use trainerbattle to make a battle, but it just won't work.
Here's what I used:
#dynamic 0x2FD72E
#org @start
msgbox @talk1 0x6
playsong 0x0109 0x0
applymovement 10 @walk1
waitmovement 10
applymovement 0xFF @jaywalk2
waitmovement 0xFF
msgbox @before 0x6
trainerbattle 0x0 0x01 0x0 @after @beaten
msgbox @talk3
applymovement 10 @walk3
waitmovement 10
hidesprite 10
setvar 0x6000 0x1
setflag 0x1211
fadesong 0x0116
release
end
#org @talk1
= ???: Hey there, you!
#org @before
= LEAF: My name is LEAF, and I\nassume you've beaten BROCK, the\lGYM LEADER from PEWTER CITY.\pPretty good for you. What's your\nname?\pWell, nice to meet you \v\h01!\pNow, I challenge you!
#org @after
= LEAF: Wow, you're pretty strong!
#org @talk3
= LEAF: I'll be seeing you around,\nboy.
#org @walk1
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x4A
#raw 0xFE
#org @jaywalk2
#raw 0x63
#raw 0x55
#raw 0xFE
#org @walk3
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE[/B][/B]
Can someone help me, please?