summaryrefslogtreecommitdiff
path: root/data/scripts/day_care.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/scripts/day_care.inc')
-rw-r--r--data/scripts/day_care.inc108
1 files changed, 54 insertions, 54 deletions
diff --git a/data/scripts/day_care.inc b/data/scripts/day_care.inc
index 34ba18f08..1a7e56cfd 100644
--- a/data/scripts/day_care.inc
+++ b/data/scripts/day_care.inc
@@ -2,12 +2,12 @@ Route117_EventScript_1B222D:: @ 81B222D
lock
faceplayer
special GetDaycareMonNicknames
- specialvar RESULT, GetDaycareState
- compare RESULT, 1
+ specialvar VAR_RESULT, GetDaycareState
+ compare VAR_RESULT, 1
goto_if_eq Route117_EventScript_1B2262
- compare RESULT, 2
+ compare VAR_RESULT, 2
goto_if_eq Route117_EventScript_1B22E7
- compare RESULT, 3
+ compare VAR_RESULT, 3
goto_if_eq Route117_EventScript_1B22FE
msgbox Route117_Text_1B25CB, 4
release
@@ -15,10 +15,10 @@ Route117_EventScript_1B222D:: @ 81B222D
Route117_EventScript_1B2262:: @ 81B2262
msgbox Route117_Text_1B2659, MSGBOX_YESNO
- compare RESULT, YES
+ compare VAR_RESULT, YES
goto_if_eq Route117_EventScript_1B2298
msgbox Route117_Text_1B28C4, MSGBOX_YESNO
- compare RESULT, YES
+ compare VAR_RESULT, YES
goto_if_eq Route117_EventScript_1B2298
msgbox Route117_Text_1B2745, 4
clearflag FLAG_PENDING_DAYCARE_EGG
@@ -27,8 +27,8 @@ Route117_EventScript_1B2262:: @ 81B2262
end
Route117_EventScript_1B2298:: @ 81B2298
- specialvar RESULT, CalculatePlayerPartyCount
- compare RESULT, 6
+ specialvar VAR_RESULT, CalculatePlayerPartyCount
+ compare VAR_RESULT, 6
goto_if_ne Route117_EventScript_1B22B2
msgbox Route117_Text_1B2766, 4
release
@@ -47,8 +47,8 @@ Route117_EventScript_1B22B2:: @ 81B22B2
end
Route117_EventScript_1B22CD:: @ 81B22CD
- specialvar RESULT, DaycareMonReceivedMail
- compare RESULT, 1
+ specialvar VAR_RESULT, DaycareMonReceivedMail
+ compare VAR_RESULT, 1
call_if_eq Route117_EventScript_1B22DE
return
@@ -59,7 +59,7 @@ Route117_EventScript_1B22DE:: @ 81B22DE
Route117_EventScript_1B22E7:: @ 81B22E7
special GetDaycareMonNicknames
msgbox Route117_Text_1B2710, 4
- setvar VAR_SPECIAL_4, 0
+ setvar VAR_0x8004, 0
call Route117_EventScript_1B22CD
release
end
@@ -71,9 +71,9 @@ Route117_EventScript_1B22FE:: @ 81B22FE
special ShowFieldMessageStringVar4
waitmessage
waitbuttonpress
- setvar VAR_SPECIAL_4, 0
+ setvar VAR_0x8004, 0
call Route117_EventScript_1B22CD
- setvar VAR_SPECIAL_4, 1
+ setvar VAR_0x8004, 1
call Route117_EventScript_1B22CD
release
end
@@ -81,42 +81,42 @@ Route117_EventScript_1B22FE:: @ 81B22FE
Route117_PokemonDayCare_EventScript_1B2327:: @ 81B2327
lock
faceplayer
- specialvar RESULT, GetDaycareState
- compare RESULT, 1
+ specialvar VAR_RESULT, GetDaycareState
+ compare VAR_RESULT, 1
goto_if_eq Route117_PokemonDayCare_EventScript_1B2407
- compare RESULT, 2
+ compare VAR_RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B242B
- compare RESULT, 3
+ compare VAR_RESULT, 3
goto_if_eq Route117_PokemonDayCare_EventScript_1B2558
msgbox Route117_PokemonDayCare_Text_1B28F2, MSGBOX_YESNO
- compare RESULT, YES
+ compare VAR_RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B236C
msgbox Route117_PokemonDayCare_Text_1B2A14, 4
release
end
Route117_PokemonDayCare_EventScript_1B236C:: @ 81B236C
- specialvar RESULT, GetNumValidDaycarePartyMons
- compare RESULT, 1
+ specialvar VAR_RESULT, GetNumValidDaycarePartyMons
+ compare VAR_RESULT, 1
goto_if_eq Route117_PokemonDayCare_EventScript_1B23F3
msgbox Route117_PokemonDayCare_Text_1B2947, 4
fadescreen 1
special ChooseSendDaycareMon
waitstate
- compare VAR_SPECIAL_4, 255
+ compare VAR_0x8004, 255
goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
- specialvar RESULT, CountAlivePartyMonsExceptSelectedOne
- compare RESULT, 0
+ specialvar VAR_RESULT, CountAlivePartyMonsExceptSelectedOne
+ compare VAR_RESULT, 0
goto_if_eq Route117_PokemonDayCare_EventScript_1B23FD
- specialvar VAR_SPECIAL_5, GetSelectedDaycareMonNickname
+ specialvar VAR_0x8005, GetSelectedDaycareMonNickname
waitse
- playmoncry VAR_SPECIAL_5, 0
+ playmoncry VAR_0x8005, 0
msgbox Route117_PokemonDayCare_Text_1B296E, 4
waitmoncry
special StoreSelectedPokemonInDaycare
incrementgamestat GAME_STAT_USED_DAYCARE
- specialvar RESULT, GetDaycareState
- compare RESULT, 2
+ specialvar VAR_RESULT, GetDaycareState
+ compare VAR_RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B23DA
release
end
@@ -128,7 +128,7 @@ Route117_PokemonDayCare_EventScript_1B23D0:: @ 81B23D0
Route117_PokemonDayCare_EventScript_1B23DA:: @ 81B23DA
msgbox Route117_PokemonDayCare_Text_1B29AD, MSGBOX_YESNO
- compare RESULT, YES
+ compare VAR_RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B236C
goto Route117_PokemonDayCare_EventScript_1B23D0
end
@@ -153,36 +153,36 @@ Route117_PokemonDayCare_EventScript_1B2411:: @ 81B2411
return
Route117_PokemonDayCare_EventScript_1B241A:: @ 81B241A
- specialvar RESULT, GetNumLevelsGainedFromDaycare
- compare RESULT, 0
+ specialvar VAR_RESULT, GetNumLevelsGainedFromDaycare
+ compare VAR_RESULT, 0
call_if_ne Route117_PokemonDayCare_EventScript_1B2411
return
Route117_PokemonDayCare_EventScript_1B242B:: @ 81B242B
msgbox Route117_PokemonDayCare_Text_1B2A88, 4
- setvar VAR_SPECIAL_4, 0
+ setvar VAR_0x8004, 0
call Route117_PokemonDayCare_EventScript_1B241A
msgbox Route117_PokemonDayCare_Text_1B29AD, MSGBOX_YESNO
- compare RESULT, YES
+ compare VAR_RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B236C
msgbox Route117_PokemonDayCare_Text_1B2BF6, MSGBOX_YESNO
- compare RESULT, YES
+ compare VAR_RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B2469
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B2469:: @ 81B2469
- specialvar RESULT, CalculatePlayerPartyCount
- compare RESULT, 6
+ specialvar VAR_RESULT, CalculatePlayerPartyCount
+ compare VAR_RESULT, 6
goto_if_eq Route117_PokemonDayCare_EventScript_1B2539
- specialvar RESULT, GetDaycareState
- setvar VAR_SPECIAL_4, 0
- compare RESULT, 2
+ specialvar VAR_RESULT, GetDaycareState
+ setvar VAR_0x8004, 0
+ compare VAR_RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B24A8
special ShowDaycareLevelMenu
waitstate
- copyvar VAR_SPECIAL_4, RESULT
- compare RESULT, 2
+ copyvar VAR_0x8004, VAR_RESULT
+ compare VAR_RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
goto Route117_PokemonDayCare_EventScript_1B24A8
end
@@ -190,14 +190,14 @@ Route117_PokemonDayCare_EventScript_1B2469:: @ 81B2469
Route117_PokemonDayCare_EventScript_1B24A8:: @ 81B24A8
special GetDaycareCost
msgbox Route117_PokemonDayCare_Text_1B2B49, MSGBOX_YESNO
- compare RESULT, YES
+ compare VAR_RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B24C4
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B24C4:: @ 81B24C4
- specialvar RESULT, HasEnoughMoneyFor
- compare RESULT, 1
+ specialvar VAR_RESULT, HasEnoughMoneyFor
+ compare VAR_RESULT, 1
goto_if_eq Route117_PokemonDayCare_EventScript_1B24DE
msgbox Route117_PokemonDayCare_Text_1B2A30, 4
release
@@ -206,23 +206,23 @@ Route117_PokemonDayCare_EventScript_1B24C4:: @ 81B24C4
Route117_PokemonDayCare_EventScript_1B24DE:: @ 81B24DE
applymovement 1, Route117_PokemonDayCare_Movement_1B2543
waitmovement 0
- specialvar RESULT, TakePokemonFromDaycare
+ specialvar VAR_RESULT, TakePokemonFromDaycare
special PayMoneyFor
playse SE_REGI
msgbox Route117_PokemonDayCare_Text_1B2B75, 4
waitse
- playmoncry RESULT, 0
+ playmoncry VAR_RESULT, 0
msgbox Route117_PokemonDayCare_Text_1B2B93, 4
waitmoncry
- specialvar RESULT, GetDaycareState
- compare RESULT, 2
+ specialvar VAR_RESULT, GetDaycareState
+ compare VAR_RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B2520
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B2520:: @ 81B2520
msgbox Route117_PokemonDayCare_Text_1B2A4F, MSGBOX_YESNO
- compare RESULT, YES
+ compare VAR_RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B2469
goto Route117_PokemonDayCare_EventScript_1B23D0
end
@@ -259,12 +259,12 @@ Route117_PokemonDayCare_Movement_1B2543:: @ 81B2543
Route117_PokemonDayCare_EventScript_1B2558:: @ 81B2558
msgbox Route117_PokemonDayCare_Text_1B2A88, 4
- setvar VAR_SPECIAL_4, 0
+ setvar VAR_0x8004, 0
call Route117_PokemonDayCare_EventScript_1B241A
- setvar VAR_SPECIAL_4, 1
+ setvar VAR_0x8004, 1
call Route117_PokemonDayCare_EventScript_1B241A
msgbox Route117_PokemonDayCare_Text_1B2BF6, MSGBOX_YESNO
- compare RESULT, YES
+ compare VAR_RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B2469
msgbox Route117_PokemonDayCare_Text_1B2A76, 4
release
@@ -273,10 +273,10 @@ Route117_PokemonDayCare_EventScript_1B2558:: @ 81B2558
@ 81B2591
special ShowDaycareLevelMenu
waitstate
- compare RESULT, 2
+ compare VAR_RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
- copyvar VAR_SPECIAL_4, RESULT
- specialvar RESULT, TakePokemonFromDaycare
+ copyvar VAR_0x8004, VAR_RESULT
+ specialvar VAR_RESULT, TakePokemonFromDaycare
msgbox Route117_PokemonDayCare_Text_1B2B75, 4
msgbox Route117_PokemonDayCare_Text_1B2A76, 4
release