Document Game Corner scripts

This commit is contained in:
GriffinR 2019-11-07 09:41:59 -05:00
parent 1475c4d8da
commit 43b7fd741a
9 changed files with 381 additions and 361 deletions

View File

@ -6,6 +6,7 @@
#include "constants/battle_setup.h"
#include "constants/berry.h"
#include "constants/cable_club.h"
#include "constants/coins.h"
#include "constants/contest.h"
#include "constants/daycare.h"
#include "constants/decorations.h"

View File

@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_210125",
"script": "MauvilleCity_GameCorner_EventScript_Woman2",
"flag": "0"
},
{
@ -37,7 +37,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_21012E",
"script": "MauvilleCity_GameCorner_EventScript_Gentleman",
"flag": "0"
},
{
@ -50,7 +50,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_20FBB9",
"script": "MauvilleCity_GameCorner_EventScript_CoinsClerk",
"flag": "0"
},
{
@ -63,7 +63,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_20FCF1",
"script": "MauvilleCity_GameCorner_EventScript_PrizeCornerDolls",
"flag": "0"
},
{
@ -76,7 +76,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_210137",
"script": "MauvilleCity_GameCorner_EventScript_Girl",
"flag": "0"
},
{
@ -89,7 +89,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_21021D",
"script": "MauvilleCity_GameCorner_EventScript_PokefanM",
"flag": "0"
},
{
@ -102,7 +102,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_210279",
"script": "MauvilleCity_GameCorner_EventScript_OldMan",
"flag": "0"
},
{
@ -115,7 +115,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_210289",
"script": "MauvilleCity_GameCorner_EventScript_Cook",
"flag": "0"
},
{
@ -128,7 +128,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_20FE9F",
"script": "MauvilleCity_GameCorner_EventScript_PrizeCornerTMs",
"flag": "0"
},
{
@ -141,7 +141,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_210299",
"script": "MauvilleCity_GameCorner_EventScript_Man",
"flag": "0"
},
{
@ -154,7 +154,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_2102B6",
"script": "MauvilleCity_GameCorner_EventScript_Maniac",
"flag": "0"
},
{
@ -167,7 +167,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_GameCorner_EventScript_2102C6",
"script": "MauvilleCity_GameCorner_EventScript_Woman",
"flag": "0"
}
],
@ -195,7 +195,7 @@
"y": 6,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_EAST",
"script": "MauvilleCity_GameCorner_EventScript_2102D6"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine0"
},
{
"type": "sign",
@ -203,7 +203,7 @@
"y": 8,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_EAST",
"script": "MauvilleCity_GameCorner_EventScript_2102F6"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine1"
},
{
"type": "sign",
@ -211,7 +211,7 @@
"y": 9,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_EAST",
"script": "MauvilleCity_GameCorner_EventScript_210316"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine2"
},
{
"type": "sign",
@ -219,7 +219,7 @@
"y": 7,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_WEST",
"script": "MauvilleCity_GameCorner_EventScript_210336"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine3"
},
{
"type": "sign",
@ -227,7 +227,7 @@
"y": 8,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_WEST",
"script": "MauvilleCity_GameCorner_EventScript_210356"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine4"
},
{
"type": "sign",
@ -235,7 +235,7 @@
"y": 9,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_WEST",
"script": "MauvilleCity_GameCorner_EventScript_210376"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine5"
},
{
"type": "sign",
@ -243,7 +243,7 @@
"y": 6,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_EAST",
"script": "MauvilleCity_GameCorner_EventScript_210396"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine6"
},
{
"type": "sign",
@ -251,7 +251,7 @@
"y": 7,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_EAST",
"script": "MauvilleCity_GameCorner_EventScript_2103B6"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine7"
},
{
"type": "sign",
@ -259,7 +259,7 @@
"y": 9,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_EAST",
"script": "MauvilleCity_GameCorner_EventScript_2103D6"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine8"
},
{
"type": "sign",
@ -267,7 +267,7 @@
"y": 6,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_WEST",
"script": "MauvilleCity_GameCorner_EventScript_2103F6"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine9"
},
{
"type": "sign",
@ -275,7 +275,7 @@
"y": 7,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_WEST",
"script": "MauvilleCity_GameCorner_EventScript_210416"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine10"
},
{
"type": "sign",
@ -283,7 +283,7 @@
"y": 9,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_WEST",
"script": "MauvilleCity_GameCorner_EventScript_210436"
"script": "MauvilleCity_GameCorner_EventScript_SlotMachine11"
},
{
"type": "sign",

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_House1_EventScript_20F976",
"script": "MauvilleCity_House1_EventScript_RockSmashDude",
"flag": "0"
}
],

