You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our scripts does use of external messages in a json file. so these can be translated and finally there's a script for choosing the language per-player. they can say "lang" on chat, it will open a menu showing all the supported languages.
So how does it works?
Skipping the programming talk.
We allow players to select a language and store it to them.
When a script wants to send a message to a player, it first checks for the choosen language and loads the proper one. if none found it sends "english"
Normally arguments surrounded by the dollar sign ($) are replaced with something special in the script, for this example. $item$ is replaced with the name of the item from the script no_autopickup
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Our scripts does use of external messages in a json file. so these can be translated and finally there's a script for choosing the language per-player. they can say "lang" on chat, it will open a menu showing all the supported languages.
So how does it works?
Skipping the programming talk.
This is a json example
Normally arguments surrounded by the dollar sign ($) are replaced with something special in the script, for this example.$item$ is replaced with the name of the item from the script no_autopickup
Supported languages
Adding your language
Let's say you want to implement "Portuguese"
these have to be lower-case, as the code i previously sent is for only showing on the menu of the players
List of all the scripts that can be translated:
Beta Was this translation helpful? Give feedback.
All reactions