View Single Post
Old June 8th, 2009 (9:10 PM).
Gamer2020's Avatar
Accept no Imitations!
Join Date: Jun 2008
Location: Distant Land
Gender: Male
Nature: Bold
Posts: 866
Send a message via Skype™ to Gamer2020
Hey guys. I have a problem.
Basically I wrote a script so that when the player steps on a certain spot a sprites goes up to him and battles him.
It works up until after the battle where it just plain goes sour.
Ive attached a small video to show you what happens.

This is the script
#dynamic 800000

#org @start
checkflag 0x1005
if 0x1 call @done
call @pre
applymovement 0x01 @move1
waitmovement 0x0
sethealingplace 0x6
setflag 0x1005
trainerbattle 0x1 0x237 0x0 @before @after @run

#org @pre
applymovement 0x01 @move3
msgbox @stuff 0x2

#org @run
msgbox @text 0x2
applymovement 0x01 @move2
waitmovement 0x0
hidesprite 0x01
setflag 0x1005

#org @done

#org @move1
#raw 0x56
#raw 0x09
#raw 0x0A
#raw 0x02
#raw 0xFE

#org @move2
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0xFE

#org @move3
#raw 0x00
#raw 0xFE

#org @before
= How much did you hear?

#org @after
= Didn't think you'd be that strong.

#org @text
= Bye now!

#org @stuff
= They're are Whirlpools blocking\nthe entrances sir.

This is the amap stuff for the sprite

and this is the amap stuff for the script tile.

I think I am just overlooking something so please if you know what I did wrong please tell me.
Attached Files
File Type: zip‎ (147.7 KB, 10 views) (Save to Dropbox)

Pokemon Game Editor Download!
Accept no imitations!