View File

@ -1,24 +1,24 @@
MauvilleCity_House1_MapScripts:: @ 820F975
.byte 0
MauvilleCity_House1_EventScript_20F976:: @ 820F976
MauvilleCity_House1_EventScript_RockSmashDude:: @ 820F976
lock
faceplayer
goto_if_set FLAG_RECEIVED_HM06, MauvilleCity_House1_EventScript_20F9A5
msgbox MauvilleCity_House1_Text_20F9AF, MSGBOX_DEFAULT
goto_if_set FLAG_RECEIVED_HM06, MauvilleCity_House1_EventScript_ReceivedRockSmash
msgbox MauvilleCity_House1_Text_ImRockSmashDudeTakeThis, MSGBOX_DEFAULT
giveitem_std ITEM_HM06
setflag FLAG_RECEIVED_HM06
setflag FLAG_HIDE_ROUTE_111_ROCK_SMASH_TIP_GUY
msgbox MauvilleCity_House1_Text_20FAA9, MSGBOX_DEFAULT
msgbox MauvilleCity_House1_Text_ExplainRockSmash, MSGBOX_DEFAULT
release
end
MauvilleCity_House1_EventScript_20F9A5:: @ 820F9A5
msgbox MauvilleCity_House1_Text_20FB67, MSGBOX_DEFAULT
MauvilleCity_House1_EventScript_ReceivedRockSmash:: @ 820F9A5
msgbox MauvilleCity_House1_Text_MonCanFlyOutOfSmashedRock, MSGBOX_DEFAULT
release
end
MauvilleCity_House1_Text_20F9AF: @ 820F9AF
MauvilleCity_House1_Text_ImRockSmashDudeTakeThis: @ 820F9AF
.string "Woohoo!\p"
.string "I hear people call me the ROCK SMASH\n"
.string "GUY, but I find that sort of degrading.\p"
@ -30,7 +30,7 @@ MauvilleCity_House1_Text_20F9AF: @ 820F9AF
.string "I like that!\n"
.string "Here, take this HIDDEN MACHINE!$"
MauvilleCity_House1_Text_20FAA9: @ 820FAA9
MauvilleCity_House1_Text_ExplainRockSmash: @ 820FAA9
.string "That HM contains ROCK SMASH.\p"
.string "If you come across large boulders\n"
.string "that block your path…\p"
@ -39,7 +39,7 @@ MauvilleCity_House1_Text_20FAA9: @ 820FAA9
.string "Yes, sir! Smash rocks aside, I say!\n"
.string "Woohoo!$"
MauvilleCity_House1_Text_20FB67: @ 820FB67
MauvilleCity_House1_Text_MonCanFlyOutOfSmashedRock: @ 820FB67
.string "Oh, yes, if you smash a rock, a POKéMON\n"
.string "could come flying out of hiding.\p"
.string "Woohoo!$"

View File

@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_House2_EventScript_210C5D",
"script": "MauvilleCity_House2_EventScript_Woman",
"flag": "0"
}
],

View File

