summaryrefslogtreecommitdiff
path: root/data/scripts/field_poison.inc
diff options
context:
space:
mode:
authorhuderlem <huderlem@gmail.com>2019-10-05 09:59:43 -0500
committerGitHub <noreply@github.com>2019-10-05 09:59:43 -0500
commitc0b06025168778705ceb044c875561a694739c74 (patch)
treee62a583f8dff821113f998c1275a10c6aa000e07 /data/scripts/field_poison.inc
parenta6847ca1d938f6f4f317d88b0f656682a974c6d9 (diff)
parent749247b9104426fc8c652c5454fc1508b35c43b0 (diff)
Merge pull request #819 from GriffinRichards/document-eventscripts
Split some files from event_scripts
Diffstat (limited to 'data/scripts/field_poison.inc')
-rw-r--r--data/scripts/field_poison.inc51
1 files changed, 51 insertions, 0 deletions
diff --git a/data/scripts/field_poison.inc b/data/scripts/field_poison.inc
new file mode 100644
index 000000000..9f8058e4e
--- /dev/null
+++ b/data/scripts/field_poison.inc
@@ -0,0 +1,51 @@
+EventScript_Poison:: @ 82736BC
+ lockall
+ special ExecuteWhiteOut
+ waitstate
+ compare VAR_RESULT, 1
+ goto_if_eq EventScript_2736D9
+ compare VAR_RESULT, 2
+ goto_if_eq EventScript_2736F8
+ releaseall
+ end
+
+EventScript_2736D9:: @ 82736D9
+ message gText_PlayerWhitedOut
+ waitmessage
+ waitbuttonpress
+ special sub_80B05B4
+ waitstate
+ fadescreen 1
+ call_if_set FLAG_FLANNERY_GIVES_BADGE_INFO, EventScript_2736F4
+ special sp0C8_whiteout_maybe
+ waitstate
+ end
+
+EventScript_2736F4:: @ 82736F4
+ setrespawn HEAL_LOCATION_LAVARIDGE_TOWN
+ return
+
+EventScript_2736F8:: @ 82736F8
+ message gText_PlayerWhitedOut
+ waitmessage
+ waitbuttonpress
+ setvar VAR_0x8004, 16
+ special CallBattlePikeFunction
+ compare VAR_RESULT, 1
+ goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_2C4222
+ setvar VAR_0x8004, 12
+ special CallBattlePyramidFunction
+ compare VAR_RESULT, 1
+ goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42
+ compare VAR_RESULT, 2
+ goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42
+ setvar VAR_0x8004, TRAINER_HILL_FUNC_10
+ special CallTrainerHillFunction
+ compare VAR_RESULT, 1
+ goto_if_eq TrainerHill_1F_EventScript_2C83C9
+ special sub_80B05B4
+ waitstate
+ fadescreen 1
+ special sp0C8_whiteout_maybe
+ waitstate
+ end