- 0
- Posts
- 10
- Years
- Seen Mar 18, 2018
Hi guys, I have another problem (ugh).
I made a script where you see a girl, talk to her, and you see three grunts and two trainers. The girl moves out the way, the trainers talk to you then you battle the grunt.
The script is working fine until you beat the GRUNT, then nothing happens. Talking to the girl again will re-activate the script, minus the trainer battle, and the grunts will disappear (which is what I want to happen). Then the two will speak, say they'll give you a rare candy, then nothing happens. Help D:
#org 0x80013D
lock
faceplayer
checkflag 0x251
if 0x1 goto 0x880019F
msgbox 0x88001A2 MSG_FACE '"Huh? Who are you?\n[player], eh?\l..."
playsong 0x113 0x0
applymovement 0x9 0x880072B
applymovement MOVE_PLAYER 0x8800730
msgbox 0x880022D MSG_FACE '"PSARO: Eh? Who's this?\n[player]: ..."
trainerbattle 0x0 0x4 0x0 0x880030E 0x88003B2
fadescreen 0x1
hidesprite 0x06
hidesprite 0x07
hidesprite 0x08
fadescreen 0x0
msgbox 0x88003D9 MSG_FACE '"PSARO: Thanks.\nKIYA: Yeah, I appr..."
giveitem 0x44 0x1 0x2
setflag 0x252
msgbox 0x8800510 MSG_FACE '"MAY: WOAH! That... was... EPIC!\nO..."
setflag 0x26C
end
'---------------
#org 0x80019F
release
end
'---------
' Strings
'---------
#org 0x8001A2
= Huh? Who are you?\n[player], eh?\lWell, my brother, PSARO is\lfighting off those TEAM ANTIGUA\lGRUNTS. KIYA, the icy ELITE FOUR\lmember is helping!
#org 0x80022D
= PSARO: Eh? Who's this?\n[player]: I'm [player]!\lPSARO: [player], can you help us?\l[player]: Sure!\lPSARO: KIYA, we've got a plucky\ltrainer to help!\lKIYA: Great!\lGRUNT: So you've got a kid to do\lyour dirty work? Dignified.\lPSARO: He OFFERED to help!
#org 0x80030E
= GRUNT: Why did PSARO even get you\nto battle me?! You look weak. I\lwant challenge! But still...\lyou've got a confident look in\lyour eye... No matter, bring it\lon!
#org 0x8003B2
= Mayday, MAYDAY! I've been\ndefeated!
#org 0x8003D9
= PSARO: Thanks.\nKIYA: Yeah, I appreciate it!\lPSARO: You deserve a reward!\lKIYA: How about this, it's a RARE\lCANDY! They level up your POKéMON!\lCool, huh?\lPSARO: MAY is my sister.\lKIYA: PSARO, I gotta go. League's\lgot a challenger.\lPSARO: I need to go too. KIYA, can\lyou drop me off at MUNFLO TOWN?\lKIYA: Sure!
#org 0x800510
= MAY: WOAH! That... was... EPIC!\nOne day, I'd like to battle you!\lI'm a new trainer. PSARO defeated\lthe LEAGUE in the region he lives\lin. But he decided he wanted to\lget stronger, so he wants to\lchallenge the league here. When he\lleft from a port in HOENN, I came\lwith him, armed with a TORCHIC the\lregional PROFESSOR, BIRCH gave me.\lOh, and another thing... A girl\lcalled ELISE came through here\learlier, said she was looking for\lyou? Have you met her before?\l[player]: Nope.\lMAY: Weird. Well, she's outside\lthe POKÉMART if you want her. Bye!
'-----------
' Movements
'-----------
#org 0x80072B
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements
#org 0x800730
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements
I made a script where you see a girl, talk to her, and you see three grunts and two trainers. The girl moves out the way, the trainers talk to you then you battle the grunt.
The script is working fine until you beat the GRUNT, then nothing happens. Talking to the girl again will re-activate the script, minus the trainer battle, and the grunts will disappear (which is what I want to happen). Then the two will speak, say they'll give you a rare candy, then nothing happens. Help D:
Spoiler:
#org 0x80013D
lock
faceplayer
checkflag 0x251
if 0x1 goto 0x880019F
msgbox 0x88001A2 MSG_FACE '"Huh? Who are you?\n[player], eh?\l..."
playsong 0x113 0x0
applymovement 0x9 0x880072B
applymovement MOVE_PLAYER 0x8800730
msgbox 0x880022D MSG_FACE '"PSARO: Eh? Who's this?\n[player]: ..."
trainerbattle 0x0 0x4 0x0 0x880030E 0x88003B2
fadescreen 0x1
hidesprite 0x06
hidesprite 0x07
hidesprite 0x08
fadescreen 0x0
msgbox 0x88003D9 MSG_FACE '"PSARO: Thanks.\nKIYA: Yeah, I appr..."
giveitem 0x44 0x1 0x2
setflag 0x252
msgbox 0x8800510 MSG_FACE '"MAY: WOAH! That... was... EPIC!\nO..."
setflag 0x26C
end
'---------------
#org 0x80019F
release
end
'---------
' Strings
'---------
#org 0x8001A2
= Huh? Who are you?\n[player], eh?\lWell, my brother, PSARO is\lfighting off those TEAM ANTIGUA\lGRUNTS. KIYA, the icy ELITE FOUR\lmember is helping!
#org 0x80022D
= PSARO: Eh? Who's this?\n[player]: I'm [player]!\lPSARO: [player], can you help us?\l[player]: Sure!\lPSARO: KIYA, we've got a plucky\ltrainer to help!\lKIYA: Great!\lGRUNT: So you've got a kid to do\lyour dirty work? Dignified.\lPSARO: He OFFERED to help!
#org 0x80030E
= GRUNT: Why did PSARO even get you\nto battle me?! You look weak. I\lwant challenge! But still...\lyou've got a confident look in\lyour eye... No matter, bring it\lon!
#org 0x8003B2
= Mayday, MAYDAY! I've been\ndefeated!
#org 0x8003D9
= PSARO: Thanks.\nKIYA: Yeah, I appreciate it!\lPSARO: You deserve a reward!\lKIYA: How about this, it's a RARE\lCANDY! They level up your POKéMON!\lCool, huh?\lPSARO: MAY is my sister.\lKIYA: PSARO, I gotta go. League's\lgot a challenger.\lPSARO: I need to go too. KIYA, can\lyou drop me off at MUNFLO TOWN?\lKIYA: Sure!
#org 0x800510
= MAY: WOAH! That... was... EPIC!\nOne day, I'd like to battle you!\lI'm a new trainer. PSARO defeated\lthe LEAGUE in the region he lives\lin. But he decided he wanted to\lget stronger, so he wants to\lchallenge the league here. When he\lleft from a port in HOENN, I came\lwith him, armed with a TORCHIC the\lregional PROFESSOR, BIRCH gave me.\lOh, and another thing... A girl\lcalled ELISE came through here\learlier, said she was looking for\lyou? Have you met her before?\l[player]: Nope.\lMAY: Weird. Well, she's outside\lthe POKÉMART if you want her. Bye!
'-----------
' Movements
'-----------
#org 0x80072B
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements
#org 0x800730
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements