-
Notifications
You must be signed in to change notification settings - Fork 222
Description
Currently there is space for 999 event commands in the range of 2000-2999.
There could be some basic grouping at least:
- Map related: 2000-2099
- Battle related: 2100 - 2199
- Language related: 2200-2299
Set Auto Battle Algorithm - One event command
- Arg0: The ID of the algorithm to use. -1 is "LDB default"
Value must be saved! (see #2331)
Change Language - One event command
Changes the language of the game
- Text parameter: Identifier of the language
Value must be saved!
Show Message (Plural aware) - Requires 3 new event commands
Proposed idea:
Lets say we have the message
ShowMessage "You found \v[1] piece of cheese"
ShowMessage_Cont "Tasty!"
and the source language has one plural form.
The result is with Plural Support:
PluralIndicator [Variable|VariableIndirect] [Forms]
ShowMessage "You found \v[1] piece of cheese"
ShowMessage_Cont "Tasty!"
PluralMessage "You found \v[1] pieces of cheese"
PluralMessage_Cont "Tasty!"
The Variable in PluralIndicator is used to decide which message is shown. Forms is automatically set by the editor: It contains the number of forms. When the project main language is changed this allows quick patching of all of them.
The Indicator is generic enough to also allow it's use in e.g. ShowStringPic
see also https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html