- 4
- Posts
- 5
- Years
- Seen Feb 26, 2023
Me and a group are working on a rom hack and when I was attempting to make a custom portable pc item It continuously failed to work and I have no idea why. I probably have made a dumb mistake or something but if anybody can help that would be great.
Script for pc (works normally if put use it a signpost in Advance Map):
Also I have a screen shot of the item information (LSA - Complete Item Editor)
Thank you again
Script for pc (works normally if put use it a signpost in Advance Map):
Spoiler:
'---------------
#org 0x9D4748
lockall
fadescreen 0x1
checkflag 0x841
if 0x1 goto 0x81A698E
setvar 0x8004 0x1B
special 0x180
setvar 0x8004 0x0
sound 0x4
msgbox 0x81A5075 MSG_KEEPOPEN '"[player] booted up the PC."
goto 0x81A6998
'---------------
#org 0x1A698E
msgbox 0x81A1390 MSG_KEEPOPEN '"The usual PC services aren't\navai..."
fadescreen 0x1
preparemsg 0x81A508A '"Which PC should be accessed?"
waitmsg
special 0x109
waitstate
goto 0x81A69A8
'---------------
#org 0x1A6998
preparemsg 0x81A508A '"Which PC should be accessed?"
waitmsg
special 0x109
waitstate
goto 0x81A69A8
'---------------
#org 0x1A69A8
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81A6A05
compare 0x8000 0x1
if 0x1 goto 0x81A69F0
compare 0x8000 0x2
if 0x1 goto 0x81A6A7A
compare 0x8000 0x3
if 0x1 goto 0x81A6A56
compare 0x8000 0x4
if 0x1 goto 0x81A6A46
compare 0x8000 0x7F
if 0x1 goto 0x81A6A46
end
'---------------
#org 0x1A6A05
sound 0x2
checkflag 0x834
if 0x0 call 0x81A6A34
checkflag 0x834
if 0x1 call 0x81A6A3D
msgbox 0x81A50BE MSG_KEEPOPEN '"POKÉMON Storage System opened."
special 0x3F
waitstate
setvar 0x8004 0x1B
special 0x180
goto 0x81A6998
'---------------
#org 0x1A69F0
sound 0x2
msgbox 0x81A50DD MSG_KEEPOPEN '"Accessed [player]'s PC."
special 0xFD
waitstate
goto 0x81A6998
'---------------
#org 0x1A6A7A
checkflag 0x829
if 0x0 goto 0x81A6A46
sound 0x2
msgbox 0x81A5BC6 MSG_KEEPOPEN '"Accessed PROF. OAK's PC[.]\pAccess..."
msgbox 0x81A5C03 MSG_YESNO '"Would you like to have your\nPOKÉD..."
compare LASTRESULT 0x0
if 0x1 goto 0x81A6AB2
setflag 0x2FF
call 0x81A73E0
clearflag 0x2FF
goto 0x81A6AB2
'---------------
#org 0x1A6A56
checkflag 0x82C
if 0x0 goto 0x81A6A46
sound 0x2
setvar 0x8004 0x1F
special 0x181
special 0x180
special 0x10A
waitstate
special 0x181
goto 0x81A69A8
'---------------
#org 0x1A6A46
setvar 0x8004 0x0
sound 0x3
special 0x193
fadescreen 0x0
releaseall
end
'---------------
#org 0x1A6A34
msgbox 0x81A50A7 MSG_KEEPOPEN '"Accessed Someone's PC."
return
'---------------
#org 0x1A6A3D
msgbox 0x81A50EF MSG_KEEPOPEN '"Accessed BILL's PC."
return
'---------------
#org 0x1A6AB2
msgbox 0x81A5C2E MSG_KEEPOPEN '"Closed link to PROF. OAK's PC."
goto 0x81A6998
'---------------
#org 0x1A73E0
setvar 0x8004 0x1F
special 0x181
special 0x180
setvar 0x8004 0x0
special2 LASTRESULT 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
copyvar 0x800A LASTRESULT
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
msgbox 0x81A6CA3 MSG_KEEPOPEN '"The amount of progress you've made..."
checkflag 0x2FF
if 0x0 call 0x81A746D
call 0x81A73B6
compare 0x800A 0x0
if 0x1 goto 0x81A748F
setvar 0x8004 0x1
special2 LASTRESULT 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
msgbox 0x81A71AA MSG_KEEPOPEN '"And your NATIONAL POKÉDEX is:\p[bu..."
special2 LASTRESULT 0x1B0
compare LASTRESULT 0x0
if 0x1 goto 0x81A7470
compare LASTRESULT 0x1
if 0x1 goto 0x81A747E
fadescreen 0xC7
nop
return
'---------------
#org 0x1A746D
textcolor 0x0
return
'---------------
#org 0x1A73B6
copyvar 0x8004 0x8009
special 0xD8
waitmsg
doanimation 0x9
compare LASTRESULT 0x0
if 0x1 call 0x81A73D8
compare LASTRESULT 0x1
if 0x1 call 0x81A73DC
fanfare 0x13D
return
'---------------
#org 0x1A748F
special 0x182
return
'---------------
#org 0x1A7470
msgbox 0x81A71EE MSG_KEEPOPEN '"I'll be looking forward to seeing\..."
goto 0x81A748F
'---------------
#org 0x1A747E
setflag 0x2F4
msgbox 0x81A722F MSG_KEEPOPEN '"Finally[.]\pYou've finally complet..."
goto 0x81A748F
'---------------
#org 0x1A73D8
fanfare 0x13D
return
'---------------
#org 0x1A73DC
fanfare 0x103
return
'---------
' Strings
'---------
#org 0x1A5075
= [player] booted up the PC.
#org 0x1A1390
= The usual PC services aren't\navailable[.]
#org 0x1A508A
= Which PC should be accessed?
#org 0x1A50BE
= POKÉMON Storage System opened.
#org 0x1A50DD
= Accessed [player]'s PC.
#org 0x1A5BC6
= Accessed PROF. OAK's PC[.]\pAccessed the POKÉDEX Rating\nSystem[.]
#org 0x1A5C03
= Would you like to have your\nPOKÉDEX rated?
#org 0x1A50A7
= Accessed Someone's PC.
#org 0x1A50EF
= Accessed BILL's PC.
#org 0x1A5C2E
= Closed link to PROF. OAK's PC.
#org 0x1A6CA3
= The amount of progress you've made\non your POKÉDEX is:\p[buffer1] POKÉMON seen and\n[buffer2] POKÉMON owned.\p\c\h06?PROF. OAK's rating:
#org 0x1A71AA
= And your NATIONAL POKÉDEX is:\p[buffer1] POKÉMON seen and\n[buffer2] POKÉMON owned.
#org 0x1A71EE
= I'll be looking forward to seeing\nyou fill the NATIONAL POKÉDEX!
#org 0x1A722F
= Finally[.]\pYou've finally completed the\nPOKÉDEX!\pIt's magnificent!\nTruly, this is a fantastic feat!
#org 0x9D4748
lockall
fadescreen 0x1
checkflag 0x841
if 0x1 goto 0x81A698E
setvar 0x8004 0x1B
special 0x180
setvar 0x8004 0x0
sound 0x4
msgbox 0x81A5075 MSG_KEEPOPEN '"[player] booted up the PC."
goto 0x81A6998
'---------------
#org 0x1A698E
msgbox 0x81A1390 MSG_KEEPOPEN '"The usual PC services aren't\navai..."
fadescreen 0x1
preparemsg 0x81A508A '"Which PC should be accessed?"
waitmsg
special 0x109
waitstate
goto 0x81A69A8
'---------------
#org 0x1A6998
preparemsg 0x81A508A '"Which PC should be accessed?"
waitmsg
special 0x109
waitstate
goto 0x81A69A8
'---------------
#org 0x1A69A8
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81A6A05
compare 0x8000 0x1
if 0x1 goto 0x81A69F0
compare 0x8000 0x2
if 0x1 goto 0x81A6A7A
compare 0x8000 0x3
if 0x1 goto 0x81A6A56
compare 0x8000 0x4
if 0x1 goto 0x81A6A46
compare 0x8000 0x7F
if 0x1 goto 0x81A6A46
end
'---------------
#org 0x1A6A05
sound 0x2
checkflag 0x834
if 0x0 call 0x81A6A34
checkflag 0x834
if 0x1 call 0x81A6A3D
msgbox 0x81A50BE MSG_KEEPOPEN '"POKÉMON Storage System opened."
special 0x3F
waitstate
setvar 0x8004 0x1B
special 0x180
goto 0x81A6998
'---------------
#org 0x1A69F0
sound 0x2
msgbox 0x81A50DD MSG_KEEPOPEN '"Accessed [player]'s PC."
special 0xFD
waitstate
goto 0x81A6998
'---------------
#org 0x1A6A7A
checkflag 0x829
if 0x0 goto 0x81A6A46
sound 0x2
msgbox 0x81A5BC6 MSG_KEEPOPEN '"Accessed PROF. OAK's PC[.]\pAccess..."
msgbox 0x81A5C03 MSG_YESNO '"Would you like to have your\nPOKÉD..."
compare LASTRESULT 0x0
if 0x1 goto 0x81A6AB2
setflag 0x2FF
call 0x81A73E0
clearflag 0x2FF
goto 0x81A6AB2
'---------------
#org 0x1A6A56
checkflag 0x82C
if 0x0 goto 0x81A6A46
sound 0x2
setvar 0x8004 0x1F
special 0x181
special 0x180
special 0x10A
waitstate
special 0x181
goto 0x81A69A8
'---------------
#org 0x1A6A46
setvar 0x8004 0x0
sound 0x3
special 0x193
fadescreen 0x0
releaseall
end
'---------------
#org 0x1A6A34
msgbox 0x81A50A7 MSG_KEEPOPEN '"Accessed Someone's PC."
return
'---------------
#org 0x1A6A3D
msgbox 0x81A50EF MSG_KEEPOPEN '"Accessed BILL's PC."
return
'---------------
#org 0x1A6AB2
msgbox 0x81A5C2E MSG_KEEPOPEN '"Closed link to PROF. OAK's PC."
goto 0x81A6998
'---------------
#org 0x1A73E0
setvar 0x8004 0x1F
special 0x181
special 0x180
setvar 0x8004 0x0
special2 LASTRESULT 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
copyvar 0x800A LASTRESULT
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
msgbox 0x81A6CA3 MSG_KEEPOPEN '"The amount of progress you've made..."
checkflag 0x2FF
if 0x0 call 0x81A746D
call 0x81A73B6
compare 0x800A 0x0
if 0x1 goto 0x81A748F
setvar 0x8004 0x1
special2 LASTRESULT 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
msgbox 0x81A71AA MSG_KEEPOPEN '"And your NATIONAL POKÉDEX is:\p[bu..."
special2 LASTRESULT 0x1B0
compare LASTRESULT 0x0
if 0x1 goto 0x81A7470
compare LASTRESULT 0x1
if 0x1 goto 0x81A747E
fadescreen 0xC7
nop
return
'---------------
#org 0x1A746D
textcolor 0x0
return
'---------------
#org 0x1A73B6
copyvar 0x8004 0x8009
special 0xD8
waitmsg
doanimation 0x9
compare LASTRESULT 0x0
if 0x1 call 0x81A73D8
compare LASTRESULT 0x1
if 0x1 call 0x81A73DC
fanfare 0x13D
return
'---------------
#org 0x1A748F
special 0x182
return
'---------------
#org 0x1A7470
msgbox 0x81A71EE MSG_KEEPOPEN '"I'll be looking forward to seeing\..."
goto 0x81A748F
'---------------
#org 0x1A747E
setflag 0x2F4
msgbox 0x81A722F MSG_KEEPOPEN '"Finally[.]\pYou've finally complet..."
goto 0x81A748F
'---------------
#org 0x1A73D8
fanfare 0x13D
return
'---------------
#org 0x1A73DC
fanfare 0x103
return
'---------
' Strings
'---------
#org 0x1A5075
= [player] booted up the PC.
#org 0x1A1390
= The usual PC services aren't\navailable[.]
#org 0x1A508A
= Which PC should be accessed?
#org 0x1A50BE
= POKÉMON Storage System opened.
#org 0x1A50DD
= Accessed [player]'s PC.
#org 0x1A5BC6
= Accessed PROF. OAK's PC[.]\pAccessed the POKÉDEX Rating\nSystem[.]
#org 0x1A5C03
= Would you like to have your\nPOKÉDEX rated?
#org 0x1A50A7
= Accessed Someone's PC.
#org 0x1A50EF
= Accessed BILL's PC.
#org 0x1A5C2E
= Closed link to PROF. OAK's PC.
#org 0x1A6CA3
= The amount of progress you've made\non your POKÉDEX is:\p[buffer1] POKÉMON seen and\n[buffer2] POKÉMON owned.\p\c\h06?PROF. OAK's rating:
#org 0x1A71AA
= And your NATIONAL POKÉDEX is:\p[buffer1] POKÉMON seen and\n[buffer2] POKÉMON owned.
#org 0x1A71EE
= I'll be looking forward to seeing\nyou fill the NATIONAL POKÉDEX!
#org 0x1A722F
= Finally[.]\pYou've finally completed the\nPOKÉDEX!\pIt's magnificent!\nTruly, this is a fantastic feat!
Also I have a screen shot of the item information (LSA - Complete Item Editor)
Thank you again