ExitWound
Boggle
- 79
- Posts
- 17
- Years
- Seen Sep 22, 2016
Hey I'm working on a hack for Pokemon Sapphire and I'm having some problems. The script works fine except when he's supposed to move toward you and sends you back. Here is my script:
The script's var number is already 5240 so that isn't it.
Spoiler:
#dynamic 0x800089
#org @start
checkflag 1500
if b_true goto @nevermind
msgbox @begin 0x6
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if b_true goto @getbulb
msgbox @charmander 0x5
compare LASTRESULT 0x1
if b_true goto @getchar
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if b_true goto @getsquirt
msgbox @cant 0x6
applymovement 0x2 @moveman
applymovement 0xFF @sendback
release
end
#org @nevermind
release
end
#org @begin
= Hello there, young traveler!\nI see that you're new here, aren't you?\pThat's quite alright.\nEverybody was a newbie at some point.\lEven me!\pBut enough with this idle chatter.\nToday, you will recieve your first\lPOKéMON!\pIt's exciting, I know\pFor I was once in your shoes...\nAhh.....\lThe glory days...\p... ... ... ... ... ... ... ...\pOh!\pI've been daydreaming a lot lately...\nBut anywho... on to business!
#org @bulbasaur
= Will you take BULBASAUR, the leaf\nPOKéMON?
#org @getbulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotbulb 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 1000
release
end
#org @charmander
= Will you take CHARMANDER, the fire\nPOKéMON?
#org @getchar
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotchar 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 1000
release
end
#org @squirtle
= Will you take SQUIRTLE, the water\nPOKéMON?
#org @getsquirt
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotsquirt 0x6
msgbox @meetagain 0x6
fadescreen 0x0
hidesprite 0x2
setflag 1500
release
end
#org @gotbulb
= [red_rs]You recieved a BULBASAUR!
#org @gotchar
= [red_rs]You recieved a CHARMANDER!
#org @gotsquirt
= [red_rs]You recieved a SQUIRTLE!
#org @meetagain
= Now go, young adventurer!\nGo into the world and show them\lhow great you are!!
#org @cant
= As long as I am here, you may not pass\nwithout a POKéMON.
#org @moveman
#raw 0x07 0x06 0x03 0xFE
#org @sendback
#raw 0x04 0xFE
#org @start
checkflag 1500
if b_true goto @nevermind
msgbox @begin 0x6
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if b_true goto @getbulb
msgbox @charmander 0x5
compare LASTRESULT 0x1
if b_true goto @getchar
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if b_true goto @getsquirt
msgbox @cant 0x6
applymovement 0x2 @moveman
applymovement 0xFF @sendback
release
end
#org @nevermind
release
end
#org @begin
= Hello there, young traveler!\nI see that you're new here, aren't you?\pThat's quite alright.\nEverybody was a newbie at some point.\lEven me!\pBut enough with this idle chatter.\nToday, you will recieve your first\lPOKéMON!\pIt's exciting, I know\pFor I was once in your shoes...\nAhh.....\lThe glory days...\p... ... ... ... ... ... ... ...\pOh!\pI've been daydreaming a lot lately...\nBut anywho... on to business!
#org @bulbasaur
= Will you take BULBASAUR, the leaf\nPOKéMON?
#org @getbulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotbulb 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 1000
release
end
#org @charmander
= Will you take CHARMANDER, the fire\nPOKéMON?
#org @getchar
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotchar 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 1000
release
end
#org @squirtle
= Will you take SQUIRTLE, the water\nPOKéMON?
#org @getsquirt
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotsquirt 0x6
msgbox @meetagain 0x6
fadescreen 0x0
hidesprite 0x2
setflag 1500
release
end
#org @gotbulb
= [red_rs]You recieved a BULBASAUR!
#org @gotchar
= [red_rs]You recieved a CHARMANDER!
#org @gotsquirt
= [red_rs]You recieved a SQUIRTLE!
#org @meetagain
= Now go, young adventurer!\nGo into the world and show them\lhow great you are!!
#org @cant
= As long as I am here, you may not pass\nwithout a POKéMON.
#org @moveman
#raw 0x07 0x06 0x03 0xFE
#org @sendback
#raw 0x04 0xFE
The script's var number is already 5240 so that isn't it.