P3D-Legacy/P3D/Content/Data/Scripts/computer_choose.dat

45 lines
2.5 KiB
Plaintext

version=2
@storage.set(str,billspcname,Someone's PC)
:if:<register.registered(bill_encounter)>=true
@storage.set(str,billspcname,Bill's PC)
:endif
:if:<pokemon.counthalloffame>>0
@storage.set(str,computer_options,<storage.get(str,billspcname)>,Inbox,Prof. Oak's PC,Hall of Fame,Log off)
@options.setcancelindex(4)
:else
:if:<player.haspokedex>=true
@storage.set(str,computer_options,<storage.get(str,billspcname)>,Inbox,Prof. Oak's PC,Log off)
@options.setcancelindex(3)
:else
@storage.set(str,computer_options,<storage.get(str,billspcname)>,Inbox,Log off)
@options.setcancelindex(2)
:endif
:endif
@options.show(<storage.get(str,computer_options)>)
:when:<storage.get(str,billspcname)>
@sound.play(PC\LogOn)
@screen.storagesystem
@script.start(computer_choose)
:when:Inbox
@sound.play(PC\LogOn)
@screen.mailsystem
@script.start(computer_choose)
:when:Prof. Oak's PC
@sound.play(PC\LogOn)
@script.start(pallet\evaldist)
@text.show(Choose a host to~connect to.)
@script.start(computer_choose)
:when:Hall of Fame
@sound.play(PC\LogOn)
@screen.halloffame
@script.start(computer_choose)
:when:Log off
@sound.play(PC\TurnOff)
:endscript
:endwhen
:end