- 8
- Posts
- 10
- Years
- Seen Aug 17, 2014
Hey all, new member here so not sure if this is in the right place.
Anyways, down to business. I made a script for my starting town where Oak stops you from going outside (yeah, shocker) and takes you back to his lab. While testing it, everything ran perfectly, except at the end. Once the script reached it's end, it began to spit out random characters like the picture attached. It also never stops, just keeps on going and going forever. Here is my code:
Also, @parttwo doesn't start until you enter Oak's lab. Rather than writing two scripts, I added a check at the beginning so once he takes you into his lab the script starts again and then goes to the second half.
Can anyone help me fix this? I literally have no idea what is causing it as everything else works fine.
Anyways, down to business. I made a script for my starting town where Oak stops you from going outside (yeah, shocker) and takes you back to his lab. While testing it, everything ran perfectly, except at the end. Once the script reached it's end, it began to spit out random characters like the picture attached. It also never stops, just keeps on going and going forever. Here is my code:
Also, @parttwo doesn't start until you enter Oak's lab. Rather than writing two scripts, I added a check at the beginning so once he takes you into his lab the script starts again and then goes to the second half.
Code:
#dynamic 0x80E48F
#org @check
checkflag 0x1301
if 0x00 goto @start
if 0x01 goto @parttwo
#org @start
msgbox @hey 0x6
applymovement 0xFF @omg
waitmovement 0x0
clearflag 0x1300
applymovement 3 @oakup
waitmovement 0x0
msgbox @wait 0x6
applymovement 3 @lab
applymovement 0xFF @lab
waitmovement 0x0
setflag 0x1301
warp 0x4 0x3 0x0 0x06 0x0C
release
end
#org @parttwo
applymovement 6 @walk
applymovement 0xFF @walk
waitmovement 0x0
applymovement 6 @facedown
waitmovement 0x0
msgbox @now 0x6
msgbox @will 0x5
compare LASTRESULT 1
if b_true goto @yes
compare LASTRESULT 0
if b_true goto @no
#org @no
msgbox @hmm 0x6
msgbox @will 0x5
compare LASTRESULT 1
if b_true goto @yes
compare LASTRESULT 0
if b_true goto @no
#org @yes
msgbox @splendid 0x6
setvar 0x6015 0x0001
end
#org @hey
= ???: Hey, \v\h01!
#org @omg
#raw 0x62 0x04 0xFE
#org @oakup
#raw 0x11 0x11 0x11 0x11 0x11 0xFE
#org @wait
= PROF OAK: Wait!\nIt's not safe to enter that cave\lwithout a Pokémon!\pI know, come with me!
#org @lab
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x12 0x12 0x12 0x12 0x12 0x12 0x11 0xFE
#org @walk
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
#org @facedown
#raw 0x04 0xFE
#org @splendid
= Splendid! Now, as I mentioned\nbefore, Fuji's research center is\lin WISTERA CITY, just north of\lGLACIOUS FALLS. You can't miss it!\pIn order to make your way there,\nyou'll need a Pokémon to protect\lyourself for crossing through MT.\lTAUPE.\pGo ahead, pick one!
#org @hmm
= ...\p...\pI'm a very patient man \v\h01.\pI can stand here all day if that's\nwhat it'll take.
#org @will
= Will you go to WISTERIA CITY in my\nplace \v\h01?
#org @now
= Sorry if I alarmed you back there!\nSo \v\h01, you're probably\lwondering why I brought you here.\pAn old friend of mine, Dr. Fuji\nbelieves that he has discovered a\lnew species of Pokémon!\pAs much as I would like to go and\ncheck it out for myself, I'm way\lbehind on my research as it is, and\lmy lab isn't even set up yet.
Can anyone help me fix this? I literally have no idea what is causing it as everything else works fine.