diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-07-17 18:18:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-17 18:18:47 -0400 |
commit | 96fd719a1906346db062daf13e1107b3c4b220ed (patch) | |
tree | 5df2369f01325a40ca65a4f744545460e348a198 /data/maps/BattleFrontier_ReceptionGate/scripts.inc | |
parent | 50e48898d2ab25b792b563825dca79d327bcb542 (diff) | |
parent | 89bcf3cbd9ad9d3c3631159c5ba20d3660819066 (diff) |
Merge pull request #1081 from GriffinRichards/add-localids
Add local object event ids for referenced objects
Diffstat (limited to 'data/maps/BattleFrontier_ReceptionGate/scripts.inc')
-rw-r--r-- | data/maps/BattleFrontier_ReceptionGate/scripts.inc | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/data/maps/BattleFrontier_ReceptionGate/scripts.inc b/data/maps/BattleFrontier_ReceptionGate/scripts.inc index 94fadd69a..495ad165f 100644 --- a/data/maps/BattleFrontier_ReceptionGate/scripts.inc +++ b/data/maps/BattleFrontier_ReceptionGate/scripts.inc @@ -1,3 +1,7 @@ +.set LOCALID_GREETER, 1 +.set LOCALID_GUIDE, 2 +.set LOCALID_SCOTT, 4 + BattleFrontier_ReceptionGate_MapScripts:: @ 82661DA map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_ReceptionGate_OnFrame map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_ReceptionGate_OnTransition @@ -15,9 +19,9 @@ BattleFrontier_ReceptionGate_EventScript_FirstTimeEntering:: @ 82661F3 lockall setvar VAR_HAS_ENTERED_BATTLE_FRONTIER, 1 playse SE_PIN - applymovement 1, Common_Movement_ExclamationMark + applymovement LOCALID_GREETER, Common_Movement_ExclamationMark waitmovement 0 - applymovement 1, Common_Movement_Delay48 + applymovement LOCALID_GREETER, Common_Movement_Delay48 waitmovement 0 msgbox BattleFrontier_ReceptionGate_Text_FirstTimeHereThisWay, MSGBOX_DEFAULT closemessage @@ -38,27 +42,27 @@ BattleFrontier_ReceptionGate_EventScript_ScottScene:: @ 8266229 msgbox BattleFrontier_ReceptionGate_Text_EnjoyBattleFrontier, MSGBOX_DEFAULT msgbox BattleFrontier_ReceptionGate_Text_IfItIsntPlayerYouCame, MSGBOX_DEFAULT closemessage - applymovement 1, Common_Movement_WalkInPlaceFastestUp - applymovement 2, Common_Movement_WalkInPlaceFastestUp + applymovement LOCALID_GREETER, Common_Movement_WalkInPlaceFastestUp + applymovement LOCALID_GUIDE, Common_Movement_WalkInPlaceFastestUp applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp waitmovement 0 playse SE_PIN - applymovement 1, Common_Movement_ExclamationMark - applymovement 2, Common_Movement_ExclamationMark + applymovement LOCALID_GREETER, Common_Movement_ExclamationMark + applymovement LOCALID_GUIDE, Common_Movement_ExclamationMark applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_ExclamationMark waitmovement 0 msgbox BattleFrontier_ReceptionGate_Text_OhMrScottGoodDay, MSGBOX_DEFAULT closemessage - applymovement 1, BattleFrontier_ReceptionGate_Movement_GreeterFaceScott - applymovement 2, BattleFrontier_ReceptionGate_Movement_FacilityGuideFaceScott + applymovement LOCALID_GREETER, BattleFrontier_ReceptionGate_Movement_GreeterFaceScott + applymovement LOCALID_GUIDE, BattleFrontier_ReceptionGate_Movement_FacilityGuideFaceScott applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_ReceptionGate_Movement_PlayerFaceScott - applymovement 4, BattleFrontier_ReceptionGate_Movement_ScottEnter + applymovement LOCALID_SCOTT, BattleFrontier_ReceptionGate_Movement_ScottEnter waitmovement 0 msgbox BattleFrontier_ReceptionGate_Text_ScottGreatToSeeYouHere, MSGBOX_DEFAULT closemessage - applymovement 4, BattleFrontier_ReceptionGate_Movement_ScottExit + applymovement LOCALID_SCOTT, BattleFrontier_ReceptionGate_Movement_ScottExit waitmovement 0 - removeobject 4 + removeobject LOCALID_SCOTT releaseall end |