View Single Post
Old June 9th, 2009 (2:30 PM).
Gamer2020's Avatar
Gamer2020 Gamer2020 is offline
Accept no Imitations!
Join Date: Jun 2008
Location: Distant Land
Gender: Male
Nature: Bold
Posts: 871
Send a message via Skype™ to Gamer2020
Originally Posted by Gamer2020 View Post
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.
Someone please help. I know I must be overlooking something.
The problem is just after the battle when the trainer is supossed to walk away. I had it working before but idk what I changed.

Originally Posted by Quickster View Post
Im not sure,but you might need a waitmovment in the #org @pre
also the number should be 0003 and 4050 on a green script tile.
No thats not it...
If I do that then the script tile won't do anything.

Originally Posted by Larsie13 View Post
O_O #dynamic 800000? That's the same as #dynamic 0xC3500! You forgot the 0x. Try to remember that it can make quite a big difference forgetting the 0x or not.
That's not it either. I tried it just in case but I doubt it would matter where the script is.

Pokemon Game Editor Download!
Accept no imitations!