View Single Post
  #7206    
Old August 17th, 2012 (9:10 AM).
SpadeEdge16's Avatar
SpadeEdge16 SpadeEdge16 is offline
 
Join Date: May 2012
Gender: Male
Posts: 154

Hey, can someone help me out?
I'm doing a script where your two rivals in the game meet up with you at the same time, and take turns battling you, and so far I've only got the script to work, up until the part where the second rival approaches the player, then right when she's in front of the player, before she can say anything, my game freezes. Anyone know why this is happenning?

Code:
#dynamic 0x800000
#org @start
checkflag 0x178
if 0x1 goto @done
clearflag 0x180
lock
msgbox @wait 0x6
applymovement 0xFF @stop
showsprite 0x1
applymovement 0x01 @chris
waitmovement 0x01
msgbox @alright 0x6
showsprite 0x02
msgbox @huh 0x6
showsprite 0x02
applymovement 0xFF @notice
applymovement 0x02 @ace
waitmovement 0x2
pause 0x20
msgbox @hey 0x6
msgbox @who 0x6
msgbox @intro 0x6
msgbox @sorry 0x6
msgbox @well 0x6
msgbox @no! 0x6
trainerbattle 0x1 0x75 0x0 @challenge1 @defeat1 @after1
release
end

#org @after1 msgbox @see 0x6 msgbox @ohyeah 0x6 fadescreen 0x1 special 0x00 fanfare 0x100 fadescreen 0x0 trainerbattle 0x1 0x76 0x0 @challenge2 @defeat2 @after2 release end

#org @see = CHRIS: Well, ACE, what'd ya' think\nabout that!?

#org @ohyeah = ACE: I think I'm gonna show you\nwhat a REAL battle looks like!\lHere, [player], let me heal your POKEMON\lfirst!

#org @challenge2 = ACE: Alright, here I come!

#org @defeat2 = ACE: You sure have gotten strong!\nBut I have too, huh!

#org @after2 msgbox @that 0x6 msgbox @whatev 0x6 applymovement 0x01 @chrisleave pause 0x120 hidesprite 0x01 msgbox @acesays 0x6 fanfare 0x101 additem 0xB8 0x1 msgbox @playerrec 0x6 setflag 0x178 setflag 0x180 msgbox @acebye 0x6 applymovement 0x02 @aceleave pause 0x120 hidesprite 0x02 release end

#org @that = ACE: Until I can see you battle\nlike that, CHRIS, [player] won't have as\lmuch fun with you as he does with\lme!

#org @whatev = CHRIS: Yeah, whatever...\nDon't worry, [player], we'll battle\lagain soon, and without any\linterruptions...\lSee ya'!

#org @chrisleave #raw 0x10 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0xFE

#org @acesays = ACE: Well, I guess as long as you\nhad fun with one of us, that's all\lthat matters!\lI'll be leaving now too, I'll see\lyou soon, [player]!\lAnd before I go, take this!

#org @playerrec = [player] recieved a SOOTHE BELL!

#org @acebye = ACE: Put that on your POKEMON,\nit'll make the bond between you\land that POKEMON stronger than\lever!\lI've used it on mine to ensure I\lraised them with love and care,\lbut I think your POKEMON would\llike it too!\lUse it well!\lBye, [player]!

#org @aceleave #raw 0x10 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x10 #raw 0x13 #raw 0xFE

#org @done release end

#org @wait = CHRIS: Hey, [player], hold on a sec!

#org @stop #raw 0x62 #raw 0x0 #raw 0xFE

#org @chris #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x11 #raw 0xFE

#org @alright = CHRIS: Alright, I've buckled down\nsince our last battle!\lMy team is trained using hard work\land motivation!\lThey can't be beaten now!\l

#org @huh = CHRIS: Huh?\nThat girl looks like she knows\lyou...

#org @notice #raw 0x03 #raw 0xFE

#org @ace #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x11 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x11

#org @hey = ACE: Hey, [player]!\nIt's been a while!\lHow's your journey going?

#org @who = CHRIS: Uh...\nWho's this, [player]?

#org @intro = ACE: Hi there!\nMy name's ACE!\l[player] and I met on ROUTE 1 and\lbattled!\lI was actually thinking we could\lcatch up with a battle!\lHow about it, [player]?

#org @sorry = CHRIS: Woah, woah, woah!\nSorry, ACE, but [player] was about to\lbattle me before you came!

#org @well = ACE: Well, maybe [player] wants to\nbattle me instead!\lI'm sure he has more fun battling\lme anyways!

#org @no! = CHRIS: No way that's true!\nI've heard enough of this!

#org @challenge1 = CHRIS: [player], let's show her how we\nbattle!

#org @defeat1 = CHRIS: Heh, even though I trained\nso hard, part of me was expecting\lthis.