Jump to content
  • 0

multilingual


Yukaiii

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  110
  • Reputation:   9
  • Joined:  11/20/13
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.01
  • Content Count:  147
  • Reputation:   36
  • Joined:  05/15/20
  • Last Seen:  

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;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  744
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

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/

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  110
  • Reputation:   9
  • Joined:  11/20/13
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   118
  • Joined:  05/23/12
  • Last Seen:  

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 by Rynbef
Npc added
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...