Define VAR_LOAN_SPEAROW

This commit is contained in:
Rena 2022-05-04 22:42:01 -05:00
parent 75145312d2
commit 58a127d8a6
3 changed files with 18 additions and 18 deletions

View File

@ -20,22 +20,22 @@ scr_seq_R31_001:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
compare VAR_UNK_4114, 1
compare VAR_LOAN_SPEAROW, 1
goto_if_ne _003D
goto _0098
.byte 0x16, 0x00, 0x50, 0x00, 0x00, 0x00
_003D:
compare VAR_UNK_4114, 2
compare VAR_LOAN_SPEAROW, 2
goto_if_ne _0056
goto _01AD
.byte 0x16, 0x00, 0x37, 0x00, 0x00, 0x00
_0056:
compare VAR_UNK_4114, 4
compare VAR_LOAN_SPEAROW, 4
goto_if_ne _006F
goto _01AD
.byte 0x16, 0x00, 0x1e, 0x00, 0x00, 0x00
_006F:
compare VAR_UNK_4114, 6
compare VAR_LOAN_SPEAROW, 6
goto_if_ne _008D
kenya_check_party_or_mailbox VAR_SPECIAL_RESULT
compare VAR_SPECIAL_RESULT, 1
@ -102,20 +102,20 @@ _0187:
wait_fanfare
_0195:
npc_msg msg_0378_R31_00007
setvar VAR_UNK_4114, 2
setvar VAR_LOAN_SPEAROW, 2
compare VAR_TEMP_x4000, VAR_TEMP_x4001
goto_if_ne _01AD
scrcmd_606
_01AD:
goto_if_no_item_space ITEM_TM44, 1, _01FC
callstd std_give_item_verbose
compare VAR_UNK_4114, 2
compare VAR_LOAN_SPEAROW, 2
goto_if_ne _01EB
setvar VAR_UNK_4114, 3
setvar VAR_LOAN_SPEAROW, 3
goto _01F1
_01EB:
setvar VAR_UNK_4114, 5
setvar VAR_LOAN_SPEAROW, 5
_01F1:
npc_msg msg_0378_R31_00008
wait_button_or_walk_away
@ -193,7 +193,7 @@ _0295:
end
_02AE:
setvar VAR_UNK_4114, 1
setvar VAR_LOAN_SPEAROW, 1
goto _0098
.byte 0x02, 0x00

View File

@ -44,9 +44,9 @@ scr_seq_R35R0101_000:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
compare VAR_UNK_4114, 1
compare VAR_LOAN_SPEAROW, 1
goto_if_eq _00BC
compare VAR_UNK_4114, 2
compare VAR_LOAN_SPEAROW, 2
goto_if_ge _0104
npc_msg msg_0388_R35R0101_00000
touchscreen_menu_hide
@ -59,7 +59,7 @@ scr_seq_R35R0101_000:
goto_if_eq _00F9
npc_msg msg_0388_R35R0101_00003
give_loan_mon 7, 20, 101
setvar VAR_UNK_4114, 1
setvar VAR_LOAN_SPEAROW, 1
buffer_players_name 0
npc_msg msg_0388_R35R0101_00004
play_fanfare SEQ_ME_PT_SPECIAL
@ -97,18 +97,18 @@ _00F9:
end
_0104:
compare VAR_UNK_4114, 4
compare VAR_LOAN_SPEAROW, 4
goto_if_ge _016D
npc_msg msg_0388_R35R0101_00007
goto_if_no_item_space ITEM_HP_UP, 1, _0163
callstd std_give_item_verbose
compare VAR_UNK_4114, 3
compare VAR_LOAN_SPEAROW, 3
goto_if_ne _0152
setvar VAR_UNK_4114, 5
setvar VAR_LOAN_SPEAROW, 5
goto _0158
_0152:
setvar VAR_UNK_4114, 4
setvar VAR_LOAN_SPEAROW, 4
_0158:
npc_msg msg_0388_R35R0101_00008
wait_button_or_walk_away
@ -130,7 +130,7 @@ _016D:
end
_0178:
setvar VAR_UNK_4114, 6
setvar VAR_LOAN_SPEAROW, 6
npc_msg msg_0388_R35R0101_00009
wait_button_or_walk_away
closemsg

View File

@ -288,7 +288,7 @@
#define VAR_UNK_4111 0x4111
#define VAR_UNK_4112 0x4112
#define VAR_ELEVATOR_LAST_FLOOR 0x4113
#define VAR_UNK_4114 0x4114
#define VAR_LOAN_SPEAROW 0x4114
#define VAR_NUM_TIMES_GIVEN_BLUE_CARD 0x4115
#define VAR_UNK_4116 0x4116
#define VAR_SCENE_POKECENTER_WIFI_BASEMENT 0x4117