FSBS
Defunct
- 147
- Posts
- 8
- Years
- Seen Apr 19, 2019
I'm trying to make a movement script with a trainer battle attached. I've put two basic scripts together in a way I think would work, but I'd like someone more learned to look at it.
Script is in XSE for Fire Red. I haven't applied any real information to it yet, but the gist is the person says something, comes down four tiles, the player exclaims and jumps once, the battle begins and ends appropriately, the NPC speaks again and turns to leave out of view and disappears.
Spoiler:
#dynamic 0x000000
#org @start
msgbox @talk1 0x6
playsong 0x0000 0x0
applymovement #00 @walk1
waitmovement 0xFF
msgbox @talk2 0x6
trainerbattle 0x0 0x000 0x0 @after
msgbox @beaten 0x6
msgbox @talk3 0x6
applymovement 00 @walk2
waitmovement 00
hidesprite 00
setvar 0x4011 0x1
setflag 0000
release
end
#org @talk1
#org @talk2
#org @after
#org @talk3
#org @walk1
#org @walk2
#org @start
msgbox @talk1 0x6
playsong 0x0000 0x0
applymovement #00 @walk1
waitmovement 0xFF
msgbox @talk2 0x6
trainerbattle 0x0 0x000 0x0 @after
msgbox @beaten 0x6
msgbox @talk3 0x6
applymovement 00 @walk2
waitmovement 00
hidesprite 00
setvar 0x4011 0x1
setflag 0000
release
end
#org @talk1
#org @talk2
#org @after
#org @talk3
#org @walk1
#org @walk2
Script is in XSE for Fire Red. I haven't applied any real information to it yet, but the gist is the person says something, comes down four tiles, the player exclaims and jumps once, the battle begins and ends appropriately, the NPC speaks again and turns to leave out of view and disappears.