193 lines
4.7 KiB
PHP
193 lines
4.7 KiB
PHP
GraniteCave_B3F_MapScripts::
|
|
//map_script MAP_SCRIPT_ON_LOAD, GraniteCave_B3F_OnTransition
|
|
//map_script MAP_SCRIPT_ON_TRANSITION, GraniteCave_B3F_OnTransition
|
|
.byte 0
|
|
|
|
GraniteCave_B3F_Fell::
|
|
goto_if_unset FLAG_STEVENS_CAVE_DUGDEEPER, GraniteCave_B3F_EventScript_DugDeeper
|
|
msgbox GraniteCave_B3F_Text_FindAnything, MSGBOX_NPC
|
|
end
|
|
|
|
GraniteCave_B3F_Movement_LookUp:
|
|
face_up
|
|
step_end
|
|
|
|
GraniteCave_B3F_Text_FindAnything:
|
|
.string "I haven't found anything yet...\n"
|
|
.string "If I do, I will find you.$"
|
|
|
|
GraniteCave_B3F_Text_CheckOnPlayer:
|
|
.string "Are you ok?\n"
|
|
.string "Here, let me heal your POKéMON.$"
|
|
|
|
GraniteCave_B3F_Text_DugDeeper:
|
|
.string "Well this is unexpected. We've seen to\n"
|
|
.string "gone even deeper into this cave.\p"
|
|
.string "At least there seems to be a path to\n"
|
|
.string "continue moving on.\p"
|
|
.string "I am going to explore this section with\n"
|
|
.string "Baltoy and see if we can find any other\l"
|
|
.string "path back up.\p"
|
|
.string "Why don't you continue exploring\n"
|
|
.string "further as well.$"
|
|
|
|
GraniteCave_B3F_EventScript_DugDeeper::
|
|
lock
|
|
setflag FLAG_STEVENS_CAVE_DUGDEEPER
|
|
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_B3F_Movement_LookUp
|
|
msgbox GraniteCave_B3F_Text_CheckOnPlayer, MSGBOX_NPC
|
|
special HealPlayerParty
|
|
playse SE_USE_ITEM
|
|
waitse
|
|
msgbox GraniteCave_B3F_Text_DugDeeper, MSGBOX_NPC
|
|
setvar VAR_GRANITECAVE_AGGRON, 1
|
|
givemon SPECIES_MUDKIP, 25, ITEM_NONE
|
|
animateflash 1
|
|
end
|
|
|
|
GraniteCave_B3F_Trigger_Agron::
|
|
goto_if_unset FLAG_STEVENS_CAVE_AGRON, GraniteCave_B3F_Movement_AgronChargePlayer
|
|
end
|
|
|
|
GraniteCave_B3F_Movement_CheckRightLeft:
|
|
face_right
|
|
delay_16
|
|
face_left
|
|
delay_16
|
|
step_end
|
|
|
|
GraniteCave_B3F_Movement_CheckDownLeft:
|
|
face_down
|
|
delay_16
|
|
face_left
|
|
delay_16
|
|
face_down
|
|
delay_16
|
|
face_left
|
|
step_end
|
|
|
|
GraniteCave_B3F_Movement_AgronChargePlayer:
|
|
face_right
|
|
walk_fast_right
|
|
walk_fast_right
|
|
walk_fast_right
|
|
walk_fast_right
|
|
walk_fast_right
|
|
walk_fast_right
|
|
walk_fast_right
|
|
walk_fast_right
|
|
step_end
|
|
|
|
GraniteCave_B3F_Movement_KnockBack:
|
|
jump_2_right
|
|
delay_16
|
|
face_left
|
|
step_end
|
|
|
|
GraniteCave_B3F_Movement_Larion:
|
|
walk_fast_up
|
|
walk_fast_up
|
|
walk_fast_up
|
|
step_end
|
|
|
|
GraniteCave_B3F_Movement_StevenRun:
|
|
walk_fast_down
|
|
walk_fast_down
|
|
walk_fast_down
|
|
walk_fast_down
|
|
walk_fast_down
|
|
face_left
|
|
delay_16
|
|
lock_facing_direction
|
|
walk_right
|
|
step_end
|
|
|
|
GraniteCave_B3F_Movement_FaceDown:
|
|
face_down
|
|
delay_16
|
|
step_end
|
|
|
|
GraniteCave_B3F_Movement_WalkRight:
|
|
walk_right
|
|
step_end
|
|
|
|
GraniteCave_B3F_Text_AggronAttack:
|
|
.string "STEVEN: I'll deal with this one!$"
|
|
|
|
GraniteCave_B3F_Text_LaironAttack:
|
|
.string "LARION charges$"
|
|
|
|
GraniteCave_B3F_EventScript_Agron::
|
|
lock
|
|
//Setup Scene
|
|
fadeoutbgm 1
|
|
animateflash 1
|
|
//Start Look Around
|
|
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_B3F_Movement_CheckRightLeft
|
|
waitmovement 0
|
|
delay 32
|
|
playse SE_PIN
|
|
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_ExclamationMark
|
|
waitmovement 0
|
|
delay 16
|
|
//Sounds
|
|
playbgm MUS_HELP, TRUE
|
|
playmoncry SPECIES_AGGRON, CRY_MODE_ENCOUNTER
|
|
//Move Agron
|
|
setobjectxyperm 4, 15, 23
|
|
showobjectat 4, MAP_GRANITE_CAVE_B3F
|
|
addobject 4
|
|
//Move Lairon
|
|
setobjectxyperm 5, 26, 26
|
|
showobjectat 5, MAP_GRANITE_CAVE_B3F
|
|
addobject 5
|
|
delay 16
|
|
//Charge Scene
|
|
applymovement 4, GraniteCave_B3F_Movement_AgronChargePlayer
|
|
waitmovement 0
|
|
setvar VAR_0x8004, 0 @ vertical pan
|
|
setvar VAR_0x8005, 2 @ horizontal pan
|
|
setvar VAR_0x8006, 5 @ num shakes
|
|
setvar VAR_0x8007, 2 @ shake delay
|
|
special ShakeCamera
|
|
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_B3F_Movement_KnockBack
|
|
fadescreen FADE_TO_BLACK
|
|
hidefollower
|
|
waitmovement 0
|
|
fadescreen FADE_FROM_BLACK
|
|
playmoncry SPECIES_AGGRON, CRY_MODE_ENCOUNTER
|
|
delay 32
|
|
//Move in Larion
|
|
applymovement 5, GraniteCave_B3F_Movement_Larion
|
|
waitmovement 0
|
|
playmoncry SPECIES_LAIRON, CRY_MODE_ENCOUNTER
|
|
delay 32
|
|
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_B3F_Movement_CheckDownLeft
|
|
waitmovement 0
|
|
//Move in Steven
|
|
setobjectxyperm 1, 24, 18
|
|
showobjectat 1, MAP_GRANITE_CAVE_B3F
|
|
addobject 1
|
|
applymovement 1, GraniteCave_B3F_Movement_StevenRun
|
|
waitmovement 0
|
|
//applymovement 4, GraniteCave_B3F_Movement_WalkRight
|
|
//waitmovement 0
|
|
msgbox GraniteCave_B3F_Text_AggronAttack, MSGBOX_NPC
|
|
applymovement OBJ_EVENT_ID_PLAYER, GraniteCave_B3F_Movement_FaceDown
|
|
waitmovement 0
|
|
//Start Battle
|
|
msgbox GraniteCave_B3F_Text_LaironAttack, MSGBOX_NPC
|
|
special LaironBattle
|
|
waitstate
|
|
//setwildbattle SPECIES_LAIRON, 18
|
|
//dowildbattle
|
|
//specialvar VAR_RESULT, GetBattleOutcome
|
|
//goto_if_eq VAR_RESULT, B_OUTCOME_WON, SkyPillar_Top_EventScript_DefeatedRayquaza
|
|
//goto_if_eq VAR_RESULT, B_OUTCOME_RAN, SkyPillar_Top_EventScript_RanFromRayquaza
|
|
//goto_if_eq VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED, SkyPillar_Top_EventScript_RanFromRayquaza
|
|
release
|
|
setvar VAR_GRANITECAVE_AGGRON, 0
|
|
end
|
|
|
|
|
|
|