summaryrefslogtreecommitdiff
path: root/data/maps/LavenderTown_House2/scripts.inc
blob: cd9e5e8d7f636e6b942ebaa346646a7dab4bf1ae (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
LavenderTown_House2_MapScripts:: @ 816B265
	.byte 0

LavenderTown_House2_EventScript_16B266:: @ 816B266
	lock
	faceplayer
	msgbox gUnknown_8193A4B, MSGBOX_YESNO
	compare_var_to_value VAR_RESULT, 1
	goto_if eq, EventScript_16B287
	compare_var_to_value VAR_RESULT, 0
	goto_if eq, EventScript_16B2AA
	end

EventScript_16B287:: @ 816B287
	msgbox gUnknown_8193AA6
	special Special_ChooseMonFromParty
	waitstate
	compare_var_to_value VAR_0x8004, 6
	goto_if lt, EventScript_16B2B4
	compare_var_to_value VAR_0x8004, 6
	goto_if ge, EventScript_16B2AA
	end

EventScript_16B2AA:: @ 816B2AA
	msgbox gUnknown_8193BD4
	release
	end

EventScript_16B2B4:: @ 816B2B4
	specialvar VAR_RESULT, Special_GetSpeciesOfPartySlot_x8004
	compare_var_to_value VAR_RESULT, SPECIES_EGG
	goto_if eq, EventScript_16B307
	special TV_CopyNicknameToStringVar1AndEnsureTerminated
	special TV_CheckMonOTIDEqualsPlayerID
	compare_var_to_value VAR_RESULT, 1
	goto_if eq, EventScript_16B311
	specialvar VAR_RESULT, Special_BufferMonOTNameAndCompareToPlayerName
	special TV_CopyNicknameToStringVar1AndEnsureTerminated
	compare_var_to_value VAR_RESULT, 1
	goto_if eq, EventScript_16B311
	msgbox gUnknown_8193AD2, MSGBOX_YESNO
	compare_var_to_value VAR_RESULT, 1
	goto_if eq, EventScript_16B31B
	compare_var_to_value VAR_RESULT, 0
	goto_if eq, EventScript_16B2AA
	end

EventScript_16B307:: @ 816B307
	msgbox gUnknown_8193CC4
	release
	end

EventScript_16B311:: @ 816B311
	msgbox gUnknown_8193C82
	release
	end

EventScript_16B31B:: @ 816B31B
	msgbox gUnknown_8193B36
	call EventScript_1A74EB
	specialvar VAR_RESULT, NameRaterWasNicknameChanged
	special TV_CopyNicknameToStringVar1AndEnsureTerminated
	compare_var_to_value VAR_RESULT, 1
	goto_if eq, EventScript_16B345
	msgbox gUnknown_8193BF0
	release
	end

EventScript_16B345:: @ 816B345
	msgbox gUnknown_8193B66
	release
	end