Megiddo-san
Barium - Summer '12 Return?
- 1,308
- Posts
- 17
- Years
- Age 33
- Where you least expect it
- Seen Feb 15, 2016
Ah, somewhere in the docs and tuts section there's a tut on how to fix that.
Uh...What's the flag for the National Dex?
And, if there is one, the Oak's Parcel one?
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?)#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
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.
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.
Hmm...You don't. You can use giveitem scripts to do so. But you need the required badge for the HM to work.How do you use flags to activate HM's.
hello the4x...
i've been resding your tutorial for a long time but...
the thing that i dont understand in scripting is setvars,addvar,copyvar,callasm
can u explain it to me...
thnx in advance...
hmm...
is there a npc in firered that uses setvars/add/copy/callasm...
i really cant understand their uses