[QUEST] Multi language - NEED!

10/01/2012 22:34 KillHumans#1
When player start in game i need option to select:

German
English
Portuguese


And if player's choose german, NPC's start quest in the language german.

Ex. :

Mission Skills level 5:

If choose portuguese:
say ( "Olá, vai aos professor ele quer falar contigo." )

If choose english:
say ( "Hello, go to the teacher, he want to talk with you.")

If choose german:
say ( "Hallo, geht an den Lehrer, er will mit dir reden.")


Thank.
10/01/2012 22:41 Sintiax#2
i think so what dont exist , but im not sure.
Please look [Only registered and activated users can see links. Click Here To Register...]
10/01/2012 22:44 KillHumans#3
I search all afternoon, no results :(
10/01/2012 23:19 Serveral'#4
It should be possible but it's a lot of work. I know that Clientside multilanguage is not much work but if you like to display all quests in a other language, you have to write all quests new.
10/02/2012 07:45 Endymion_#5
maybe use qf?

10/02/2012 08:53 Mijago#6
Its really not much Work..
Create a new file such as locale.lua, insert there your Texts, maybe sth like
Code:
bla[1] Eng
bla[2] Ger
bla[3] Sth other stuff
bla2[1] ... going on ;)
and load it in the questlib.lua with dofile.

And save the player's Language in some Mainflag... So create an empty quest named questlang and use everywhere this:
pc.setqf('questlang','lang',1) (Eng)
pc.getqf(('questlang','lang')

I would do it a "little" bit different from this idea (such as loading other locales and using metatables, but.. ;) ) but i think this option is okay for you :)

i have to go now, in some hours i can write you a system for this - but i'm going to publish it, so everyone can use it.. many people could need this stuff :)

Greets, Mijago
03/05/2013 03:37 FCPorto15#7
Mijago

can you maybe say how i if the do in the questlib. and give more details in the .quest how do?"