destinedjagold
Oh Hai Thar.
- 8,594
- Posts
- 17
- Years
- Stinky/Old/Fart
- On your ceiling...
- Seen Apr 17, 2025
Okay, so here's my problem: This whole script works perfectly fine, I mean, it's not exactly complicated, but it looks like it never sets the flag to warp you into the ship... any help appreciated!
Spoiler:#dynamic 0x74009B
#org @start
checkflag 0x1000
if 0x1 goto @done
checkgender
compare 0x800D 0x0
if 0x1 goto @solar
compare 0x800D 0x1
if 0x1 goto @arial
setflag 0x1000
end
#org @solar
msgbox @1 0x3
msgbox @3 0x4
closeonkeypress
end
#org @arial
msgbox @2 0x3
msgbox @3 0x4
closeonkeypress
end
#org @done
warp 0x1 0x5 0x7 0x0 0x0
end
#org @1
= Hello! Welcome aboard the U.S.S.\nFirefly!\pYou may have noticed that your\lPOK\h1BMON have disappeared!\pWell, there is a\lvery good reason for this. We\lare TEAM SOLAR, and we have\lstolen your POK\h1BMON!\pWe hope you won't miss them,\lthank you for your donation!
#org @2
= Hello! Welcome aboard the U.S.S.\nFirefly!\pYou may have noticed that your\lPOK\h1BMON have disappeared!\pWell, there is a\lvery good reason for this. We\lare TEAM ARIAL, and we have\lstolen your POK\h1BMON!\pWe hope you won't miss them,\lthank you for your donation!
#org @3
= What?!?\pThey stole my POK\hB1MON?\lI can't believe this!\lI guess I'll have to hope that\lthere are some POK\hB1MON on board\lthat I can borrow until I get my\lold ones back.
That is because your script jumped to the other addresses of your code. Your script is unable to reach your "setflag" command because you used "goto", meaning, it'll not return anymore.
I suggest you try this one...
Code:
#dynamic 0x74009B
#org @start
checkflag 0x1000
if 0x1 goto @done
checkgender
compare 0x800D 0x0
if 0x1 [COLOR="red"]call[/COLOR] @solar
compare 0x800D 0x1
if 0x1 [COLOR="red"]call[/COLOR] @arial
setflag 0x1000
end
#org @solar
msgbox @1 0x3
msgbox @3 0x4
closeonkeypress
[COLOR="red"]return[/COLOR]
#org @arial
msgbox @2 0x3
msgbox @3 0x4
closeonkeypress
[COLOR="Red"]return[/COLOR]
#org @done
warp 0x1 0x5 0x7 0x0 0x0
end
#org @1
= Hello! Welcome aboard the U.S.S.\nFirefly!\pYou may have noticed that your\lPOK\h1BMON have disappeared!\pWell, there is a\lvery good reason for this. We\lare TEAM SOLAR, and we have\lstolen your POK\h1BMON!\pWe hope you won't miss them,\lthank you for your donation!
#org @2
= Hello! Welcome aboard the U.S.S.\nFirefly!\pYou may have noticed that your\lPOK\h1BMON have disappeared!\pWell, there is a\lvery good reason for this. We\lare TEAM ARIAL, and we have\lstolen your POK\h1BMON!\pWe hope you won't miss them,\lthank you for your donation!
#org @3
= What?!?\pThey stole my POK\hB1MON?\lI can't believe this!\lI guess I'll have to hope that\lthere are some POK\hB1MON on board\lthat I can borrow until I get my\lold ones back.