blob: 9f8058e4ee503ff4777f306de904ad10e8a78bf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
|