summaryrefslogtreecommitdiff
path: root/data/scripts/field_move_scripts.inc
diff options
context:
space:
mode:
authorFontbane <fontbane@gmail.com>2019-04-04 23:26:53 -0400
committerhuderlem <huderlem@gmail.com>2019-04-06 12:48:50 -0500
commit4a09a5da330cfb855989ed5390efaef219d73ecc (patch)
tree79e0d681267098117292c32853696dbfbeb3ed33 /data/scripts/field_move_scripts.inc
parent621e5d22639a3228c4522de342afd8010ab71689 (diff)
Doc field move scripts completely, use fldeff constants for dofieldeffect
Fix labels Fix labels again Delete extra boulder scripts Now it should build fine
Diffstat (limited to 'data/scripts/field_move_scripts.inc')
-rw-r--r--data/scripts/field_move_scripts.inc240
1 files changed, 104 insertions, 136 deletions
diff --git a/data/scripts/field_move_scripts.inc b/data/scripts/field_move_scripts.inc
index e9ef97122..fa64783b5 100644
--- a/data/scripts/field_move_scripts.inc
+++ b/data/scripts/field_move_scripts.inc
@@ -1,221 +1,189 @@
-PetalburgWoods_EventScript_2906BB:: @ 82906BB
-Route103_EventScript_2906BB:: @ 82906BB
-Route104_EventScript_2906BB:: @ 82906BB
-Route110_TrickHousePuzzle1_EventScript_2906BB:: @ 82906BB
-Route111_EventScript_2906BB:: @ 82906BB
-Route116_EventScript_2906BB:: @ 82906BB
-Route117_EventScript_2906BB:: @ 82906BB
-Route118_EventScript_2906BB:: @ 82906BB
-Route120_EventScript_2906BB:: @ 82906BB
-Route121_EventScript_2906BB:: @ 82906BB
-Route123_EventScript_2906BB:: @ 82906BB
+
+EventScript_CutTree:: @ 82906BB
lockall
- goto_if_unset FLAG_BADGE01_GET, Route103_EventScript_CheckTreeCantCut
+ goto_if_unset FLAG_BADGE01_GET, EventScript_CheckTreeCantCut
checkpartymove MOVE_CUT
compare VAR_RESULT, 6
- goto_if_eq Route103_EventScript_290721
+ goto_if_eq EventScript_CheckTreeCantCut
setfieldeffectargument 0, VAR_RESULT
bufferpartymonnick 0, VAR_RESULT
buffermovename 1, MOVE_CUT
- msgbox Route103_Text_29072E, MSGBOX_YESNO
+ msgbox Text_WantToCut, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq Route103_EventScript_29072B
- msgbox Route103_Text_290771, MSGBOX_DEFAULT
+ goto_if_eq EventScript_CancelCut
+ msgbox Text_MonUsedHM, MSGBOX_DEFAULT
closemessage
- dofieldeffect 2
+ dofieldeffect FLDEFF_USE_CUT_ON_TREE
waitstate
- goto Route103_EventScript_290710
+ goto EventScript_CutTreeDown
end
-Route103_EventScript_290705:: @ 8290705
+EventScript_FldEffCut:: @ 8290705
lockall
- dofieldeffect 2
+ dofieldeffect FLDEFF_USE_CUT_ON_TREE
waitstate
- goto Route103_EventScript_290710
+ goto EventScript_CutTreeDown
end
-Route103_EventScript_290710:: @ 8290710
- applymovement VAR_LAST_TALKED, Route103_Movement_29071F
+EventScript_CutTreeDown:: @ 8290710
+ applymovement VAR_LAST_TALKED, Movement_CutTreeDown
waitmovement 0
removeobject VAR_LAST_TALKED
releaseall
end
-Route103_Movement_29071F: @ 829071F
+Movement_CutTreeDown: @ 829071F
cut_tree
step_end
-Route103_EventScript_CheckTreeCantCut:: @ 8290721
- msgbox Route103_Text_29077D, MSGBOX_DEFAULT
+EventScript_CheckTreeCantCut:: @ 8290721
+ msgbox Text_CantCut, MSGBOX_DEFAULT
releaseall
end
-Route103_EventScript_29072B:: @ 829072B
+EventScript_CancelCut:: @ 829072B
closemessage
releaseall
end
-Route103_Text_29072E: @ 829072E
+Text_WantToCut: @ 829072E
.string "This tree looks like it can be\n"
.string "CUT down!\p"
.string "Would you like to CUT it?$"
-Route103_Text_290771: @ 8290771
-Route111_Text_290771: @ 8290771
+Text_MonUsedHM: @ 8290771
.string "{STR_VAR_1} used {STR_VAR_2}!$"
-Route103_Text_29077D: @ 829077D
+Text_CantCut: @ 829077D
.string "This tree looks like it can be\n"
.string "CUT down!$"
-GraniteCave_B2F_EventScript_2907A6:: @ 82907A6
-MirageTower_3F_EventScript_2907A6:: @ 82907A6
-MirageTower_4F_EventScript_2907A6:: @ 82907A6
-Route110_TrickHousePuzzle3_EventScript_2907A6:: @ 82907A6
-Route111_EventScript_2907A6:: @ 82907A6
-Route114_EventScript_2907A6:: @ 82907A6
-Route115_EventScript_2907A6:: @ 82907A6
-RusturfTunnel_EventScript_2907A6:: @ 82907A6
-SafariZone_North_EventScript_2907A6:: @ 82907A6
-SafariZone_Northeast_EventScript_2907A6:: @ 82907A6
-SeafloorCavern_Room1_EventScript_2907A6:: @ 82907A6
-SeafloorCavern_Room2_EventScript_2907A6:: @ 82907A6
-SeafloorCavern_Room5_EventScript_2907A6:: @ 82907A6
-VictoryRoad_B1F_EventScript_2907A6:: @ 82907A6
+EventScript_RockSmash:: @ 82907A6
lockall
- goto_if_unset FLAG_BADGE03_GET, Route111_EventScript_29082D
+ goto_if_unset FLAG_BADGE03_GET, EventScript_CantSmashRock
checkpartymove MOVE_ROCK_SMASH
compare VAR_RESULT, 6
- goto_if_eq Route111_EventScript_29082D
+ goto_if_eq EventScript_CantSmashRock
setfieldeffectargument 0, VAR_RESULT
bufferpartymonnick 0, VAR_RESULT
buffermovename 1, MOVE_ROCK_SMASH
- msgbox Route111_Text_29083A, MSGBOX_YESNO
+ msgbox Text_WantToSmash, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq Route111_EventScript_290837
- msgbox Route111_Text_290771, MSGBOX_DEFAULT
+ goto_if_eq EventScript_CancelSmash
+ msgbox Text_MonUsedHM, MSGBOX_DEFAULT
closemessage
- dofieldeffect 37
+ dofieldeffect FLDEFF_USE_ROCK_SMASH
waitstate
- goto Route111_EventScript_2907FB
+ goto EventScript_RockSmash
end
-Route111_EventScript_2907F0:: @ 82907F0
+EventScript_FldEffRockSmash:: @ 82907F0
lockall
- dofieldeffect 37
+ dofieldeffect FLDEFF_USE_ROCK_SMASH
waitstate
- goto Route111_EventScript_2907FB
+ goto EventScript_RockSmash
end
-Route111_EventScript_2907FB:: @ 82907FB
- applymovement VAR_LAST_TALKED, Route111_Movement_29082B
+EventScript_SmashRock:: @ 82907FB
+ applymovement VAR_LAST_TALKED, Movement_SmashRock
waitmovement 0
removeobject VAR_LAST_TALKED
specialvar VAR_RESULT, TryUpdateRusturfTunnelState
compare VAR_RESULT, 1
- goto_if_eq Route111_EventScript_290829
+ goto_if_eq EventScript_EndSmash
special RockSmashWildEncounter
compare VAR_RESULT, 0
- goto_if_eq Route111_EventScript_290829
+ goto_if_eq EventScript_EndSmash
waitstate
releaseall
end
-Route111_EventScript_290829:: @ 8290829
+EventScript_EndSmash:: @ 8290829
releaseall
end
-Route111_Movement_29082B: @ 829082B
+Movement_SmashRock: @ 829082B
rock_smash_break
step_end
-Route111_EventScript_29082D:: @ 829082D
- msgbox Route111_Text_29087F, MSGBOX_DEFAULT
+EventScript_CantSmashRock:: @ 829082D
+ msgbox Text_CantSmash, MSGBOX_DEFAULT
releaseall
end
-Route111_EventScript_290837:: @ 8290837
+EventScript_CancelSmash:: @ 8290837
closemessage
releaseall
end
-Route111_Text_29083A: @ 829083A
+Text_WantToSmash: @ 829083A
.string "This rock appears to be breakable.\n"
.string "Would you like to use ROCK SMASH?$"
-Route111_Text_29087F: @ 829087F
+Text_CantSmash: @ 829087F
.string "It's a rugged rock, but a POKéMON\n"
.string "may be able to smash it.$"
-FieryPath_EventScript_2908BA:: @ 82908BA
-MagmaHideout_1F_EventScript_2908BA:: @ 82908BA
-Route110_TrickHousePuzzle4_EventScript_2908BA:: @ 82908BA
-SeafloorCavern_Room1_EventScript_2908BA:: @ 82908BA
-SeafloorCavern_Room2_EventScript_2908BA:: @ 82908BA
-SeafloorCavern_Room3_EventScript_2908BA:: @ 82908BA
-SeafloorCavern_Room5_EventScript_2908BA:: @ 82908BA
-SeafloorCavern_Room8_EventScript_2908BA:: @ 82908BA
-ShoalCave_LowTideLowerRoom_EventScript_2908BA:: @ 82908BA
-VictoryRoad_B1F_EventScript_2908BA:: @ 82908BA
+EventScript_StrengthBoulder:: @ 82908BA
lockall
- goto_if_unset FLAG_BADGE04_GET, FieryPath_EventScript_290915
- goto_if_set FLAG_SYS_USE_STRENGTH, FieryPath_EventScript_29091F
+ goto_if_unset FLAG_BADGE04_GET, EventScript_CantStrength
+ goto_if_set FLAG_SYS_USE_STRENGTH, EventScript_CheckActivatedBoulder
checkpartymove MOVE_STRENGTH
compare VAR_RESULT, 6
- goto_if_eq FieryPath_EventScript_290915
+ goto_if_eq EventScript_CantStrength
setfieldeffectargument 0, VAR_RESULT
- msgbox FieryPath_Text_29092C, MSGBOX_YESNO
+ msgbox Text_WantToStrength, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq FieryPath_EventScript_290929
+ goto_if_eq EventScript_CancelStrength
closemessage
- dofieldeffect 40
+ dofieldeffect FLDEFF_USE_STRENGTH
waitstate
- goto FieryPath_EventScript_290908
+ goto EventScript_ActivateStrength
end
-FieryPath_EventScript_2908FD:: @ 82908FD
+EventScript_FldEffStrength:: @ 82908FD
lockall
- dofieldeffect 40
+ dofieldeffect FLDEFF_USE_STRENGTH
waitstate
- goto FieryPath_EventScript_290908
+ goto EventScript_ActivateStrength
end
-FieryPath_EventScript_290908:: @ 8290908
+EventScript_ActivateStrength:: @ 8290908
setflag FLAG_SYS_USE_STRENGTH
- msgbox FieryPath_Text_29098C, MSGBOX_DEFAULT
+ msgbox Text_MonUsedStrength, MSGBOX_DEFAULT
releaseall
end
-FieryPath_EventScript_290915:: @ 8290915
- msgbox FieryPath_Text_2909D6, MSGBOX_DEFAULT
+EventScript_CantStrength:: @ 8290915
+ msgbox Text_CantStrength, MSGBOX_DEFAULT
releaseall
end
-FieryPath_EventScript_29091F:: @ 829091F
- msgbox FieryPath_Text_290A16, MSGBOX_DEFAULT
+EventScript_CheckActivatedBoulder:: @ 829091F
+ msgbox Text_StrengthActivated, MSGBOX_DEFAULT
releaseall
end
-FieryPath_EventScript_290929:: @ 8290929
+EventScript_CancelStrength:: @ 8290929
closemessage
releaseall
end
-FieryPath_Text_29092C: @ 829092C
+Text_WantToStrength: @ 829092C
.string "It's a big boulder, but a POKéMON\n"
.string "may be able to push it aside.\p"
.string "Would you like to use STRENGTH?$"
-FieryPath_Text_29098C: @ 829098C
+Text_MonUsedStrength: @ 829098C
.string "{STR_VAR_1} used STRENGTH!\p"
.string "{STR_VAR_1}'s STRENGTH made it\n"
.string "possible to move boulders around!$"
-FieryPath_Text_2909D6: @ 82909D6
+Text_CantStrength: @ 82909D6
.string "It's a big boulder, but a POKéMON\n"
.string "may be able to push it aside.$"
-FieryPath_Text_290A16: @ 8290A16
+Text_StrengthActivated: @ 8290A16
.string "STRENGTH made it possible to move\n"
.string "boulders around.$"
@@ -223,59 +191,59 @@ EventScript_UseWaterfall:: @ 8290A49
lockall
checkpartymove MOVE_WATERFALL
compare VAR_RESULT, 6
- goto_if_eq EventScript_290A84
+ goto_if_eq EventScript_CantWaterfall
bufferpartymonnick 0, VAR_RESULT
setfieldeffectargument 0, VAR_RESULT
- msgbox Text_290AC3, MSGBOX_YESNO
+ msgbox Text_WantToWaterfall, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq EventScript_290A8C
- msgbox Text_290AFC, MSGBOX_DEFAULT
- dofieldeffect 43
- goto EventScript_290A8C
+ goto_if_eq EventScript_EndWaterfall
+ msgbox Text_MonUsedWaterfall, MSGBOX_DEFAULT
+ dofieldeffect FLDEFF_USE_WATERFALL
+ goto EventScript_EndWaterfall
EventScript_CannotUseWaterfall:: @ 8290A83
lockall
-EventScript_290A84:: @ 8290A84
- msgbox Text_290A8E, MSGBOX_DEFAULT
+EventScript_CantWaterfall:: @ 8290A84
+ msgbox Text_CantWaterfall, MSGBOX_DEFAULT
-EventScript_290A8C:: @ 8290A8C
+EventScript_EndWaterfall:: @ 8290A8C
releaseall
end
-Text_290A8E: @ 8290A8E
+Text_CantWaterfall: @ 8290A8E
.string "A wall of water is crashing down with\n"
.string "a mighty roar.$"
-Text_290AC3: @ 8290AC3
+Text_WantToWaterfall: @ 8290AC3
.string "It's a large waterfall.\n"
.string "Would you like to use WATERFALL?$"
-Text_290AFC: @ 8290AFC
+Text_MonUsedWaterfall: @ 8290AFC
.string "{STR_VAR_1} used WATERFALL.$"
EventScript_UseDive:: @ 8290B0F
lockall
checkpartymove MOVE_DIVE
compare VAR_RESULT, 6
- goto_if_eq EventScript_290B4E
+ goto_if_eq EventScript_CantDive
bufferpartymonnick 0, VAR_RESULT
setfieldeffectargument 0, VAR_RESULT
setfieldeffectargument 1, 1
- msgbox Text_290BE8, MSGBOX_YESNO
+ msgbox Text_WantToDive, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq EventScript_290B58
- msgbox Text_290C1A, MSGBOX_DEFAULT
- dofieldeffect 44
- goto EventScript_290B58
+ goto_if_eq EventScript_EndDive
+ msgbox Text_MonUsedDive, MSGBOX_DEFAULT
+ dofieldeffect FLDEFF_USE_DIVE
+ goto EventScript_EndDive
end
-EventScript_290B4E:: @ 8290B4E
- msgbox Text_290BAA, MSGBOX_DEFAULT
+EventScript_CantDive:: @ 8290B4E
+ msgbox Text_CantDive, MSGBOX_DEFAULT
releaseall
end
-EventScript_290B58:: @ 8290B58
+EventScript_EndDive:: @ 8290B58
releaseall
end
@@ -283,50 +251,50 @@ EventScript_UseDiveUnderwater:: @ 8290B5A
lockall
checkpartymove MOVE_DIVE
compare VAR_RESULT, 6
- goto_if_eq EventScript_290B99
+ goto_if_eq EventScript_CantSurface
bufferpartymonnick 0, VAR_RESULT
setfieldeffectargument 0, VAR_RESULT
setfieldeffectargument 1, 1
- msgbox Text_290C6E, MSGBOX_YESNO
+ msgbox Text_WantToSurface, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq EventScript_290BA8
- msgbox Text_290C1A, MSGBOX_DEFAULT
- dofieldeffect 44
- goto EventScript_290BA8
+ goto_if_eq EventScript_EndSurface
+ msgbox Text_MonUsedDive, MSGBOX_DEFAULT
+ dofieldeffect FLDEFF_USE_DIVE
+ goto EventScript_EndSurface
end
-EventScript_290B99:: @ 8290B99
+EventScript_CantSurface:: @ 8290B99
lockall
- msgbox Text_290C28, MSGBOX_DEFAULT
- goto EventScript_290BA8
+ msgbox Text_CantSurface, MSGBOX_DEFAULT
+ goto EventScript_EndSurface
end
-EventScript_290BA8:: @ 8290BA8
+EventScript_EndSurface:: @ 8290BA8
releaseall
end
-Text_290BAA: @ 8290BAA
+Text_CantDive: @ 8290BAA
.string "The sea is deep here. A POKéMON\n"
.string "may be able to go underwater.$"
-Text_290BE8: @ 8290BE8
+Text_WantToDive: @ 8290BE8
.string "The sea is deep here.\n"
.string "Would you like to use DIVE?$"
-Text_290C1A: @ 8290C1A
+Text_MonUsedDive: @ 8290C1A
.string "{STR_VAR_1} used DIVE.$"
-Text_290C28: @ 8290C28
+Text_CantSurface: @ 8290C28
.string "Light is filtering down from above.\n"
.string "A POKéMON may be able to surface.$"
-Text_290C6E: @ 8290C6E
+Text_WantToSurface: @ 8290C6E
.string "Light is filtering down from above.\n"
.string "Would you like to use DIVE?$"
-EventScript_290CAE:: @ 8290CAE
- msgbox Text_290CB7, MSGBOX_SIGN
+EventScript_FailSweetScent:: @ 8290CAE
+ msgbox Text_FailSweetScent, MSGBOX_SIGN
end
-Text_290CB7: @ 8290CB7
+Text_FailSweetScent: @ 8290CB7
.string "Looks like there's nothing here…$"