summaryrefslogtreecommitdiff
path: root/data/maps/Route119_WeatherInstitute_1F/scripts.inc
blob: c97e25e2995efac7c22a60cf5eefa6d70c1777f4 (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
Route119_WeatherInstitute_1F_MapScripts:: @ 8163C2A
	map_script MAP_SCRIPT_ON_TRANSITION, Route119_WeatherInstitute_1F_MapScript1_163C30
	.byte 0

Route119_WeatherInstitute_1F_MapScript1_163C30:: @ 8163C30
	call Common_EventScript_SetupEvilTeamGfxIds
	compare VAR_WEATHER_INSTITUTE_STATE, 0
	call_if_eq Route119_WeatherInstitute_1F_EventScript_163C41
	end

Route119_WeatherInstitute_1F_EventScript_163C41:: @ 8163C41
	setobjectxyperm 5, 0, 5
	setobjectmovementtype 5, 10
	return

Route119_WeatherInstitute_1F_EventScript_163C4D:: @ 8163C4D
	lock
	faceplayer
	special GetPlayerBigGuyGirlString
	compare VAR_WEATHER_INSTITUTE_STATE, 0
	goto_if_eq Route119_WeatherInstitute_1F_EventScript_163C67
	msgbox Route119_WeatherInstitute_1F_Text_19ED22, MSGBOX_DEFAULT
	release
	end

Route119_WeatherInstitute_1F_EventScript_163C67:: @ 8163C67
	msgbox Route119_WeatherInstitute_1F_Text_19ECF4, MSGBOX_DEFAULT
	release
	end

Route119_WeatherInstitute_1F_EventScript_163C71:: @ 8163C71
	msgbox Route119_WeatherInstitute_1F_Text_19ED6B, MSGBOX_NPC
	end

Route119_WeatherInstitute_1F_EventScript_163C7A:: @ 8163C7A
	msgbox Route119_WeatherInstitute_1F_Text_19EE25, MSGBOX_NPC
	end

Route119_WeatherInstitute_1F_EventScript_163C83:: @ 8163C83
	lockall
	msgbox Route119_WeatherInstitute_1F_Text_19EE8B, MSGBOX_DEFAULT
	closemessage
	call Common_EventScript_OutOfCenterPartyHeal
	releaseall
	end

Route119_WeatherInstitute_1F_EventScript_163C94:: @ 8163C94
	trainerbattle_single TRAINER_WEATHER_INSTITUTE_GRUNT_1, Route119_WeatherInstitute_1F_Text_19EB8A, Route119_WeatherInstitute_1F_Text_19EBEE
	msgbox Route119_WeatherInstitute_1F_Text_19EC0E, MSGBOX_AUTOCLOSE
	end

Route119_WeatherInstitute_1F_EventScript_163CAB:: @ 8163CAB
	trainerbattle_single TRAINER_WEATHER_INSTITUTE_GRUNT_2, Route119_WeatherInstitute_1F_Text_19EC6B, Route119_WeatherInstitute_1F_Text_19EC89
	msgbox Route119_WeatherInstitute_1F_Text_19EC97, MSGBOX_AUTOCLOSE
	end