SphereCommunity
Name in two languages - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Name in two languages (/Thread-Name-in-two-languages)



Name in two languages - Russian - 10-18-2012 03:00 PM

Hello all.
I have a more monsters with russhian names:
Code:
[CHARDEF C_CAMEL]
ID=C_MAN
NAME=Бандит
Some players are not from Russhian and have option: account tag.language=1
They have game interface in English.

How it is possible to realize more simply support of display of a name of monsters/NPC at once in two languages?

I think:
tag.name_1=Бандит tag.name_2=Gangster
ON=@CLICK
MESSAGE <QVAL <SRC.ACCOUNT.TAG0.LANGUAGE>==1 ? <TAG0.NAME_1>:<TAG0.NAME_1>>
Difficult and deadlock way



RE: Name in two languages - htid4life - 10-18-2012 11:10 PM

why not do some thing like this

if (<SRC.ACCOUNT.TAG0.LANGUAGE>==1)
Message= Gangster
else
Message=Бандит
ENDIF

or around that lines..

that will if there language is english it will give them Gangster if not Russian


RE: Name in two languages - admin phoenix - 10-18-2012 11:19 PM

you have to do this with tooltips


RE: Name in two languages - Russian - 10-19-2012 12:29 AM

(10-18-2012 11:19 PM)admin phoenix Wrote:  you have to do this with tooltips
How realise this with Tooltips?

(10-18-2012 11:10 PM)htid4life Wrote:  if (<SRC.ACCOUNT.TAG0.LANGUAGE>==1)
Message= Gangster
else
Message=Бандит
ENDIF
End i must do this for EVERY NPC? That is bad way.


RE: Name in two languages - ShiryuX - 10-19-2012 12:46 AM

Try using clilocs?


RE: Name in two languages - Russian - 10-19-2012 02:52 AM

How i can use cliocs only for anmes?