okay so I have tried to search through the forum an google, but haven't found any similar problems. so I hoped someone could answear a problem here..
I am trying to change the whole starterpokemon event, and trying to give the player a pikachu, and the rival an eevee. I have 2 scripts, one on the pokeball, and another one at the entrance(where the bookselfs is in oaks lab).. giving ash and gary the pokemon works fine, and the battle also, however after the battle I want gary to leave, but which he dont. So I wondered if anyone could help me solve this?
here are the script for the pokeball:
#dynamic 0x3B9820
#org @start
lock
faceplayer
checkflag 0x7000
if 0x0 goto @ferdig
msgbox @janei 0x5
compare LASTRESULT 0x1
if 0x1 goto @pika
msgbox @enr 0x6
release
end
#org @pika
givepokemon 0x19 0x5 0x0 0x0 0x0 0x0
setflag 0x828
fanfare 0x13E
msgbox @trer 0x4
waitfanfare
closeonkeypress
setflag 0x7000
msgbox @pikanavn 0x5
compare LASTRESULT 0x1
if 0x1 gosub @navn
msgbox @firer 0x6
checkflag 0x7000
if 0x1 gosub @gary
release
end
#org @gary
applymovement 0x08 @move1
msgbox @garys 0x6
bufferpokemon 0x00 0x55
msgbox @1 0x4
waitfanfare
closeonkeypress
return
#org @navn
call 0x1A74EB
return
#org @ferdig
msgbox @femr 0x6
release
end
#org @janei
= Oh so you have chosen Chramander.\nIndeed, it is an awesome Pokémon,\lhowever there isn't any\lCharmanders left. Don't worry\lthough here is a pikachu.
#org @enr
= OK, I see..\n..well then, go ahead and choose\lanother one
#org @trer
= Congratulations! [] obtained\ncharmander
#org @pikanavn
= name pika?
#org @firer
= take care
#org @femr
= fo shizzle ma nizzle
#org @1
= me then?
#org @garys
= Gary obtained eevee
#org @move1
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE
the script for the trainerbattle:
#dynamic 0x71AABB
#org @start
checkflag 0x4001
if 0x1 goto @ferdig
checkflag 0x828
if 0x1 goto @gary
checkflag 0x4000
if 0x1 goto @oak
setflag 0x4000
end
#org @oak
msgbox @oakspeak 0x4
applymovement 0xFF @player1
closeonkeypress
end
#org @gary
setflag 0x4001
applymovement 0x08 @garymove
trainerbattle 0x0 0x146 0x0 @before @after
msgbox @garyafter 0x4
closeonkeypress
applymovement 0xFF @player2
waitmovement 0x0
applymovement 0x08 @garymove2
releaseall
end
#org @ferdig
end
#org @oakspeak
= Hey kiddo, come over here!
#org @player1
#raw 0x10
#raw 0xFE
#org @garymove
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE
#org @before
= Lets battle!
#org @after
= ahhh, MORRAKNNNNULLAAHH!!
#org @garyafter
= I'm heading for the pokemon league
#org @player2
#raw 0x10
#raw 0x12
#raw 0xFE
#org @garymove2
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x60
#raw 0xFE
I think that the error is in the second script, and again, the script works fine to after the battle, but after that he just dosent move.. would apreciate any help at all :) thanks!