@ -1,67 +1,67 @@
MauvilleCity_House2_MapScripts:: @ 8210C5C
.byte 0
MauvilleCity_House2_EventScript_210C5D:: @ 8210C5D
MauvilleCity_House2_EventScript_Woman:: @ 8210C5D
lock
faceplayer
goto_if_set FLAG_RECEIVED_COIN_CASE, MauvilleCity_House2_EventScript_210CDA
msgbox MauvilleCity_House2_Text_210CEE, MSGBOX_DEFAULT
goto_if_set FLAG_RECEIVED_COIN_CASE, MauvilleCity_House2_EventScript_ReceivedCoinCase
msgbox MauvilleCity_House2_Text_BuyHarborMailAtSlateport, MSGBOX_DEFAULT
checkitem ITEM_HARBOR_MAIL, 1
compare VAR_RESULT, 1
goto_if_eq MauvilleCity_House2_EventScript_210C82
compare VAR_RESULT, TRUE
goto_if_eq MauvilleCity_House2_EventScript_AskToTradeForHarborMail
release
end
MauvilleCity_House2_EventScript_210C82:: @ 8210C82
MauvilleCity_House2_EventScript_AskToTradeForHarborMail:: @ 8210C82
playse SE_PIN
applymovement VAR_LAST_TALKED, Common_Movement_ExclamationMark
waitmovement 0
applymovement VAR_LAST_TALKED, Common_Movement_Delay48
waitmovement 0
msgbox MauvilleCity_House2_Text_210D76, MSGBOX_YESNO
msgbox MauvilleCity_House2_Text_TradeHarborMailForCoinCase, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq MauvilleCity_House2_EventScript_210CB8
goto_if_eq MauvilleCity_House2_EventScript_AcceptTrade
compare VAR_RESULT, NO
goto_if_eq MauvilleCity_House2_EventScript_210CE4
goto_if_eq MauvilleCity_House2_EventScript_DeclineTrade
end
MauvilleCity_House2_EventScript_210CB8:: @ 8210CB8
msgbox MauvilleCity_House2_Text_210DB3, MSGBOX_DEFAULT
MauvilleCity_House2_EventScript_AcceptTrade:: @ 8210CB8
msgbox MauvilleCity_House2_Text_IllTradeYouCoinCase, MSGBOX_DEFAULT
takeitem ITEM_HARBOR_MAIL, 1
giveitem_std ITEM_COIN_CASE
setflag FLAG_RECEIVED_COIN_CASE
goto MauvilleCity_House2_EventScript_210CDA
goto MauvilleCity_House2_EventScript_ReceivedCoinCase
end
MauvilleCity_House2_EventScript_210CDA:: @ 8210CDA
msgbox MauvilleCity_House2_Text_210DE7, MSGBOX_DEFAULT
MauvilleCity_House2_EventScript_ReceivedCoinCase:: @ 8210CDA
msgbox MauvilleCity_House2_Text_UseCoinCaseAtGameCorner, MSGBOX_DEFAULT
release
end
MauvilleCity_House2_EventScript_210CE4:: @ 8210CE4
msgbox MauvilleCity_House2_Text_210E16, MSGBOX_DEFAULT
MauvilleCity_House2_EventScript_DeclineTrade:: @ 8210CE4
msgbox MauvilleCity_House2_Text_ThatsDisappointing, MSGBOX_DEFAULT
release
end
MauvilleCity_House2_Text_210CEE: @ 8210CEE
MauvilleCity_House2_Text_BuyHarborMailAtSlateport: @ 8210CEE
.string "If I had a BIKE, it'd be easy to cycle to\n"
.string "SLATEPORT for some shopping.\p"
.string "I'd be able to buy HARBOR MAIL at the\n"
.string "POKéMON MART in SLATEPORT…$"
MauvilleCity_House2_Text_210D76: @ 8210D76
MauvilleCity_House2_Text_TradeHarborMailForCoinCase: @ 8210D76
.string "Oh! You have HARBOR MAIL?\n"
.string "Will you trade it for a COIN CASE?$"
MauvilleCity_House2_Text_210DB3: @ 8210DB3
MauvilleCity_House2_Text_IllTradeYouCoinCase: @ 8210DB3
.string "Oh, I'm so happy!\n"
.string "Okay, I'll trade you a COIN CASE!$"
MauvilleCity_House2_Text_210DE7: @ 8210DE7
MauvilleCity_House2_Text_UseCoinCaseAtGameCorner: @ 8210DE7
.string "That COIN CASE can be used\n"
.string "at the GAME CORNER.$"
MauvilleCity_House2_Text_210E16: @ 8210E16
MauvilleCity_House2_Text_ThatsDisappointing: @ 8210E16
.string "Oh, that's disappointing.\p"
.string "A COIN CASE is needed for the\n"
.string "GAME CORNER.$"

View File

@ -0,0 +1,6 @@
#ifndef GUARD_CONSTANTS_COINS_H
#define GUARD_CONSTANTS_COINS_H
#define MAX_COINS 9999
#endif // GUARD_CONSTANTS_COINS_H

View File

@ -6,8 +6,7 @@
#include "string_util.h"
#include "menu.h"
#include "international_string_util.h"
#define MAX_COINS 9999
#include "constants/coins.h"
EWRAM_DATA u8 sCoinsWindowId = 0;