summaryrefslogtreecommitdiff
path: root/data/maps/FortreeCity_House2/scripts.inc
blob: 815c98f60cdeafbb0fcd1ed421a68ab669d2e754 (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
FortreeCity_House2_MapScripts:: @ 81580B3
	.byte 0

FortreeCity_House2_EventScript_1580B4:: @ 81580B4
	lock
	faceplayer
	goto_if_set FLAG_RECEIVED_TM10, FortreeCity_House2_EventScript_158157
	call_if_unset FLAG_MET_HIDDEN_POWER_GIVER, FortreeCity_House2_EventScript_15814B
	msgbox FortreeCity_House2_Text_186360, MSGBOX_DEFAULT
	multichoice 21, 8, 54, 1
	switch VAR_RESULT
	case 1, FortreeCity_House2_EventScript_158161
	msgbox FortreeCity_House2_Text_1863F6, MSGBOX_DEFAULT
	multichoice 21, 8, 54, 1
	switch VAR_RESULT
	case 1, FortreeCity_House2_EventScript_158161
	msgbox FortreeCity_House2_Text_186455, MSGBOX_DEFAULT
	multichoice 21, 8, 54, 1
	switch VAR_RESULT
	case 0, FortreeCity_House2_EventScript_158161
	msgbox FortreeCity_House2_Text_1864C6, MSGBOX_DEFAULT
	giveitem ITEM_TM10_HIDDEN_POWER
	compare VAR_RESULT, 0
	goto_if_eq Common_EventScript_ShowBagIsFull
	setflag FLAG_RECEIVED_TM10
	msgbox FortreeCity_House2_Text_18652F, MSGBOX_DEFAULT
	release
	end

FortreeCity_House2_EventScript_15814B:: @ 815814B
	msgbox FortreeCity_House2_Text_186306, MSGBOX_DEFAULT
	setflag FLAG_MET_HIDDEN_POWER_GIVER
	return

FortreeCity_House2_EventScript_158157:: @ 8158157
	msgbox FortreeCity_House2_Text_18652F, MSGBOX_DEFAULT
	release
	end

FortreeCity_House2_EventScript_158161:: @ 8158161
	msgbox FortreeCity_House2_Text_186565, MSGBOX_DEFAULT
	release
	end