- 1
- Posts
- 7
- Years
- Seen Jul 5, 2020
I have a question.
1.Rom: Pokemon ash gray
2.From: Change pajamas.
I want to learn a script: how to change player sprite temporary.
script
'---------------
#org 0x8495F3
lockall
msgbox 0x884A8C0 MSG_YESNO '"It's your pajamas!\nWould you like..."
compare LASTRESULT 0x1
if 0x1 goto 0x884AA75
release
end
'---------------
#org 0x84AA75
msgbox 0x884AAB9 MSG_NORMAL '"[player] changed into his\npajamas..."
setflag 0x1166
setvar 0x4054 0x20F
compare PLAYERFACING 0x2
if 0x1 goto 0x884B7DB
compare PLAYERFACING 0x4
if 0x1 goto 0x884B787
goto 0x884B9CF
'---------------
#org 0x84B7DB
warpmuted 0x4 0x1 0xFF 0x3 0x3
waitstate
releaseall
end
'---------------
#org 0x84B787
warpmuted 0x4 0x1 0xFF 0x2 0x2
waitstate
releaseall
end
'---------------
#org 0x84B9CF
warpmuted 0x4 0x1 0xFF 0x4 0x2
waitstate
releaseall
end
'---------
' Strings
'---------
#org 0x84A8C0
= It's your pajamas!\nWould you like to change into\lthem?
#org 0x84AAB9
= [player] changed into his\npajamas.
please help me.
1.Rom: Pokemon ash gray
2.From: Change pajamas.
I want to learn a script: how to change player sprite temporary.
script
'---------------
#org 0x8495F3
lockall
msgbox 0x884A8C0 MSG_YESNO '"It's your pajamas!\nWould you like..."
compare LASTRESULT 0x1
if 0x1 goto 0x884AA75
release
end
'---------------
#org 0x84AA75
msgbox 0x884AAB9 MSG_NORMAL '"[player] changed into his\npajamas..."
setflag 0x1166
setvar 0x4054 0x20F
compare PLAYERFACING 0x2
if 0x1 goto 0x884B7DB
compare PLAYERFACING 0x4
if 0x1 goto 0x884B787
goto 0x884B9CF
'---------------
#org 0x84B7DB
warpmuted 0x4 0x1 0xFF 0x3 0x3
waitstate
releaseall
end
'---------------
#org 0x84B787
warpmuted 0x4 0x1 0xFF 0x2 0x2
waitstate
releaseall
end
'---------------
#org 0x84B9CF
warpmuted 0x4 0x1 0xFF 0x4 0x2
waitstate
releaseall
end
'---------
' Strings
'---------
#org 0x84A8C0
= It's your pajamas!\nWould you like to change into\lthem?
#org 0x84AAB9
= [player] changed into his\npajamas.
please help me.