mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
Label Trend Watcher TV show texts
This commit is contained in:
parent
86856098a3
commit
771a434730
@ -1229,7 +1229,7 @@ gTVTodaysRivalTrainerText06:: @ 082849AE
|
|||||||
.string "Let's all keep moving forward\n"
|
.string "Let's all keep moving forward\n"
|
||||||
.string "and ahead of our rivals!$"
|
.string "and ahead of our rivals!$"
|
||||||
|
|
||||||
gTVDewfordTrendWatcherNetworkText00:: @ 08284A3E
|
TrendWatcher_Text_Intro:: @ 08284A3E
|
||||||
.string "DEWFORD TREND-WATCHER NETWORK!\p"
|
.string "DEWFORD TREND-WATCHER NETWORK!\p"
|
||||||
.string "MC: Wassup?\n"
|
.string "MC: Wassup?\n"
|
||||||
.string "We'll keep it real with the latest on\l"
|
.string "We'll keep it real with the latest on\l"
|
||||||
@ -1251,17 +1251,18 @@ gTVDewfordTrendWatcherNetworkText00:: @ 08284A3E
|
|||||||
.string "MC: Uh, no. What we want to know is\n"
|
.string "MC: Uh, no. What we want to know is\n"
|
||||||
.string "what's the in thing of the moment…$"
|
.string "what's the in thing of the moment…$"
|
||||||
|
|
||||||
gTVDewfordTrendWatcherNetworkText01:: @ 08284C55
|
@ Identical to below, may have been different in other languages
|
||||||
|
TrendWatcher_Text_MaleTaughtMePhrase:: @ 08284C55
|
||||||
.string "Old man: {STR_VAR_1} {STR_VAR_2}\n"
|
.string "Old man: {STR_VAR_1} {STR_VAR_2}\n"
|
||||||
.string "was what {STR_VAR_3} from LITTLEROOT\l"
|
.string "was what {STR_VAR_3} from LITTLEROOT\l"
|
||||||
.string "taught me as being trendy…$"
|
.string "taught me as being trendy…$"
|
||||||
|
|
||||||
gTVDewfordTrendWatcherNetworkText02:: @ 08284C9B
|
TrendWatcher_Text_FemaleTaughtMePhrase:: @ 08284C9B
|
||||||
.string "Old man: {STR_VAR_1} {STR_VAR_2}\n"
|
.string "Old man: {STR_VAR_1} {STR_VAR_2}\n"
|
||||||
.string "was what {STR_VAR_3} from LITTLEROOT\l"
|
.string "was what {STR_VAR_3} from LITTLEROOT\l"
|
||||||
.string "taught me as being trendy…$"
|
.string "taught me as being trendy…$"
|
||||||
|
|
||||||
gTVDewfordTrendWatcherNetworkText03:: @ 08284CE1
|
TrendWatcher_Text_PhraseWasHopeless:: @ 08284CE1
|
||||||
.string "But it was utterly hopeless.\p"
|
.string "But it was utterly hopeless.\p"
|
||||||
.string "{STR_VAR_1} {STR_VAR_2} festival!\p"
|
.string "{STR_VAR_1} {STR_VAR_2} festival!\p"
|
||||||
.string "{STR_VAR_1} {STR_VAR_2} contest!\p"
|
.string "{STR_VAR_1} {STR_VAR_2} contest!\p"
|
||||||
@ -1272,17 +1273,18 @@ gTVDewfordTrendWatcherNetworkText03:: @ 08284CE1
|
|||||||
.string "MC: Uh, excuse me, compadre, I need\n"
|
.string "MC: Uh, excuse me, compadre, I need\n"
|
||||||
.string "to hear about what's in now…$"
|
.string "to hear about what's in now…$"
|
||||||
|
|
||||||
gTVDewfordTrendWatcherNetworkText04:: @ 08284DB6
|
@ Identical to below, may have been different in other languages
|
||||||
|
TrendWatcher_Text_MaleTellMeBigger:: @ 08284DB6
|
||||||
.string "Old man: {STR_VAR_3}!\n"
|
.string "Old man: {STR_VAR_3}!\n"
|
||||||
.string "Please, tell me something bigger than\l"
|
.string "Please, tell me something bigger than\l"
|
||||||
.string "that {STR_VAR_1} {STR_VAR_2}!$"
|
.string "that {STR_VAR_1} {STR_VAR_2}!$"
|
||||||
|
|
||||||
gTVDewfordTrendWatcherNetworkText05:: @ 08284DF5
|
TrendWatcher_Text_FemaleTellMeBigger:: @ 08284DF5
|
||||||
.string "Old man: {STR_VAR_3}!\n"
|
.string "Old man: {STR_VAR_3}!\n"
|
||||||
.string "Please, tell me something bigger than\l"
|
.string "Please, tell me something bigger than\l"
|
||||||
.string "that {STR_VAR_1} {STR_VAR_2}!$"
|
.string "that {STR_VAR_1} {STR_VAR_2}!$"
|
||||||
|
|
||||||
gTVDewfordTrendWatcherNetworkText06:: @ 08284E34
|
TrendWatcher_Text_Outro:: @ 08284E34
|
||||||
.string "MC: …Uh… So, there you have it,\n"
|
.string "MC: …Uh… So, there you have it,\n"
|
||||||
.string "all you trendy, hep cats out there!\p"
|
.string "all you trendy, hep cats out there!\p"
|
||||||
.string "{STR_VAR_1} {STR_VAR_2}…uh…\n"
|
.string "{STR_VAR_1} {STR_VAR_2}…uh…\n"
|
||||||
|
@ -206,4 +206,13 @@
|
|||||||
#define SPOTCUTIES_STATE_RIBBON_EFFORT 14
|
#define SPOTCUTIES_STATE_RIBBON_EFFORT 14
|
||||||
#define SPOTCUTIES_STATE_OUTRO 15
|
#define SPOTCUTIES_STATE_OUTRO 15
|
||||||
|
|
||||||
|
// TV Show states for Trend Watcher
|
||||||
|
#define TRENDWATCHER_STATE_INTRO 0
|
||||||
|
#define TRENDWATCHER_STATE_TAUGHT_MALE 1
|
||||||
|
#define TRENDWATCHER_STATE_TAUGHT_FEMALE 2
|
||||||
|
#define TRENDWATCHER_STATE_PHRASE_HOPELESS 3
|
||||||
|
#define TRENDWATCHER_STATE_BIGGER_MALE 4
|
||||||
|
#define TRENDWATCHER_STATE_BIGGER_FEMALE 5
|
||||||
|
#define TRENDWATCHER_STATE_OUTRO 6
|
||||||
|
|
||||||
#endif //GUARD_CONSTANTS_TV_H
|
#endif //GUARD_CONSTANTS_TV_H
|
||||||
|
@ -135,13 +135,13 @@ extern const u8 gTVTodaysRivalTrainerText03[];
|
|||||||
extern const u8 gTVTodaysRivalTrainerText04[];
|
extern const u8 gTVTodaysRivalTrainerText04[];
|
||||||
extern const u8 gTVTodaysRivalTrainerText05[];
|
extern const u8 gTVTodaysRivalTrainerText05[];
|
||||||
extern const u8 gTVTodaysRivalTrainerText06[];
|
extern const u8 gTVTodaysRivalTrainerText06[];
|
||||||
extern const u8 gTVDewfordTrendWatcherNetworkText00[];
|
extern const u8 TrendWatcher_Text_Intro[];
|
||||||
extern const u8 gTVDewfordTrendWatcherNetworkText01[];
|
extern const u8 TrendWatcher_Text_MaleTaughtMePhrase[];
|
||||||
extern const u8 gTVDewfordTrendWatcherNetworkText02[];
|
extern const u8 TrendWatcher_Text_FemaleTaughtMePhrase[];
|
||||||
extern const u8 gTVDewfordTrendWatcherNetworkText03[];
|
extern const u8 TrendWatcher_Text_PhraseWasHopeless[];
|
||||||
extern const u8 gTVDewfordTrendWatcherNetworkText04[];
|
extern const u8 TrendWatcher_Text_MaleTellMeBigger[];
|
||||||
extern const u8 gTVDewfordTrendWatcherNetworkText05[];
|
extern const u8 TrendWatcher_Text_FemaleTellMeBigger[];
|
||||||
extern const u8 gTVDewfordTrendWatcherNetworkText06[];
|
extern const u8 TrendWatcher_Text_Outro[];
|
||||||
extern const u8 gTVHoennTreasureInvestigatorsText00[];
|
extern const u8 gTVHoennTreasureInvestigatorsText00[];
|
||||||
extern const u8 gTVHoennTreasureInvestigatorsText01[];
|
extern const u8 gTVHoennTreasureInvestigatorsText01[];
|
||||||
extern const u8 gTVHoennTreasureInvestigatorsText02[];
|
extern const u8 gTVHoennTreasureInvestigatorsText02[];
|
||||||
|
@ -43,13 +43,17 @@
|
|||||||
new phrase submitted after the 1st submission.
|
new phrase submitted after the 1st submission.
|
||||||
|
|
||||||
## Saving trends ##
|
## Saving trends ##
|
||||||
Each time a new trendy phrase is accepted, the previous Dewford Trend is saved
|
Each time a potential trendy phrase is submitted, it is saved in gSaveBlock1Ptr->dewfordTrends[].
|
||||||
in gSaveBlock1Ptr->dewfordTrends[]. Up to SAVED_TRENDS_COUNT (5) trends may be
|
Up to SAVED_TRENDS_COUNT (5) trends may be saved at one time. The trends in this array are kept
|
||||||
saved at one time. The trends in this array are kept in sorted order from most trendy
|
in sorted order from most trendy to least trendy. The current trendy phrase is always at
|
||||||
to least trendy. The current trendy phrase is always at gSaveBlock1Ptr->dewfordTrends[0].
|
gSaveBlock1Ptr->dewfordTrends[0]. If the player mixes records with another player, their own
|
||||||
If the player mixes records with another player, their own trends are replaced with
|
trends are replaced with their mixing partner's, unless the phrase is the same, in which case
|
||||||
their mixing partner's, unless the phrase is the same, in which case the version with
|
the version with a higher trendiness value is used (see ReceiveDewfordTrendData).
|
||||||
a higher trendiness value is used (see ReceiveDewfordTrendData).
|
|
||||||
|
## TV Show ##
|
||||||
|
If a submitted phrase is only trendier than 1 or none of the saved trends, it may trigger a
|
||||||
|
TV Show called Trend Watcher (see TryPutTrendWatcherOnAir) that, ironically, spends the
|
||||||
|
show talking about how the submitted phrase was not trendy.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -144,6 +148,8 @@ void UpdateDewfordTrendPerDay(u16 days)
|
|||||||
|
|
||||||
// Returns TRUE if the current trendy phrase was successfully changed to the given phrase
|
// Returns TRUE if the current trendy phrase was successfully changed to the given phrase
|
||||||
// Returns FALSE otherwise
|
// Returns FALSE otherwise
|
||||||
|
// Regardless of whether or not the current trendy phrase was changed, the submitted
|
||||||
|
// phrase is always saved in gSaveBlock1Ptr->dewfordTrends
|
||||||
bool8 TrySetTrendyPhrase(u16 *phrase)
|
bool8 TrySetTrendyPhrase(u16 *phrase)
|
||||||
{
|
{
|
||||||
struct DewfordTrend trend = {0};
|
struct DewfordTrend trend = {0};
|
||||||
|
90
src/tv.c
90
src/tv.c
@ -504,13 +504,13 @@ static const u8 *const sTVTodaysRivalTrainerTextGroup[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const u8 *const sTVDewfordTrendWatcherNetworkTextGroup[] = {
|
static const u8 *const sTVDewfordTrendWatcherNetworkTextGroup[] = {
|
||||||
gTVDewfordTrendWatcherNetworkText00,
|
[TRENDWATCHER_STATE_INTRO] = TrendWatcher_Text_Intro,
|
||||||
gTVDewfordTrendWatcherNetworkText01,
|
[TRENDWATCHER_STATE_TAUGHT_MALE] = TrendWatcher_Text_MaleTaughtMePhrase,
|
||||||
gTVDewfordTrendWatcherNetworkText02,
|
[TRENDWATCHER_STATE_TAUGHT_FEMALE] = TrendWatcher_Text_FemaleTaughtMePhrase,
|
||||||
gTVDewfordTrendWatcherNetworkText03,
|
[TRENDWATCHER_STATE_PHRASE_HOPELESS] = TrendWatcher_Text_PhraseWasHopeless,
|
||||||
gTVDewfordTrendWatcherNetworkText04,
|
[TRENDWATCHER_STATE_BIGGER_MALE] = TrendWatcher_Text_MaleTellMeBigger,
|
||||||
gTVDewfordTrendWatcherNetworkText05,
|
[TRENDWATCHER_STATE_BIGGER_FEMALE] = TrendWatcher_Text_FemaleTellMeBigger,
|
||||||
gTVDewfordTrendWatcherNetworkText06
|
[TRENDWATCHER_STATE_OUTRO] = TrendWatcher_Text_Outro
|
||||||
};
|
};
|
||||||
|
|
||||||
static const u8 *const sTVHoennTreasureInvestisatorsTextGroup[] = {
|
static const u8 *const sTVHoennTreasureInvestisatorsTextGroup[] = {
|
||||||
@ -5979,48 +5979,40 @@ static void DoTVShowDewfordTrendWatcherNetwork(void)
|
|||||||
state = sTVShowState;
|
state = sTVShowState;
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case 0:
|
case TRENDWATCHER_STATE_INTRO:
|
||||||
CopyEasyChatWord(gStringVar1, show->trendWatcher.words[0]);
|
CopyEasyChatWord(gStringVar1, show->trendWatcher.words[0]);
|
||||||
CopyEasyChatWord(gStringVar2, show->trendWatcher.words[1]);
|
CopyEasyChatWord(gStringVar2, show->trendWatcher.words[1]);
|
||||||
if (show->trendWatcher.gender == MALE)
|
if (show->trendWatcher.gender == MALE)
|
||||||
{
|
sTVShowState = TRENDWATCHER_STATE_TAUGHT_MALE;
|
||||||
sTVShowState = 1;
|
else
|
||||||
}
|
sTVShowState = TRENDWATCHER_STATE_TAUGHT_FEMALE;
|
||||||
else
|
break;
|
||||||
{
|
case TRENDWATCHER_STATE_TAUGHT_MALE:
|
||||||
sTVShowState = 2;
|
case TRENDWATCHER_STATE_TAUGHT_FEMALE:
|
||||||
}
|
CopyEasyChatWord(gStringVar1, show->trendWatcher.words[0]);
|
||||||
break;
|
CopyEasyChatWord(gStringVar2, show->trendWatcher.words[1]);
|
||||||
case 1:
|
TVShowConvertInternationalString(gStringVar3, show->trendWatcher.playerName, show->trendWatcher.language);
|
||||||
case 2:
|
sTVShowState = TRENDWATCHER_STATE_PHRASE_HOPELESS;
|
||||||
CopyEasyChatWord(gStringVar1, show->trendWatcher.words[0]);
|
break;
|
||||||
CopyEasyChatWord(gStringVar2, show->trendWatcher.words[1]);
|
case TRENDWATCHER_STATE_PHRASE_HOPELESS:
|
||||||
TVShowConvertInternationalString(gStringVar3, show->trendWatcher.playerName, show->trendWatcher.language);
|
CopyEasyChatWord(gStringVar1, show->trendWatcher.words[0]);
|
||||||
sTVShowState = 3;
|
CopyEasyChatWord(gStringVar2, show->trendWatcher.words[1]);
|
||||||
break;
|
if (show->trendWatcher.gender == MALE)
|
||||||
case 3:
|
sTVShowState = TRENDWATCHER_STATE_BIGGER_MALE;
|
||||||
CopyEasyChatWord(gStringVar1, show->trendWatcher.words[0]);
|
else
|
||||||
CopyEasyChatWord(gStringVar2, show->trendWatcher.words[1]);
|
sTVShowState = TRENDWATCHER_STATE_BIGGER_FEMALE;
|
||||||
if (show->trendWatcher.gender == MALE)
|
break;
|
||||||
{
|
case TRENDWATCHER_STATE_BIGGER_MALE:
|
||||||
sTVShowState = 4;
|
case TRENDWATCHER_STATE_BIGGER_FEMALE:
|
||||||
}
|
CopyEasyChatWord(gStringVar1, show->trendWatcher.words[0]);
|
||||||
else
|
CopyEasyChatWord(gStringVar2, show->trendWatcher.words[1]);
|
||||||
{
|
TVShowConvertInternationalString(gStringVar3, show->trendWatcher.playerName, show->trendWatcher.language);
|
||||||
sTVShowState = 5;
|
sTVShowState = TRENDWATCHER_STATE_OUTRO;
|
||||||
}
|
break;
|
||||||
break;
|
case TRENDWATCHER_STATE_OUTRO:
|
||||||
case 4:
|
CopyEasyChatWord(gStringVar1, show->trendWatcher.words[0]);
|
||||||
case 5:
|
CopyEasyChatWord(gStringVar2, show->trendWatcher.words[1]);
|
||||||
CopyEasyChatWord(gStringVar1, show->trendWatcher.words[0]);
|
TVShowDone();
|
||||||
CopyEasyChatWord(gStringVar2, show->trendWatcher.words[1]);
|
|
||||||
TVShowConvertInternationalString(gStringVar3, show->trendWatcher.playerName, show->trendWatcher.language);
|
|
||||||
sTVShowState = 6;
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
CopyEasyChatWord(gStringVar1, show->trendWatcher.words[0]);
|
|
||||||
CopyEasyChatWord(gStringVar2, show->trendWatcher.words[1]);
|
|
||||||
TVShowDone();
|
|
||||||
}
|
}
|
||||||
ShowFieldMessage(sTVDewfordTrendWatcherNetworkTextGroup[state]);
|
ShowFieldMessage(sTVDewfordTrendWatcherNetworkTextGroup[state]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user