summaryrefslogtreecommitdiff
path: root/data/maps/VictoryRoad_2F/scripts.inc
blob: 20476dac45c38383122030a5f57d943f1506f55b (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
VictoryRoad_2F_MapScripts:: @ 8160F92
    map_script 1, VictoryRoad_2F_MapScript1_160F98
    .byte 0

VictoryRoad_2F_MapScript1_160F98:: @ 8160F98
    compare_var_to_value VAR_0x4065, 100
    call_if 5, EventScript_160FAF
    compare_var_to_value VAR_0x4066, 100
    call_if 5, EventScript_160FC2
    end

EventScript_160FAF:: @ 8160FAF
    setmetatile 13, 10, 775, 1
    setmetatile 13, 11, 791, 1
    return

EventScript_160FC2:: @ 8160FC2
    setmetatile 33, 16, 775, 1
    setmetatile 33, 17, 791, 1
    return

VictoryRoad_2F_EventScript_160FD5:: @ 8160FD5
    lockall
    compare_var_to_value VAR_0x4065, 100
    goto_if 1, EventScript_161004
    setmetatile 13, 10, 721, 0
    setmetatile 13, 11, 737, 0
    playse SE_MU_PACHI
    special DrawWholeMapView
    waitse
    moveobjectoffscreen 11
    setvar VAR_0x4065, 100
    releaseall
    end

EventScript_161004:: @ 8161004
    releaseall
    end

VictoryRoad_2F_EventScript_161006:: @ 8161006
    lockall
    compare_var_to_value VAR_0x4066, 100
    goto_if 1, EventScript_161035
    setmetatile 33, 16, 721, 0
    setmetatile 33, 17, 737, 0
    playse SE_MU_PACHI
    special DrawWholeMapView
    waitse
    moveobjectoffscreen 12
    setvar VAR_0x4066, 100
    releaseall
    end

EventScript_161035:: @ 8161035
    releaseall
    end

VictoryRoad_2F_EventScript_161037:: @ 8161037
    trainerbattle 0, 167, 0, Text_1747EF, Text_17482C
    loadword 0, gUnknown_817483E
    callstd 6
    end

VictoryRoad_2F_EventScript_16104E:: @ 816104E
    trainerbattle 0, 325, 0, Text_174877, Text_1748B4
    loadword 0, gUnknown_81748BB
    callstd 6
    end

VictoryRoad_2F_EventScript_161065:: @ 8161065
    trainerbattle 0, 287, 0, Text_1748EE, Text_17491B
    loadword 0, gUnknown_8174927
    callstd 6
    end

VictoryRoad_2F_EventScript_16107C:: @ 816107C
    trainerbattle 0, 290, 0, Text_174995, Text_1749B0
    loadword 0, gUnknown_81749BB
    callstd 6
    end

VictoryRoad_2F_EventScript_161093:: @ 8161093
    trainerbattle 0, 298, 0, Text_174942, Text_17495A
    loadword 0, gUnknown_8174969
    callstd 6
    end