Hi, I'm new here. I've been viewing this forum for quite a while though, without posting anything. I started making a hack for the RUBY US rom. Now I seem to have run into a scripting problem.
Quote:
#org $start
checkflag 0x800
if b_true goto $done
message $noway
boxset 6
applymovement 0x01 $push
applymovement 0xFF $pushed
pausemove 0
applymovement 0x01 $stepback
pausemove 0
release
end
#org $done
trainerbattle 0 0x001 $before $after
message $beaten
boxset 6
applymovement 0x01 $disappear
release
end
#org $noway
$noway =Woah, you're not getting passed me\nunless you beat me in a POKéMON battle.\pOh wait!\nYou don't have any POKéMON!\pGuess you're not leaving anytime soon!
#org $push
#raw 0x07 0xFE
#org $pushed
#raw 0x0F 0xFE
#org $stepback
#raw 0x06 0x03 0xFE
#org $before
$before =Woah, you're not getting passed me\nunless...\pWhat?\nYou're here to challenge me?\pAlright then,\nbring it on!
#org $after
$after =No way!
#org $beaten
$beaten =I underestimated you.\nYou won't beat me a second time!
#org $dissapear
#raw 0x0A 0x0A 0x0A 0x0A 0x54 0xFE
|
Ok, this scipt is supposed to stop the player from leaving the first town without a pokemon (obvious). When you do have a pokemon, the guy blocking the entrance will battle you and afterwards leave. Anyway, this works fine if I use the script on the person (so if you talk to your rival this script will start). However I want the script to start when you walk into the tile in front of him. I thought I could just place the script on the tile, but when you walk over that tile the game freezes. How can I fix this? (and any other problem with this script for that matter?)
PS: I checked many tut's and tried the search button but they weren't very helpfull, so I'm sorry if this has been asked before.