![]() |
language script for other races - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: language script for other races (/Thread-language-script-for-other-races) |
language script for other races - admin phoenix - 08-01-2013 11:24 PM I have never seen a good language script for e.g. elves, dwarves or other races. the simplest script is that someone write down as a text and if you aren´t the same race you will see some emotes or something like &%$§%. For me this is not enought so I started to think about it. this is the theory and at the moment I haven´t had the time to realize it. but what about. you put all the elf words you know in a mysql database and also the translated words (for example in german/english), sorted alphabetical. now if you are a elf and turn on your function "speak elfish" every word you type as a text will compare with the english/german words in the database. and if booth words compare you will see the elfish word instead the german/english if you aren´t an elf. what you think? maybe it will slow down the engine of sphere because it can happen that an elf will talk/type the text very long and very often. gr phoenix RE: language script for other races - darksun84 - 08-02-2013 05:22 AM I think it will be very expensive in terms of performance, also if you want to simulate a language, you'll have to consider how statements will be created ! RE: language script for other races - Coruja - 08-03-2013 09:32 AM absolutely no way to do it using SQL, it will cause a huge performance decrease on your server. And tags/vars will waste too much storage to save useless data. Maybe the best way to do it without lost storage and server performance is using defs, something like <DEF.TR.<word>.<race>> Code: [DEFNAME Translations] or you can use some array style on the list, it will clean some lines of codes but it's not performance-friendly since you will always need to parse the text manually using STRARG/STREAT or ARGV0/ARGV1/... Code: [DEFNAME Translations] |