Yukaiii Posted July 26, 2023 Posted July 26, 2023 Is there any way to make an NPC multilingual, with option to choose the language? I say when the person clicks on the npc, show the option example: English Spanish Quote
0 KazumaSatou Posted July 27, 2023 Posted July 27, 2023 9 hours ago, Yukaiii said: Is there any way to make an NPC multilingual, with option to choose the language? I say when the person clicks on the npc, show the option example: English Spanish Just use like this : Quote switch(select("English:Spanish")){ case 1: mes "English Texts"; close; break; case 2: mes "Spanish Texts"; close; } Quote
0 Bringer Posted July 27, 2023 Posted July 27, 2023 10 hours ago, Yukaiii said: Is there any way to make an NPC multilingual, with option to choose the language? I say when the person clicks on the npc, show the option example: English Spanish check this https://rathena.org/board/topic/126106-multi-language-system-npcs-compact-npc-system/ Quote
0 Yukaiii Posted July 27, 2023 Author Posted July 27, 2023 11 hours ago, KazumaSatou said: Just use like this : In this case, I would have to add the same text to the npc in another language, right? Would this command pull the right language the player wants on the npc? Quote
0 Rynbef Posted July 27, 2023 Posted July 27, 2023 (edited) Set a variable depending on the language to 0 or 1. Maybe #Lang. choose ur default language and use it for 0. Now change every mes to mes (#Lang)?"english","spanisch"; switch(select((#Lang)?"Yes":"No",(#Lang)?"Sí":"No")) Use the short If statement. And here is an example script to set the language. lang.txt Rynbef~ Edited July 27, 2023 by Rynbef Npc added Quote
Question
Yukaiii
Is there any way to make an NPC multilingual,
with option to choose the language?
I say when the person clicks on the npc, show the option
example:
English
Spanish
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.