Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update battle messages to Gen 5+ standards #3240

Merged
merged 105 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
84a8299
Start battle message update
kittenchilly Aug 18, 2023
24e4206
Update battle_message.c
kittenchilly Aug 18, 2023
a06ef78
Update battle_message.c
kittenchilly Aug 18, 2023
84d2441
Change some scripts to be accurate
kittenchilly Aug 19, 2023
b806002
Update battle_message.c
kittenchilly Aug 19, 2023
b7a86ba
Update battle_message.c
kittenchilly Aug 19, 2023
3823d4f
fix some tests
kittenchilly Aug 19, 2023
c7ac024
even more test fixes
kittenchilly Aug 19, 2023
3d81c9d
lets see if this fixes all the tests
kittenchilly Aug 19, 2023
5493a8a
please fix the tests
kittenchilly Aug 19, 2023
b9c7a5a
Fix final test and light screen
kittenchilly Aug 19, 2023
77dfbf2
The sunlight is harsh!
kittenchilly Aug 19, 2023
bd18aff
More fixes
kittenchilly Aug 19, 2023
d50eb07
more accurate safeguard message
kittenchilly Aug 19, 2023
ca1978a
Oops
kittenchilly Aug 19, 2023
f8fb8f4
Update battle_message.c
kittenchilly Aug 20, 2023
cec30d8
Merge branch 'upcoming' into battlemessages
kittenchilly Aug 22, 2023
d883edf
Merge branch 'upcoming' into battlemessages
kittenchilly Aug 27, 2023
783ce7c
Merge branch 'upcoming' into battlemessages
kittenchilly Aug 30, 2023
f714255
Merge branch 'upcoming' into battlemessages
kittenchilly Aug 31, 2023
b2830d8
Merge branch 'upcoming' into battlemessages
kittenchilly Sep 2, 2023
88f6bb5
Merge branch 'upcoming' into battlemessages
kittenchilly Sep 4, 2023
0da91fe
Merge branch 'upcoming' into battlemessages
kittenchilly Sep 7, 2023
cebdea7
Merge remote-tracking branch 'upstream/upcoming' into battlemessages
kittenchilly Sep 8, 2023
f9871ed
Merge remote-tracking branch 'upstream/upcoming' into battlemessages
kittenchilly Sep 11, 2023
878c372
Weather and terrain starting text
kittenchilly Sep 11, 2023
51c71ee
Fix tests
kittenchilly Sep 11, 2023
4644561
Merge remote-tracking branch 'upstream/upcoming' into battlemessages
kittenchilly Sep 25, 2023
4527ec1
Update battle_string_ids.h
kittenchilly Sep 25, 2023
d661ea1
Update battle_message.c
kittenchilly Sep 25, 2023
e7d7d40
Merge remote-tracking branch 'upstream/upcoming' into battlemessages
kittenchilly Oct 16, 2023
8bd23f3
Merge remote-tracking branch 'upstream/upcoming' into battlemessages
kittenchilly Oct 16, 2023
9d978fd
Merge branch 'upcoming' into battlemessages
kittenchilly Oct 26, 2023
63454c8
Merge remote-tracking branch 'upstream/upcoming' into battlemessages
kittenchilly Oct 27, 2023
8cbf04a
Merge branch 'upcoming' into battlemessages
kittenchilly Oct 31, 2023
055c988
Merge branch 'upcoming' into battlemessages
kittenchilly Feb 26, 2024
d83ea6d
Revert all test changes for now so I can redo them
kittenchilly Feb 26, 2024
858dc54
Tons and tons of changes
kittenchilly Feb 26, 2024
9d754f6
Merge branch 'upcoming' into battlemessages
kittenchilly Feb 27, 2024
dbaf1b4
Fix a lot of the tests
kittenchilly Feb 27, 2024
6f05557
Merge branch 'upcoming' into battlemessages
kittenchilly Mar 8, 2024
048e95c
Merge branch 'upcoming' into battlemessages
kittenchilly Jul 23, 2024
b335168
Update battle_message.c
kittenchilly Jul 23, 2024
eb0031b
Update battle_message.c
kittenchilly Jul 23, 2024
93e7a52
Update battle_message.c
kittenchilly Jul 23, 2024
1ac9ad6
Update battle_message.c
kittenchilly Jul 23, 2024
fe21195
Merge branch 'upcoming' into battlemessages
kittenchilly Aug 3, 2024
b49b3d8
Update battle_message.c
kittenchilly Aug 3, 2024
05286e0
Update battle_message.c
kittenchilly Aug 3, 2024
94ae803
Merge branch 'upcoming' into battlemessages
kittenchilly Aug 3, 2024
3f11fbe
[no ci] Merge branch 'upcoming' into battlemessages
kittenchilly Aug 15, 2024
38e9ef7
Merge branch 'upcoming' into battlemessages
kittenchilly Aug 15, 2024
3dddc39
Update battle_message.c
kittenchilly Aug 15, 2024
3790891
Update battle_message.c
kittenchilly Aug 15, 2024
c7cc3f8
Merge branch 'upcoming' into battlemessages
kittenchilly Aug 20, 2024
12ce63a
Merge branch 'upcoming' into battlemessages
kittenchilly Aug 22, 2024
1514865
Merge branch 'upcoming' into battlemessages
kittenchilly Sep 9, 2024
2f401b3
Metronome text
kittenchilly Sep 9, 2024
bc88d18
Starting to fix test text
AsparagusEduardo Sep 9, 2024
7652a5d
Update battle_message.c
kittenchilly Sep 9, 2024
05046f8
342 left
AsparagusEduardo Sep 9, 2024
ef2bc37
181 left
AsparagusEduardo Sep 9, 2024
d56ed42
124 left
AsparagusEduardo Sep 9, 2024
a96b5f6
99 left
AsparagusEduardo Sep 9, 2024
a71f918
53 left
AsparagusEduardo Sep 10, 2024
67bc758
1 left
AsparagusEduardo Sep 10, 2024
5950c98
Merge pull request #3 from AsparagusEduardo/_RHH/review/battlemessages
kittenchilly Sep 10, 2024
f81d69c
Merge branch 'upcoming' into battlemessages
kittenchilly Sep 10, 2024
a63aae2
Merge branch 'upcoming' into battlemessages
kittenchilly Sep 19, 2024
a32ee26
Merge branch 'upcoming' into battlemessages
kittenchilly Sep 20, 2024
281ea38
Fix the remaining tests
kittenchilly Sep 20, 2024
175a781
Merge branch 'upcoming' into battlemessages
kittenchilly Sep 28, 2024
4dbe051
Test fixes from merge
kittenchilly Sep 28, 2024
10d1fb3
Battle message test
AsparagusEduardo Sep 29, 2024
5c0f7ef
Message adjustments
AsparagusEduardo Sep 29, 2024
9521fc9
More messages
AsparagusEduardo Sep 29, 2024
4efdeba
More messages
AsparagusEduardo Sep 29, 2024
eaab010
Temp string acotation
AsparagusEduardo Sep 29, 2024
9a101f3
Up to 312
AsparagusEduardo Sep 29, 2024
e346148
Merge pull request #4 from AsparagusEduardo/_RHH/review/battlemessages
kittenchilly Oct 2, 2024
a7ca527
Merge branch 'upcoming' into battlemessages
kittenchilly Oct 10, 2024
95aa98b
Merge tests fix
kittenchilly Oct 10, 2024
d8e6571
Fix Zero to Hero text
AsparagusEduardo Oct 11, 2024
0ae8103
400th string
AsparagusEduardo Oct 11, 2024
2a7c40a
Initial version of dynamic texts (doesn't handle placeholders well yet)
AsparagusEduardo Oct 15, 2024
23cc2b3
Fix linebreaks with placeholders
AsparagusEduardo Oct 16, 2024
c3d7f8f
Merge branch 'upcoming' into battlemessages
kittenchilly Oct 16, 2024
469496f
Upcoming merge and fix tests
kittenchilly Oct 16, 2024
aceab2b
Fixed placeholder replace in lines 2+
AsparagusEduardo Oct 16, 2024
9480751
Merge branch 'upcoming' into battlemessages
kittenchilly Oct 18, 2024
f9f689b
Update mini_printf.c
kittenchilly Oct 18, 2024
ce4c8d1
Merge branch 'battlemessages' into _RHH/review/battlemessages_dynamic
AsparagusEduardo Oct 19, 2024
27e238e
Better handling of debug text
AsparagusEduardo Oct 18, 2024
3dc3fe4
Fixed edge case where the last character of a battle string wouldn't …
AsparagusEduardo Oct 18, 2024
ee652bd
500th string
AsparagusEduardo Oct 19, 2024
2115d18
600th string
AsparagusEduardo Oct 19, 2024
b4fb0bd
Finished the test!
AsparagusEduardo Oct 19, 2024
173af9d
Removed linebreaks from battle strings
AsparagusEduardo Oct 19, 2024
b1464b4
CI fix attempt
AsparagusEduardo Oct 19, 2024
aa313d7
Changed test to use alloc
AsparagusEduardo Oct 19, 2024
d759fdf
Fixed test messages that expected line breaks
AsparagusEduardo Oct 19, 2024
085fefc
Merge pull request #5 from AsparagusEduardo/_RHH/review/battlemessage…
kittenchilly Oct 20, 2024
e7fecf2
Merge branch 'upcoming' into battlemessages
kittenchilly Oct 21, 2024
2a7e163
Update curious_medicine.c
kittenchilly Oct 21, 2024
646da77
Cleanup
kittenchilly Oct 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charmap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,10 @@ B_DEF_TEAM1 = FD 3A
B_DEF_TEAM2 = FD 3B
@ FD 3C - preiously gActiveBattler
@ FD 3D - preiously gActiveBattler without Illusion Check
B_ATK_NAME_WITH_PREFIX2 = FD 3E
B_DEF_NAME_WITH_PREFIX2 = FD 3F
B_EFF_NAME_WITH_PREFIX2 = FD 40
B_SCR_ACTIVE_NAME_WITH_PREFIX2 = FD 41
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved

@ indicates the end of a town/city name (before " TOWN" or " CITY")
NAME_END = FC 00
Expand Down
14 changes: 6 additions & 8 deletions data/battle_scripts_1.s
Original file line number Diff line number Diff line change
Expand Up @@ -3089,7 +3089,7 @@ BattleScript_DreamEaterWorked:
healthbarupdate BS_ATTACKER
datahpupdate BS_ATTACKER
jumpifmovehadnoeffect BattleScript_DreamEaterTryFaintEnd
printstring STRINGID_PKMNDREAMEATEN
printstring STRINGID_PKMNENERGYDRAINED
waitmessage B_WAIT_TIME_LONG
BattleScript_DreamEaterTryFaintEnd:
tryfaintmon BS_TARGET
Expand Down Expand Up @@ -5987,7 +5987,7 @@ BattleScript_OverworldWeatherStarts::
end3

BattleScript_OverworldTerrain::
printfromtable gTerrainStringIds
printfromtable gTerrainStartsStringIds
waitmessage B_WAIT_TIME_LONG
playanimation BS_BATTLER_0, B_ANIM_RESTORE_BG
call BattleScript_ActivateTerrainEffects
Expand Down Expand Up @@ -9047,9 +9047,8 @@ BattleScript_BerryConfuseHealEnd2_Anim:
orword gHitMarker, HITMARKER_IGNORE_BIDE | HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_PASSIVE_DAMAGE
healthbarupdate BS_SCRIPTING
datahpupdate BS_SCRIPTING
printstring STRINGID_FORXCOMMAYZ
waitmessage B_WAIT_TIME_LONG
seteffectprimary MOVE_EFFECT_CONFUSION | MOVE_EFFECT_AFFECTS_USER
setmoveeffect MOVE_EFFECT_CONFUSION | MOVE_EFFECT_AFFECTS_USER
seteffectprimary
kittenchilly marked this conversation as resolved.
Show resolved Hide resolved
removeitem BS_SCRIPTING
end2

Expand All @@ -9065,9 +9064,8 @@ BattleScript_BerryConfuseHealRet_Anim:
orword gHitMarker, HITMARKER_IGNORE_BIDE | HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_PASSIVE_DAMAGE
healthbarupdate BS_SCRIPTING
datahpupdate BS_SCRIPTING
printstring STRINGID_FORXCOMMAYZ
waitmessage B_WAIT_TIME_LONG
seteffectprimary MOVE_EFFECT_CONFUSION | MOVE_EFFECT_CERTAIN
setmoveeffect MOVE_EFFECT_CONFUSION | MOVE_EFFECT_CERTAIN
seteffectprimary
kittenchilly marked this conversation as resolved.
Show resolved Hide resolved
removeitem BS_TARGET
return

Expand Down
6 changes: 4 additions & 2 deletions include/battle_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@
#define B_TXT_DEF_TEAM2 0x3B // your/the opposing
// #define B_TXT_SELECTION_NAME 0x3C - removed
// #define B_TXT_SELECTION_NAME2 0x3D no Illusion check - removed

// for B_TXT_BUFF1, B_TXT_BUFF2 and B_TXT_BUFF3
#define B_TXT_ATK_NAME_WITH_PREFIX2 0x3E //lowercase
#define B_TXT_DEF_NAME_WITH_PREFIX2 0x3F //lowercase
#define B_TXT_EFF_NAME_WITH_PREFIX2 0x40 //lowercase
#define B_TXT_SCR_ACTIVE_NAME_WITH_PREFIX2 0x41 //lowercase

#define B_BUFF_STRING 0
#define B_BUFF_NUMBER 1
Expand Down
9 changes: 8 additions & 1 deletion include/constants/battle_string_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,15 @@
#define STRINGID_FOGLIFTED 711
#define STRINGID_PKMNMADESHELLGLEAM 712
#define STRINGID_FICKLEBEAMDOUBLED 713
#define STRINGID_SUNLIGHTISHARSH 714
#define STRINGID_ITISHAILING 715
#define STRINGID_ITISSNOWING 716
#define STRINGID_ISCOVEREDWITHGRASS 717
#define STRINGID_MISTSWIRLSAROUND 718
#define STRINGID_ELECTRICCURRENTISRUNNING 719
#define STRINGID_SEEMSWEIRD 720

#define BATTLESTRINGS_COUNT 714
#define BATTLESTRINGS_COUNT 721

// This is the string id that gBattleStringsTable starts with.
// String ids before this (e.g. STRINGID_INTROMSG) are not in the table,
Expand Down
14 changes: 7 additions & 7 deletions include/test/battle.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* TURN { MOVE(player, MOVE_STUN_SPORE); } // 3.
* } SCENE {
* ANIMATION(ANIM_TYPE_MOVE, MOVE_STUN_SPORE, player);
* MESSAGE("Foe Wobbuffet is paralyzed! It may be unable to move!"); // 4
* MESSAGE("The opposing Wobbuffet is paralyzed, so it may be unable to move!"); // 4
* STATUS_ICON(opponent, paralysis: TRUE); // 4.
* }
* }
Expand Down Expand Up @@ -256,7 +256,7 @@
* } WHEN {
* TURN { MOVE(player, MOVE_CELEBRATE); }
* } SCENE {
* MESSAGE("Wobbuffet is paralyzed! It can't move!");
* MESSAGE("Wobbuffet is paralyzed, so it may be unable to move!");
* }
* }
* All BattleRandom calls involving tag will return the same number, so
Expand Down Expand Up @@ -413,7 +413,7 @@
* Spaces in pattern match newlines (\n, \l, and \p) in the message.
* Often used to check that a battler took its turn but it failed, e.g.:
* MESSAGE("Wobbuffet used Dream Eater!");
* MESSAGE("Foe Wobbuffet wasn't affected!");
* MESSAGE("The opposing Wobbuffet wasn't affected!");
*
* STATUS_ICON(battler, status1 | none: | sleep: | poison: | burn: | freeze: | paralysis:, badPoison:)
* Causes the test to fail if the battler's status is not changed to the
Expand All @@ -432,15 +432,15 @@
* following command succeeds.
* // Our Wobbuffet does not Celebrate before the foe's.
* NOT MESSAGE("Wobbuffet used Celebrate!");
* MESSAGE("Foe Wobbuffet used Celebrate!");
* MESSAGE("The opposing Wobbuffet used Celebrate!");
* WARNING: NOT is an alias of NONE_OF, so it behaves surprisingly when
* applied to multiple commands wrapped in braces.
*
* ONE_OF
* Causes the test to fail unless one of the SCENE commands succeeds.
* ONE_OF {
* MESSAGE("Wobbuffet used Celebrate!");
* MESSAGE("Wobbuffet is paralyzed! It can't move!");
* MESSAGE("Wobbuffet is paralyzed, so it may be unable to move!");
* }
*
* NONE_OF
Expand All @@ -449,9 +449,9 @@
* // Our Wobbuffet does not move before the foe's.
* NONE_OF {
* MESSAGE("Wobbuffet used Celebrate!");
* MESSAGE("Wobbuffet is paralyzed! It can't move!");
* MESSAGE("Wobbuffet is paralyzed, so it may be unable to move!");
* }
* MESSAGE("Foe Wobbuffet used Celebrate!");
* MESSAGE("The opposing Wobbuffet used Celebrate!");
*
* PLAYER_PARTY and OPPONENT_PARTY
* Refer to the party members defined in GIVEN, e.g.:
Expand Down
Loading
Loading