Document Silph Co scripts
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": 0,
|
||||
"trainer_sight_or_berry_tree_id": 0,
|
||||
"script": "SilphCo_11F_EventScript_161DFE",
|
||||
"script": "SilphCo_11F_EventScript_President",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
@@ -36,7 +36,7 @@
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": 0,
|
||||
"trainer_sight_or_berry_tree_id": 0,
|
||||
"script": "SilphCo_11F_EventScript_161E7F",
|
||||
"script": "SilphCo_11F_EventScript_Secretary",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
@@ -62,7 +62,7 @@
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": 1,
|
||||
"trainer_sight_or_berry_tree_id": 5,
|
||||
"script": "SilphCo_11F_EventScript_161F40",
|
||||
"script": "SilphCo_11F_EventScript_Grunt1",
|
||||
"flag": "FLAG_HIDE_SILPH_ROCKETS"
|
||||
},
|
||||
{
|
||||
@@ -88,7 +88,7 @@
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": 1,
|
||||
"trainer_sight_or_berry_tree_id": 5,
|
||||
"script": "SilphCo_11F_EventScript_161F57",
|
||||
"script": "SilphCo_11F_EventScript_Grunt2",
|
||||
"flag": "FLAG_HIDE_SILPH_ROCKETS"
|
||||
}
|
||||
],
|
||||
@@ -123,7 +123,7 @@
|
||||
"elevation": 3,
|
||||
"var": "VAR_MAP_SCENE_SILPH_CO_11F",
|
||||
"var_value": 0,
|
||||
"script": "SilphCo_11F_EventScript_161E88"
|
||||
"script": "SilphCo_11F_EventScript_GiovanniTriggerLeft"
|
||||
},
|
||||
{
|
||||
"type": "trigger",
|
||||
@@ -132,7 +132,7 @@
|
||||
"elevation": 3,
|
||||
"var": "VAR_MAP_SCENE_SILPH_CO_11F",
|
||||
"var_value": 0,
|
||||
"script": "SilphCo_11F_EventScript_161E94"
|
||||
"script": "SilphCo_11F_EventScript_GiovanniTriggerRight"
|
||||
}
|
||||
],
|
||||
"bg_events": [
|
||||
@@ -179,7 +179,7 @@
|
||||
"x": 8,
|
||||
"y": 1,
|
||||
"elevation": 0,
|
||||
"script": "SilphCo_11F_EventScript_161F37"
|
||||
"script": "SilphCo_11F_EventScript_FloorSign"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -6,76 +6,72 @@ SilphCo_11F_OnLoad:: @ 8161DF4
|
||||
call_if_unset FLAG_SILPH_11F_DOOR, EventScript_Close11FDoor
|
||||
end
|
||||
|
||||
SilphCo_11F_EventScript_161DFE:: @ 8161DFE
|
||||
SilphCo_11F_EventScript_President:: @ 8161DFE
|
||||
lock
|
||||
faceplayer
|
||||
goto_if_set FLAG_GOT_MASTER_BALL_FROM_SILPH, EventScript_161E75
|
||||
goto_if_set FLAG_GOT_MASTER_BALL_FROM_SILPH, SilphCo_11F_EventScript_AlreadyGotMasterBall
|
||||
checkplayergender
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq EventScript_161E59
|
||||
call_if_eq SilphCo_11F_EventScript_PresidentThanksMale
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq EventScript_161E62
|
||||
call_if_eq SilphCo_11F_EventScript_PresidentThanksFemale
|
||||
checkitemspace ITEM_MASTER_BALL, 1
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq EventScript_161E6B
|
||||
giveitem_msg gUnknown_8176FBD, ITEM_MASTER_BALL, 1, MUS_FAN5
|
||||
msgbox gUnknown_8176FEB
|
||||
goto_if_eq SilphCo_11F_EventScript_NoRoomForMasterBall
|
||||
giveitem_msg SilphCo_11F_Text_ObtainedMasterBallFromPresident, ITEM_MASTER_BALL, 1, MUS_FAN5
|
||||
msgbox SilphCo_11F_Text_ThatsOurSecretPrototype
|
||||
setflag FLAG_GOT_MASTER_BALL_FROM_SILPH
|
||||
release
|
||||
end
|
||||
|
||||
EventScript_161E59:: @ 8161E59
|
||||
msgbox gUnknown_8176E12
|
||||
SilphCo_11F_EventScript_PresidentThanksMale:: @ 8161E59
|
||||
msgbox SilphCo_11F_Text_ThanksForSavingMeDearBoy
|
||||
return
|
||||
|
||||
EventScript_161E62:: @ 8161E62
|
||||
msgbox gUnknown_8176EE7
|
||||
SilphCo_11F_EventScript_PresidentThanksFemale:: @ 8161E62
|
||||
msgbox SilphCo_11F_Text_ThanksForSavingMeDearGirl
|
||||
return
|
||||
|
||||
EventScript_161E6B:: @ 8161E6B
|
||||
msgbox gUnknown_817708E
|
||||
SilphCo_11F_EventScript_NoRoomForMasterBall:: @ 8161E6B
|
||||
msgbox SilphCo_11F_Text_YouHaveNoRoomForThis
|
||||
release
|
||||
end
|
||||
|
||||
EventScript_161E75:: @ 8161E75
|
||||
msgbox gUnknown_8176FEB
|
||||
SilphCo_11F_EventScript_AlreadyGotMasterBall:: @ 8161E75
|
||||
msgbox SilphCo_11F_Text_ThatsOurSecretPrototype
|
||||
release
|
||||
end
|
||||
|
||||
SilphCo_11F_EventScript_161E7F:: @ 8161E7F
|
||||
msgbox gUnknown_81770A9, MSGBOX_NPC
|
||||
SilphCo_11F_EventScript_Secretary:: @ 8161E7F
|
||||
msgbox SilphCo_11F_Text_ThanksForRescuingUs, MSGBOX_NPC
|
||||
end
|
||||
|
||||
SilphCo_11F_EventScript_161E88:: @ 8161E88
|
||||
SilphCo_11F_EventScript_GiovanniTriggerLeft:: @ 8161E88
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 0
|
||||
goto EventScript_161EA0
|
||||
|
||||
EventScript_161E93:: @ 8161E93
|
||||
goto SilphCo_11F_EventScript_BattleGiovanni
|
||||
end
|
||||
|
||||
SilphCo_11F_EventScript_161E94:: @ 8161E94
|
||||
SilphCo_11F_EventScript_GiovanniTriggerRight:: @ 8161E94
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 1
|
||||
goto EventScript_161EA0
|
||||
|
||||
EventScript_161E9F:: @ 8161E9F
|
||||
goto SilphCo_11F_EventScript_BattleGiovanni
|
||||
end
|
||||
|
||||
EventScript_161EA0:: @ 8161EA0
|
||||
SilphCo_11F_EventScript_BattleGiovanni:: @ 8161EA0
|
||||
textcolor 0
|
||||
applymovement 3, Movement_WalkInPlaceFastestDown
|
||||
waitmovement 0
|
||||
delay 25
|
||||
msgbox gUnknown_8177108
|
||||
msgbox SilphCo_11F_Text_GiovanniIntro
|
||||
closemessage
|
||||
compare VAR_TEMP_1, 0
|
||||
call_if_eq EventScript_161F00
|
||||
call_if_eq SilphCo_11F_EventScript_GiovanniApproachLeft
|
||||
compare VAR_TEMP_1, 1
|
||||
call_if_eq EventScript_161F12
|
||||
call_if_eq SilphCo_11F_EventScript_GiovanniApproachRight
|
||||
setvar VAR_LAST_TALKED, 3
|
||||
trainerbattle_no_intro TRAINER_BOSS_GIOVANNI_2, Text_1771AB
|
||||
msgbox gUnknown_81771C2
|
||||
trainerbattle_no_intro TRAINER_BOSS_GIOVANNI_2, SilphCo_11F_Text_GiovanniDefeat
|
||||
msgbox SilphCo_11F_Text_GiovanniPostBattle
|
||||
closemessage
|
||||
fadescreen FADE_TO_BLACK
|
||||
removeobject 3
|
||||
@@ -88,18 +84,18 @@ EventScript_161EA0:: @ 8161EA0
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_161F00:: @ 8161F00
|
||||
applymovement 3, Movement_161F1D
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_161F27
|
||||
SilphCo_11F_EventScript_GiovanniApproachLeft:: @ 8161F00
|
||||
applymovement 3, SilphCo_11F_Movement_GiovanniApproachLeft
|
||||
applymovement OBJ_EVENT_ID_PLAYER, SilphCo_11F_Movement_PlayerFaceGiovanni
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
EventScript_161F12:: @ 8161F12
|
||||
applymovement 3, Movement_161F23
|
||||
SilphCo_11F_EventScript_GiovanniApproachRight:: @ 8161F12
|
||||
applymovement 3, SilphCo_11F_Movement_GiovanniApproachRight
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
Movement_161F1D:: @ 8161F1D
|
||||
SilphCo_11F_Movement_GiovanniApproachLeft:: @ 8161F1D
|
||||
walk_down
|
||||
walk_down
|
||||
walk_down
|
||||
@@ -107,13 +103,13 @@ Movement_161F1D:: @ 8161F1D
|
||||
walk_in_place_fastest_left
|
||||
step_end
|
||||
|
||||
Movement_161F23:: @ 8161F23
|
||||
SilphCo_11F_Movement_GiovanniApproachRight:: @ 8161F23
|
||||
walk_down
|
||||
walk_down
|
||||
walk_down
|
||||
step_end
|
||||
|
||||
Movement_161F27:: @ 8161F27
|
||||
SilphCo_11F_Movement_PlayerFaceGiovanni:: @ 8161F27
|
||||
delay_16
|
||||
delay_16
|
||||
delay_16
|
||||
@@ -122,20 +118,21 @@ Movement_161F27:: @ 8161F27
|
||||
walk_in_place_fastest_right
|
||||
step_end
|
||||
|
||||
EventScript_161F2E:: @ 8161F2E
|
||||
msgbox gUnknown_817732B, MSGBOX_SIGN
|
||||
@ Unused
|
||||
SilphCo_11F_EventScript_Monitor:: @ 8161F2E
|
||||
msgbox SilphCo_11F_Text_MonitorHasMonsOnIt, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
SilphCo_11F_EventScript_161F37:: @ 8161F37
|
||||
msgbox gUnknown_817734A, MSGBOX_SIGN
|
||||
SilphCo_11F_EventScript_FloorSign:: @ 8161F37
|
||||
msgbox SilphCo_11F_Text_FloorSign, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
SilphCo_11F_EventScript_161F40:: @ 8161F40
|
||||
trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_40, Text_1772B8, Text_1772E7
|
||||
msgbox gUnknown_81772F9, MSGBOX_AUTOCLOSE
|
||||
SilphCo_11F_EventScript_Grunt1:: @ 8161F40
|
||||
trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_40, SilphCo_11F_Text_Grunt1Intro, SilphCo_11F_Text_Grunt1Defeat
|
||||
msgbox SilphCo_11F_Text_Grunt1PostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
SilphCo_11F_EventScript_161F57:: @ 8161F57
|
||||
trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_41, Text_17726A, Text_17728C
|
||||
msgbox gUnknown_817729B, MSGBOX_AUTOCLOSE
|
||||
SilphCo_11F_EventScript_Grunt2:: @ 8161F57
|
||||
trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_41, SilphCo_11F_Text_Grunt2Intro, SilphCo_11F_Text_Grunt2Defeat
|
||||
msgbox SilphCo_11F_Text_Grunt2PostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
gUnknown_8176E12:: @ 8176E12
|
||||
SilphCo_11F_Text_ThanksForSavingMeDearBoy:: @ 8176E12
|
||||
.string "PRESIDENT: Oh, dear boy!\n"
|
||||
.string "Thank you for saving SILPH.\p"
|
||||
.string "I will never forget you saved us in\n"
|
||||
@@ -8,7 +8,7 @@ gUnknown_8176E12:: @ 8176E12
|
||||
.string "anything.\p"
|
||||
.string "Here, maybe this will do.$"
|
||||
|
||||
gUnknown_8176EE7:: @ 8176EE7
|
||||
SilphCo_11F_Text_ThanksForSavingMeDearGirl:: @ 8176EE7
|
||||
.string "PRESIDENT: Oh, dear girl!\n"
|
||||
.string "Thank you for saving SILPH.\p"
|
||||
.string "I will never forget you saved us in\n"
|
||||
@@ -18,11 +18,11 @@ gUnknown_8176EE7:: @ 8176EE7
|
||||
.string "anything.\p"
|
||||
.string "Here, maybe this will do.$"
|
||||
|
||||
gUnknown_8176FBD:: @ 8176FBD
|
||||
SilphCo_11F_Text_ObtainedMasterBallFromPresident:: @ 8176FBD
|
||||
.string "{PLAYER} obtained a MASTER BALL\n"
|
||||
.string "from the PRESIDENT!$"
|
||||
|
||||
gUnknown_8176FEB:: @ 8176FEB
|
||||
SilphCo_11F_Text_ThatsOurSecretPrototype:: @ 8176FEB
|
||||
.string "PRESIDENT: You can't buy that\n"
|
||||
.string "anywhere.\p"
|
||||
.string "It's our secret prototype MASTER\n"
|
||||
@@ -32,16 +32,16 @@ gUnknown_8176FEB:: @ 8176FEB
|
||||
.string "You should be quiet about using it,\n"
|
||||
.string "though.$"
|
||||
|
||||
gUnknown_817708E:: @ 817708E
|
||||
SilphCo_11F_Text_YouHaveNoRoomForThis:: @ 817708E
|
||||
.string "You have no room for this.$"
|
||||
|
||||
gUnknown_81770A9:: @ 81770A9
|
||||
SilphCo_11F_Text_ThanksForRescuingUs:: @ 81770A9
|
||||
.string "SECRETARY: Thank you for rescuing\n"
|
||||
.string "all of us.\p"
|
||||
.string "We, from the PRESIDENT down,\n"
|
||||
.string "are indebted to you.$"
|
||||
|
||||
gUnknown_8177108:: @ 8177108
|
||||
SilphCo_11F_Text_GiovanniIntro:: @ 8177108
|
||||
.string "Ah, {PLAYER}!\n"
|
||||
.string "So we meet again!\p"
|
||||
.string "The PRESIDENT and I are discussing\n"
|
||||
@@ -50,11 +50,11 @@ gUnknown_8177108:: @ 8177108
|
||||
.string "matters…\p"
|
||||
.string "Or, experience a world of pain!$"
|
||||
|
||||
Text_1771AB:: @ 81771AB
|
||||
SilphCo_11F_Text_GiovanniDefeat:: @ 81771AB
|
||||
.string "Arrgh!!\n"
|
||||
.string "I lost again!?$"
|
||||
|
||||
gUnknown_81771C2:: @ 81771C2
|
||||
SilphCo_11F_Text_GiovanniPostBattle:: @ 81771C2
|
||||
.string "Blast it all!\n"
|
||||
.string "You ruined our plans for SILPH!\p"
|
||||
.string "But, TEAM ROCKET will never fall!\p"
|
||||
@@ -62,33 +62,33 @@ gUnknown_81771C2:: @ 81771C2
|
||||
.string "POKéMON exist for TEAM ROCKET!\p"
|
||||
.string "I must go, but I shall return!$"
|
||||
|
||||
Text_17726A:: @ 817726A
|
||||
SilphCo_11F_Text_Grunt2Intro:: @ 817726A
|
||||
.string "Stop right there!\n"
|
||||
.string "Don't you move!$"
|
||||
|
||||
Text_17728C:: @ 817728C
|
||||
SilphCo_11F_Text_Grunt2Defeat:: @ 817728C
|
||||
.string "Don't…\n"
|
||||
.string "Please!$"
|
||||
|
||||
gUnknown_817729B:: @ 817729B
|
||||
SilphCo_11F_Text_Grunt2PostBattle:: @ 817729B
|
||||
.string "So, you want to see my BOSS?$"
|
||||
|
||||
Text_1772B8:: @ 81772B8
|
||||
SilphCo_11F_Text_Grunt1Intro:: @ 81772B8
|
||||
.string "Halt! Do you have an appointment\n"
|
||||
.string "with my BOSS?$"
|
||||
|
||||
Text_1772E7:: @ 81772E7
|
||||
SilphCo_11F_Text_Grunt1Defeat:: @ 81772E7
|
||||
.string "Gaah!\n"
|
||||
.string "Demolished!$"
|
||||
|
||||
gUnknown_81772F9:: @ 81772F9
|
||||
SilphCo_11F_Text_Grunt1PostBattle:: @ 81772F9
|
||||
.string "Watch your step…\n"
|
||||
.string "My BOSS likes his POKéMON tough!$"
|
||||
|
||||
gUnknown_817732B:: @ 817732B
|
||||
SilphCo_11F_Text_MonitorHasMonsOnIt:: @ 817732B
|
||||
.string "The monitor has POKéMON on it!$"
|
||||
|
||||
gUnknown_817734A:: @ 817734A
|
||||
SilphCo_11F_Text_FloorSign:: @ 817734A
|
||||
.string "SILPH CO. HEAD OFFICE\n"
|
||||
.string "11F$"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user