View Single Post
Old June 30th, 2009 (11:20 AM).
Lyzo's Avatar
Lyzo Lyzo is offline
On vacation
Join Date: Mar 2007
Location: The Netherlands
Age: 22
Gender: Male
Nature: Bold
Posts: 252
Send a message via Windows Live Messenger to Lyzo
Ok, I'm not sure if this has anything to do with the script that I'm using, but it should work...

So, my problem is, I made a script where you see a poké ball, you click it, it shows a picture of a pokemon, asks if you want it yes/no. If no, then ok, choose another one, end script. When you press yes you go on, get the pokemon, fanfair, your rival picks a pokemon and then he leaves...

This all takes place in the lab, with an aid and your rival. Now, my problem is... that after you choose your pokemon, you can choose if you want to give it a name. When you press no the script runs fine and it works as it should. When you press yes the script also works fine... but at the end of the script you don't control the player but the lab assistant... Why's this?

I don't think the script is need... but I'm still posting it xD
Oh, and it's a level script.

#dynamic 0x800000

#org @Start
checkflag 0x828
if 0x1 goto @Done
showpokepic 0x8 0xA 0x3
msgbox @WantFreezpool 0x5
compare LASTRESULT 0x0
if 0x1 goto @No
msgbox @GoodChoice 0x4
hidesprite LASTTALKED
fanfare 0x13E
givepokemon 0x8 0x5 0x0 0x0 0x0 0x0
msgbox @GiveName 0x5
compare LASTRESULT 0x1
if 0x1 call @NameDoing
applymovement 0x5 @MoveRival
pause 0x50
msgbox @RivalPick 0x4
hidesprite 0x2
fanfare 0x13E
msgbox @FindQuick 0x6
applymovement 0x5 @MoveRival2
pause 0x70
hidesprite 0x5
setflag 0x828
setflag 0x500
setflag 0x201
setflag 0x203

#org @Done
msgbox @AlreadyHavePokemon 0x6

#org @No

#org @NameDoing
setvar 0x8004 0x0
call @NameDoing2

#org @NameDoing2
fadescreen 0x1
special 0x9E

#org @WantFreezpool
= [blue_fr]AID: FREEZPOOL, the WATER-TYPE\nPOKéMON!\pDo you want FREEZPOOL?

#org @GoodChoice
= [blue_fr]AID: I think that's a great choice,\n[player]!\p[player] received a FREEZPOOL!

#org @GiveName
= Would you like to give FREEZPOOL\na NICKNAME?

#org @RivalPick
= [blue_fr][rival]: Then I'll pick[.]\pThis one!\p[rival] received a SQUIBEEL!

#org @FindQuick
= [blue_fr]AID: Find him, quickly!\nPlease!\p[rival]: Sure!\pC'mon, [player]!\pLet's find him!

#org @AlreadyHavePokemon
= You already got your POKéMON!

#org @MoveRival
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0xFE

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

I'll try if it helps to do the name choosing later in the game...
But I'm still wondering why this happens, so if anyone has an answer please answer :D

Thank you The Blueprint !!!