summaryrefslogtreecommitdiff
path: root/data/maps/MauvilleCity_GameCorner/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/MauvilleCity_GameCorner/scripts.inc')
-rw-r--r--data/maps/MauvilleCity_GameCorner/scripts.inc136
1 files changed, 68 insertions, 68 deletions
diff --git a/data/maps/MauvilleCity_GameCorner/scripts.inc b/data/maps/MauvilleCity_GameCorner/scripts.inc
index 8026e3b08..3e439332f 100644
--- a/data/maps/MauvilleCity_GameCorner/scripts.inc
+++ b/data/maps/MauvilleCity_GameCorner/scripts.inc
@@ -4,7 +4,7 @@ MauvilleCity_GameCorner_MapScripts:: @ 8156A33
MauvilleCity_GameCorner_EventScript_156A34:: @ 8156A34
lock
faceplayer
- msgbox MauvilleCity_GameCorner_Text_181C35, 4
+ msgbox MauvilleCity_GameCorner_Text_181C35, MSGBOX_DEFAULT
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156B32
@@ -35,16 +35,16 @@ MauvilleCity_GameCorner_EventScript_156AAE:: @ 8156AAE
checkcoins VAR_TEMP_1
compare VAR_TEMP_1, 9950
goto_if_ge MauvilleCity_GameCorner_EventScript_156B5C
- checkmoney 0x3e8, 0
+ checkmoney 1000, 0
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156B3C
- givecoins 50
- takemoney 0x3e8, 0
+ addcoins 50
+ removemoney 1000, 0
updatemoneybox 0, 0
nop
updatecoinsbox 0, 5
playse SE_REGI
- msgbox MauvilleCity_GameCorner_Text_181CFE, 4
+ msgbox MauvilleCity_GameCorner_Text_181CFE, MSGBOX_DEFAULT
hidemoneybox 0, 0
hidecoinsbox 0, 5
release
@@ -54,42 +54,42 @@ MauvilleCity_GameCorner_EventScript_156AF0:: @ 8156AF0
checkcoins VAR_TEMP_1
compare VAR_TEMP_1, 9500
goto_if_ge MauvilleCity_GameCorner_EventScript_156B5C
- checkmoney 0x2710, 0
+ checkmoney 10000, 0
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156B3C
- givecoins 500
- takemoney 0x2710, 0
+ addcoins 500
+ removemoney 10000, 0
updatemoneybox 0, 0
nop
updatecoinsbox 0, 5
playse SE_REGI
- msgbox MauvilleCity_GameCorner_Text_181CFE, 4
+ msgbox MauvilleCity_GameCorner_Text_181CFE, MSGBOX_DEFAULT
hidemoneybox 0, 0
hidecoinsbox 0, 5
release
end
MauvilleCity_GameCorner_EventScript_156B32:: @ 8156B32
- msgbox MauvilleCity_GameCorner_Text_181C53, 4
+ msgbox MauvilleCity_GameCorner_Text_181C53, MSGBOX_DEFAULT
release
end
MauvilleCity_GameCorner_EventScript_156B3C:: @ 8156B3C
- msgbox MauvilleCity_GameCorner_Text_181D28, 4
+ msgbox MauvilleCity_GameCorner_Text_181D28, MSGBOX_DEFAULT
hidemoneybox 0, 0
hidecoinsbox 0, 5
release
end
MauvilleCity_GameCorner_EventScript_156B4C:: @ 8156B4C
- msgbox MauvilleCity_GameCorner_Text_181D73, 4
+ msgbox MauvilleCity_GameCorner_Text_181D73, MSGBOX_DEFAULT
hidemoneybox 0, 0
hidecoinsbox 0, 5
release
end
MauvilleCity_GameCorner_EventScript_156B5C:: @ 8156B5C
- msgbox MauvilleCity_GameCorner_Text_181D57, 4
+ msgbox MauvilleCity_GameCorner_Text_181D57, MSGBOX_DEFAULT
hidemoneybox 0, 0
hidecoinsbox 0, 5
release
@@ -98,7 +98,7 @@ MauvilleCity_GameCorner_EventScript_156B5C:: @ 8156B5C
MauvilleCity_GameCorner_EventScript_156B6C:: @ 8156B6C
lock
faceplayer
- msgbox MauvilleCity_GameCorner_Text_181DE1, 4
+ msgbox MauvilleCity_GameCorner_Text_181DE1, MSGBOX_DEFAULT
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 1
goto_if_eq MauvilleCity_GameCorner_EventScript_156B88
@@ -160,11 +160,11 @@ MauvilleCity_GameCorner_EventScript_156C46:: @ 8156C46
checkdecorspace DECOR_TREECKO_DOLL
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
- takecoins 1000
- givedecoration DECOR_TREECKO_DOLL
+ removecoins 1000
+ adddecoration DECOR_TREECKO_DOLL
updatecoinsbox 0, 0
playse SE_REGI
- msgbox MauvilleCity_GameCorner_Text_181E49, 4
+ msgbox MauvilleCity_GameCorner_Text_181E49, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_156B9B
end
@@ -176,11 +176,11 @@ MauvilleCity_GameCorner_EventScript_156C80:: @ 8156C80
checkdecorspace DECOR_TORCHIC_DOLL
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
- takecoins 1000
- givedecoration DECOR_TORCHIC_DOLL
+ removecoins 1000
+ adddecoration DECOR_TORCHIC_DOLL
updatecoinsbox 0, 0
playse SE_REGI
- msgbox MauvilleCity_GameCorner_Text_181E49, 4
+ msgbox MauvilleCity_GameCorner_Text_181E49, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_156B9B
end
@@ -192,26 +192,26 @@ MauvilleCity_GameCorner_EventScript_156CBA:: @ 8156CBA
checkdecorspace DECOR_MUDKIP_DOLL
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
- takecoins 1000
- givedecoration DECOR_MUDKIP_DOLL
+ removecoins 1000
+ adddecoration DECOR_MUDKIP_DOLL
updatecoinsbox 0, 0
playse SE_REGI
- msgbox MauvilleCity_GameCorner_Text_181E49, 4
+ msgbox MauvilleCity_GameCorner_Text_181E49, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_156B9B
end
MauvilleCity_GameCorner_EventScript_156CF4:: @ 8156CF4
- msgbox MauvilleCity_GameCorner_Text_181E76, 4
+ msgbox MauvilleCity_GameCorner_Text_181E76, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_156B9B
end
MauvilleCity_GameCorner_EventScript_156D02:: @ 8156D02
- call MauvilleCity_GameCorner_EventScript_1A02B8
+ call Common_EventScript_NoRoomForDecor
goto MauvilleCity_GameCorner_EventScript_156B9B
end
MauvilleCity_GameCorner_EventScript_156D0D:: @ 8156D0D
- msgbox MauvilleCity_GameCorner_Text_181EC2, 4
+ msgbox MauvilleCity_GameCorner_Text_181EC2, MSGBOX_DEFAULT
hidecoinsbox 0, 0
release
end
@@ -219,7 +219,7 @@ MauvilleCity_GameCorner_EventScript_156D0D:: @ 8156D0D
MauvilleCity_GameCorner_EventScript_156D1A:: @ 8156D1A
lock
faceplayer
- msgbox MauvilleCity_GameCorner_Text_181DE1, 4
+ msgbox MauvilleCity_GameCorner_Text_181DE1, MSGBOX_DEFAULT
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 1
goto_if_eq MauvilleCity_GameCorner_EventScript_156D36
@@ -294,11 +294,11 @@ MauvilleCity_GameCorner_EventScript_156E3C:: @ 8156E3C
checkitemspace ITEM_TM32_DOUBLE_TEAM, 1
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
- takecoins 1500
- giveitem ITEM_TM32_DOUBLE_TEAM, 1
+ removecoins 1500
+ additem ITEM_TM32_DOUBLE_TEAM
updatecoinsbox 0, 0
playse SE_REGI
- msgbox MauvilleCity_GameCorner_Text_181F08, 4
+ msgbox MauvilleCity_GameCorner_Text_181F08, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_156D49
end
@@ -309,11 +309,11 @@ MauvilleCity_GameCorner_EventScript_156E76:: @ 8156E76
checkitemspace ITEM_TM29_PSYCHIC, 1
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
- takecoins 3500
- giveitem ITEM_TM29_PSYCHIC, 1
+ removecoins 3500
+ additem ITEM_TM29_PSYCHIC
updatecoinsbox 0, 0
playse SE_REGI
- msgbox MauvilleCity_GameCorner_Text_181F08, 4
+ msgbox MauvilleCity_GameCorner_Text_181F08, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_156D49
end
@@ -324,11 +324,11 @@ MauvilleCity_GameCorner_EventScript_156EB0:: @ 8156EB0
checkitemspace ITEM_TM35_FLAMETHROWER, 1
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
- takecoins 4000
- giveitem ITEM_TM35_FLAMETHROWER, 1
+ removecoins 4000
+ additem ITEM_TM35_FLAMETHROWER
updatecoinsbox 0, 0
playse SE_REGI
- msgbox MauvilleCity_GameCorner_Text_181F08, 4
+ msgbox MauvilleCity_GameCorner_Text_181F08, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_156D49
end
@@ -339,11 +339,11 @@ MauvilleCity_GameCorner_EventScript_156EEA:: @ 8156EEA
checkitemspace ITEM_TM24_THUNDERBOLT, 1
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
- takecoins 4000
- giveitem ITEM_TM24_THUNDERBOLT, 1
+ removecoins 4000
+ additem ITEM_TM24_THUNDERBOLT
updatecoinsbox 0, 0
playse SE_REGI
- msgbox MauvilleCity_GameCorner_Text_181F08, 4
+ msgbox MauvilleCity_GameCorner_Text_181F08, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_156D49
end
@@ -354,36 +354,36 @@ MauvilleCity_GameCorner_EventScript_156F24:: @ 8156F24
checkitemspace ITEM_TM13_ICE_BEAM, 1
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
- takecoins 4000
- giveitem ITEM_TM13_ICE_BEAM, 1
+ removecoins 4000
+ additem ITEM_TM13_ICE_BEAM
updatecoinsbox 0, 0
playse SE_REGI
- msgbox MauvilleCity_GameCorner_Text_181F08, 4
+ msgbox MauvilleCity_GameCorner_Text_181F08, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_156D49
end
MauvilleCity_GameCorner_EventScript_156F5E:: @ 8156F5E
- msgbox MauvilleCity_GameCorner_Text_181E76, 4
+ msgbox MauvilleCity_GameCorner_Text_181E76, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_156D49
end
MauvilleCity_GameCorner_EventScript_156F6C:: @ 8156F6C
- call MauvilleCity_GameCorner_EventScript_1A02A5
+ call Common_EventScript_BagIsFull
goto MauvilleCity_GameCorner_EventScript_156D49
end
MauvilleCity_GameCorner_EventScript_156F77:: @ 8156F77
- msgbox MauvilleCity_GameCorner_Text_181EC2, 4
+ msgbox MauvilleCity_GameCorner_Text_181EC2, MSGBOX_DEFAULT
hidecoinsbox 0, 0
release
end
MauvilleCity_GameCorner_EventScript_156F84:: @ 8156F84
- msgbox MauvilleCity_GameCorner_Text_1821C1, 2
+ msgbox MauvilleCity_GameCorner_Text_1821C1, MSGBOX_NPC
end
MauvilleCity_GameCorner_EventScript_156F8D:: @ 8156F8D
- msgbox MauvilleCity_GameCorner_Text_1821F3, 2
+ msgbox MauvilleCity_GameCorner_Text_1821F3, MSGBOX_NPC
end
MauvilleCity_GameCorner_EventScript_156F96:: @ 8156F96
@@ -404,8 +404,8 @@ MauvilleCity_GameCorner_EventScript_156FDB:: @ 8156FDB
checkdecorspace DECOR_TREECKO_DOLL
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_157059
- msgbox MauvilleCity_GameCorner_Text_181F89, 4
- givedecoration_std DECOR_TREECKO_DOLL
+ msgbox MauvilleCity_GameCorner_Text_181F89, MSGBOX_DEFAULT
+ givedecoration DECOR_TREECKO_DOLL
setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_157072
end
@@ -415,8 +415,8 @@ MauvilleCity_GameCorner_EventScript_157005:: @ 8157005
checkdecorspace DECOR_TORCHIC_DOLL
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_157059
- msgbox MauvilleCity_GameCorner_Text_181F89, 4
- givedecoration_std DECOR_TORCHIC_DOLL
+ msgbox MauvilleCity_GameCorner_Text_181F89, MSGBOX_DEFAULT
+ givedecoration DECOR_TORCHIC_DOLL
setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_157072
end
@@ -426,25 +426,25 @@ MauvilleCity_GameCorner_EventScript_15702F:: @ 815702F
checkdecorspace DECOR_MUDKIP_DOLL
compare VAR_RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_157059
- msgbox MauvilleCity_GameCorner_Text_181F89, 4
- givedecoration_std DECOR_MUDKIP_DOLL
+ msgbox MauvilleCity_GameCorner_Text_181F89, MSGBOX_DEFAULT
+ givedecoration DECOR_MUDKIP_DOLL
setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_157072
end
MauvilleCity_GameCorner_EventScript_157059:: @ 8157059
- call MauvilleCity_GameCorner_EventScript_1A02B8
- msgbox MauvilleCity_GameCorner_Text_181F97, 4
+ call Common_EventScript_NoRoomForDecor
+ msgbox MauvilleCity_GameCorner_Text_181F97, MSGBOX_DEFAULT
release
end
MauvilleCity_GameCorner_EventScript_157068:: @ 8157068
- msgbox MauvilleCity_GameCorner_Text_181FBC, 4
+ msgbox MauvilleCity_GameCorner_Text_181FBC, MSGBOX_DEFAULT
release
end
MauvilleCity_GameCorner_EventScript_157072:: @ 8157072
- msgbox MauvilleCity_GameCorner_Text_181FE9, 4
+ msgbox MauvilleCity_GameCorner_Text_181FE9, MSGBOX_DEFAULT
release
end
@@ -454,7 +454,7 @@ MauvilleCity_GameCorner_EventScript_15707C:: @ 815707C
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 1
goto_if_eq MauvilleCity_GameCorner_EventScript_15709C
- msgbox MauvilleCity_GameCorner_Text_18201E, 4
+ msgbox MauvilleCity_GameCorner_Text_18201E, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_157108
end
@@ -464,41 +464,41 @@ MauvilleCity_GameCorner_EventScript_15709C:: @ 815709C
compare VAR_TEMP_1, 1
goto_if_ge MauvilleCity_GameCorner_EventScript_1570CA
setflag FLAG_RECEIVED_20_COINS
- givecoins 20
- msgbox MauvilleCity_GameCorner_Text_18208E, 4
+ addcoins 20
+ msgbox MauvilleCity_GameCorner_Text_18208E, MSGBOX_DEFAULT
playse SE_REGI
goto MauvilleCity_GameCorner_EventScript_1570CA
end
MauvilleCity_GameCorner_EventScript_1570CA:: @ 81570CA
- msgbox MauvilleCity_GameCorner_Text_1820DD, 4
+ msgbox MauvilleCity_GameCorner_Text_1820DD, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_157108
end
MauvilleCity_GameCorner_EventScript_1570D8:: @ 81570D8
lock
faceplayer
- msgbox MauvilleCity_GameCorner_Text_182120, 4
+ msgbox MauvilleCity_GameCorner_Text_182120, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_157108
end
MauvilleCity_GameCorner_EventScript_1570E8:: @ 81570E8
lock
faceplayer
- msgbox MauvilleCity_GameCorner_Text_18217C, 4
+ msgbox MauvilleCity_GameCorner_Text_18217C, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_157108
end
MauvilleCity_GameCorner_EventScript_1570F8:: @ 81570F8
lock
faceplayer
- msgbox MauvilleCity_GameCorner_Text_182241, 4
+ msgbox MauvilleCity_GameCorner_Text_182241, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_157108
end
MauvilleCity_GameCorner_EventScript_157108:: @ 8157108
closemessage
- applymovement VAR_LAST_TALKED, MauvilleCity_GameCorner_Movement_1A083D
+ applymovement VAR_LAST_TALKED, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
@@ -506,14 +506,14 @@ MauvilleCity_GameCorner_EventScript_157108:: @ 8157108
MauvilleCity_GameCorner_EventScript_157115:: @ 8157115
lock
faceplayer
- msgbox MauvilleCity_GameCorner_Text_182272, 4
+ msgbox MauvilleCity_GameCorner_Text_182272, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_157108
end
MauvilleCity_GameCorner_EventScript_157125:: @ 8157125
lock
faceplayer
- msgbox MauvilleCity_GameCorner_Text_1822F4, 4
+ msgbox MauvilleCity_GameCorner_Text_1822F4, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_157108
end
@@ -650,6 +650,6 @@ MauvilleCity_GameCorner_EventScript_157295:: @ 8157295
end
MauvilleCity_GameCorner_EventScript_1572B5:: @ 81572B5
- msgbox MauvilleCity_GameCorner_Text_182420, 4
+ msgbox MauvilleCity_GameCorner_Text_182420, MSGBOX_DEFAULT
releaseall
end