-
Notifications
You must be signed in to change notification settings - Fork 817
Restore and localize the Japanese move grammar table
Colton G. Rushton edited this page Jan 22, 2020
·
4 revisions
In Japanese, there are five ways to say "POKéMON used MOVE!":
- "POKéMONの MOVE つかった!" ("POKéMON used MOVE!")
- "POKéMONの MOVEした!" ("POKéMON did MOVE!")
- "POKéMONの MOVE した!" ("POKéMON did MOVE!" for long move names)
- "POKéMONの MOVE こうげき!" ("POKéMON's MOVE attack!")
- "POKéMONの MOVE!" ("POKéMON's MOVE!")
This tutorial will showcase how to localize and restore the grammar table that once held the code responsible for showing these five ways. This tutorial will also fix grammatical issues with some of the move text.
Edit data/text/common_2.asm:
_ActorNameText::
text "<USER>@"
text_end
_UsedMove1Text::
- text_start
+ text " used"
- line "used @"
+ line "@"
text_end
_UsedMove2Text::
+_UsedMove3Text::
- text_start
+ text " did"
- line "used @"
+ line "@"
text_end
+
+_UsedMove4Text::
+_UsedMove5Text::
+ text "'s"
+ line "@"
+ text_end
+
_UsedInsteadText::
- text "instead,"
+ text " instead used"
- cont "@"
+ line "@"
text_end
_MoveNameText::
text_ram wStringBuffer2
text_end
-
- text_end ; unused
_EndUsedMove1Text::
+_EndUsedMove2Text::
+_EndUsedMove3Text::
+_EndUsedMove5Text::
text "!"
done
-_EndUsedMove2Text::
- text "!"
- done
-
-_EndUsedMove3Text::
- text "!"
- done
-
_EndUsedMove4Text::
- text "!"
+ text " attack!"
done
-
-_EndUsedMove5Text::
- text "!"
- done
Edit engine/battle/used_move_text.asm:
push hl
farcall CheckUserIsCharging
pop hl
jr nz, .grammar
; update last move
ld a, [wMoveGrammar]
ld [hl], a
ld [de], a
.grammar
call GetMoveGrammar ; convert move id to grammar index
-
-; everything except 'instead' made redundant in localization
; check obedience
ld a, [wAlreadyDisobeyed]
and a
- ld hl, UsedMove2Text
ret nz
; check move grammar
ld a, [wMoveGrammar]
- cp $3
+ and a
- ld hl, UsedMove2Text
+ ld hl, UsedMove1Text
- ret c
+ ret z
+ dec a
- ld hl, UsedMove1Text
+ ld hl, UsedMove2Text
+ ret z
+ dec a
+ ld hl, UsedMove3Text
+ ret z
+ dec a
+ ld hl, UsedMove4Text
+ ret z
+ ld hl, UsedMove5Text
ret
UsedMove1Text:
text_far _UsedMove1Text
text_asm
jr UsedMoveText_CheckObedience
UsedMove2Text:
text_far _UsedMove2Text
text_asm
+ jr UsedMoveText_CheckObedience
+
+UsedMove3Text:
+ text_far _UsedMove3Text
+ text_asm
+ jr UsedMoveText_CheckObedience
+
+UsedMove4Text:
+ text_far _UsedMove4Text
+ text_asm
+ jr UsedMoveText_CheckObedience
+
-UsedMove2Text:
+UsedMove5Text:
- text_far _UsedMove2Text
+ text_far _UsedMove5Text
text_asm
UsedMoveText_CheckObedience:
; check obedience
ld a, [wAlreadyDisobeyed]
and a
jr z, .GetMoveNameText
-; print "instead,"
+; print "instead used"
ld hl, .UsedInsteadText
ret
Older versions of pokecrystal may use db "@"
in place of text_end
.