- 6
- Posts
- 9
- Years
- Seen May 20, 2016
I know it is possible because in Ash gray (Awesome game btw played completely through ;))
I checked the game's script and here is what is shows
#org 0x84B19E
preparemsg 0x884B296 '"[player] changed from his pajamas\..."
waitmsg
setvar 0x406C 0x1
setflag 0x82F
setvar 0x4054 0x200
getplayerpos 0x4000 0x4001
compare 0x4001 0x18
if 0x1 goto 0x884B2DC
compare 0x4001 0x19
if 0x1 goto 0x884B2D0
release
end
I thought I finally understood setvar and compare but I feel like that is where I am missing what changes the clothes... if anyone is so kind enough to help I would appreciate it.
(Full script in case you want to look at it.):(
I checked the game's script and here is what is shows
#org 0x84B19E
preparemsg 0x884B296 '"[player] changed from his pajamas\..."
waitmsg
setvar 0x406C 0x1
setflag 0x82F
setvar 0x4054 0x200
getplayerpos 0x4000 0x4001
compare 0x4001 0x18
if 0x1 goto 0x884B2DC
compare 0x4001 0x19
if 0x1 goto 0x884B2D0
release
end
I thought I finally understood setvar and compare but I feel like that is where I am missing what changes the clothes... if anyone is so kind enough to help I would appreciate it.
(Full script in case you want to look at it.):(
Spoiler:
'---------------
#org 0x820678
lockall
countpokemon
compare LASTRESULT 0x1
if 0x0 call 0x8820699
checkflag 0x7
if 0x1 call 0x8820699
goto 0x882268A
'---------------
#org 0x820699
releaseall
end
'---------------
#org 0x82268A
sound 0x15
applymovement MOVE_PLAYER 0x8822A38
waitmovement 0x0
goto 0x882069C
'---------------
#org 0x82069C
textcolor 0x1
msgbox 0x8820760 MSG_FACE '"[player]!\nI'm glad I caught you!\..."
call 0x882269C
msgbox 0x8820869 MSG_KEEPOPEN '"[player] switched shoes with the\n..."
msgbox 0x8820895 MSG_KEEPOPEN '"Press the B Button to run.\nBut on..."
textcolor 0x1
msgbox 0x88208D6 MSG_KEEPOPEN '"And a TOWN MAP[.]\nand a handy FAM..."
closeonkeypress
loadpointer 0x0 0x8820902 '"[player] received the MAP and FAME..."
additem 0x16B 0x1
loadpointer 0x1 0x88208D6
additem 0x169 0x1
giveitem2 0x16B 0x1 0x13E
setflag 0x2C
sound 0xF
showsprite 0x9
textcolor 0x1
msgbox 0x8820933 MSG_KEEPOPEN '"Hm? That's your POKéMON?\pI though..."
applymovement 0x9 0x8818AD2
waitmovement 0x9
cry 0x19 0x0
waitcry
msgbox 0x8818AD5 MSG_KEEPOPEN '"Hm, oh well! Good luck, [player]!\..."
closeonkeypress
hidesprite 0x9
sound 0xF
applymovement 0x3 0x880859D
waitmovement 0x3
hidesprite 0x3
setflag 0x1066
goto 0x884B19E
'---------------
#org 0x82269C
textcolor 0x3
fanfare 0x13E
preparemsg 0x882083F '"[player] received the\nRUNNING SHO..."
waitmsg
waitfanfare
return
'---------------
#org 0x84B19E
preparemsg 0x884B296 '"[player] changed from his pajamas\..."
waitmsg
setvar 0x406C 0x1
setflag 0x82F
setvar 0x4054 0x200
getplayerpos 0x4000 0x4001
compare 0x4001 0x18
if 0x1 goto 0x884B2DC
compare 0x4001 0x19
if 0x1 goto 0x884B2D0
release
end
'---------------
#org 0x84B2DC
warpmuted 0x3 0x42 0xFF 0x10 0x18
waitstate
releaseall
end
'---------------
#org 0x84B2D0
warpmuted 0x3 0x42 0xFF 0x11 0x19
waitstate
releaseall
end
'---------
' Strings
'---------
#org 0x820760
= [player]!\nI'm glad I caught you!\pI'm so proud of you!\nYou're finally fulfilling your dream!\pYou're starting your journey as a\ntrainer!\pBut I'll miss you so much!\pI brought you some traveling items.\nThere's your running shoes [.]
#org 0x820869
= [player] switched shoes with the\nRUNNING SHOES.
#org 0x820895
= Press the B Button to run.\nBut only where there's room to run!
#org 0x8208D6
= And a TOWN MAP[.]\nand a handy FAME CHECKER!
#org 0x820902
= [player] received the MAP and FAME\nCHECKER from MOM!
#org 0x820933
= Hm? That's your POKéMON?\pI thought all POKéMON stayed\ninside their POKé BALLS.\pWhy doesn't this one?\nIt's a little weird [.]
#org 0x818AD5
= Hm, oh well! Good luck, [player]!\pAnd don't forget to change your\nunderwear [.] every day!\p[player], I know you have to get going.\nI love you!
#org 0x82083F
= [player] received the\nRUNNING SHOES from MOM.
#org 0x84B296
= [player] changed from his pajamas\ninto his traveling clothes.
'-----------
' Movements
'-----------
#org 0x822A38
#raw 0x62 'Exclamation Mark (!)
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements
#org 0x818AD2
#raw 0x0 'Face Down
#raw 0x64 'Cross (X)
#raw 0xFE 'End of Movements
#org 0x80859D
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements
#org 0x820678
lockall
countpokemon
compare LASTRESULT 0x1
if 0x0 call 0x8820699
checkflag 0x7
if 0x1 call 0x8820699
goto 0x882268A
'---------------
#org 0x820699
releaseall
end
'---------------
#org 0x82268A
sound 0x15
applymovement MOVE_PLAYER 0x8822A38
waitmovement 0x0
goto 0x882069C
'---------------
#org 0x82069C
textcolor 0x1
msgbox 0x8820760 MSG_FACE '"[player]!\nI'm glad I caught you!\..."
call 0x882269C
msgbox 0x8820869 MSG_KEEPOPEN '"[player] switched shoes with the\n..."
msgbox 0x8820895 MSG_KEEPOPEN '"Press the B Button to run.\nBut on..."
textcolor 0x1
msgbox 0x88208D6 MSG_KEEPOPEN '"And a TOWN MAP[.]\nand a handy FAM..."
closeonkeypress
loadpointer 0x0 0x8820902 '"[player] received the MAP and FAME..."
additem 0x16B 0x1
loadpointer 0x1 0x88208D6
additem 0x169 0x1
giveitem2 0x16B 0x1 0x13E
setflag 0x2C
sound 0xF
showsprite 0x9
textcolor 0x1
msgbox 0x8820933 MSG_KEEPOPEN '"Hm? That's your POKéMON?\pI though..."
applymovement 0x9 0x8818AD2
waitmovement 0x9
cry 0x19 0x0
waitcry
msgbox 0x8818AD5 MSG_KEEPOPEN '"Hm, oh well! Good luck, [player]!\..."
closeonkeypress
hidesprite 0x9
sound 0xF
applymovement 0x3 0x880859D
waitmovement 0x3
hidesprite 0x3
setflag 0x1066
goto 0x884B19E
'---------------
#org 0x82269C
textcolor 0x3
fanfare 0x13E
preparemsg 0x882083F '"[player] received the\nRUNNING SHO..."
waitmsg
waitfanfare
return
'---------------
#org 0x84B19E
preparemsg 0x884B296 '"[player] changed from his pajamas\..."
waitmsg
setvar 0x406C 0x1
setflag 0x82F
setvar 0x4054 0x200
getplayerpos 0x4000 0x4001
compare 0x4001 0x18
if 0x1 goto 0x884B2DC
compare 0x4001 0x19
if 0x1 goto 0x884B2D0
release
end
'---------------
#org 0x84B2DC
warpmuted 0x3 0x42 0xFF 0x10 0x18
waitstate
releaseall
end
'---------------
#org 0x84B2D0
warpmuted 0x3 0x42 0xFF 0x11 0x19
waitstate
releaseall
end
'---------
' Strings
'---------
#org 0x820760
= [player]!\nI'm glad I caught you!\pI'm so proud of you!\nYou're finally fulfilling your dream!\pYou're starting your journey as a\ntrainer!\pBut I'll miss you so much!\pI brought you some traveling items.\nThere's your running shoes [.]
#org 0x820869
= [player] switched shoes with the\nRUNNING SHOES.
#org 0x820895
= Press the B Button to run.\nBut only where there's room to run!
#org 0x8208D6
= And a TOWN MAP[.]\nand a handy FAME CHECKER!
#org 0x820902
= [player] received the MAP and FAME\nCHECKER from MOM!
#org 0x820933
= Hm? That's your POKéMON?\pI thought all POKéMON stayed\ninside their POKé BALLS.\pWhy doesn't this one?\nIt's a little weird [.]
#org 0x818AD5
= Hm, oh well! Good luck, [player]!\pAnd don't forget to change your\nunderwear [.] every day!\p[player], I know you have to get going.\nI love you!
#org 0x82083F
= [player] received the\nRUNNING SHOES from MOM.
#org 0x84B296
= [player] changed from his pajamas\ninto his traveling clothes.
'-----------
' Movements
'-----------
#org 0x822A38
#raw 0x62 'Exclamation Mark (!)
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements
#org 0x818AD2
#raw 0x0 'Face Down
#raw 0x64 'Cross (X)
#raw 0xFE 'End of Movements
#org 0x80859D
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements