summaryrefslogtreecommitdiff
path: root/data/scripts/maps/SlateportCity_House1.inc
blob: be295593735ba8e1e8ba7e9e9dc51985a1937e2e (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
SlateportCity_House1_MapScripts:: @ 815567A
	.byte 0

SlateportCity_House1_EventScript_15567B:: @ 815567B
	lock
	faceplayer
	msgbox SlateportCity_House1_Text_17D46A, MSGBOX_YESNO
	compare RESULT, YES
	goto_if_eq SlateportCity_House1_EventScript_15569C
	compare RESULT, NO
	goto_if_eq SlateportCity_House1_EventScript_1556BF
	end

SlateportCity_House1_EventScript_15569C:: @ 815569C
	msgbox SlateportCity_House1_Text_17D4DB, 4
	special SelectMonForNPCTrade
	waitstate
	compare VAR_SPECIAL_4, 255
	goto_if_ne SlateportCity_House1_EventScript_1556C9
	compare VAR_SPECIAL_4, 255
	goto_if_eq SlateportCity_House1_EventScript_1556BF
	end

SlateportCity_House1_EventScript_1556BF:: @ 81556BF
	msgbox SlateportCity_House1_Text_17D61E, 4
	release
	end

SlateportCity_House1_EventScript_1556C9:: @ 81556C9
	specialvar RESULT, ScriptGetPartyMonSpecies
	compare RESULT, SPECIES_EGG
	goto_if_eq SlateportCity_House1_EventScript_15571C
	special TV_CopyNicknameToStringVar1AndEnsureTerminated
	special TV_CheckMonOTIDEqualsPlayerID
	compare RESULT, 1
	goto_if_eq SlateportCity_House1_EventScript_155726
	specialvar RESULT, MonOTNameMatchesPlayer
	special TV_CopyNicknameToStringVar1AndEnsureTerminated
	compare RESULT, 1
	goto_if_eq SlateportCity_House1_EventScript_155726
	msgbox SlateportCity_House1_Text_17D505, MSGBOX_YESNO
	compare RESULT, YES
	goto_if_eq SlateportCity_House1_EventScript_155730
	compare RESULT, NO
	goto_if_eq SlateportCity_House1_EventScript_1556BF
	end

SlateportCity_House1_EventScript_15571C:: @ 815571C
	msgbox SlateportCity_House1_Text_17D752, 4
	release
	end

SlateportCity_House1_EventScript_155726:: @ 8155726
	msgbox SlateportCity_House1_Text_17D6CC, 4
	release
	end

SlateportCity_House1_EventScript_155730:: @ 8155730
	msgbox SlateportCity_House1_Text_17D580, 4
	call SlateportCity_House1_EventScript_1A0678
	specialvar RESULT, TV_PutNameRaterShowOnTheAirIfNicnkameChanged
	special TV_CopyNicknameToStringVar1AndEnsureTerminated
	compare RESULT, 1
	goto_if_eq SlateportCity_House1_EventScript_15575A
	msgbox SlateportCity_House1_Text_17D63A, 4
	release
	end

SlateportCity_House1_EventScript_15575A:: @ 815575A
	msgbox SlateportCity_House1_Text_17D5B0, 4
	release
	end