Yukaiii Posted July 26, 2023 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 170 Reputation: 9 Joined: 11/20/13 Last Seen: 18 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 KazumaSatou Posted July 27, 2023 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 157 Reputation: 37 Joined: 05/15/20 Last Seen: 8 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Bringer Posted July 27, 2023 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: Wednesday at 03:29 PM Share 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 Link to comment Share on other sites More sharing options...
0 Yukaiii Posted July 27, 2023 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 170 Reputation: 9 Joined: 11/20/13 Last Seen: 18 hours ago Author Share 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 Link to comment Share on other sites More sharing options...
0 Rynbef Posted July 27, 2023 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: 11 hours ago Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.