1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...
Dismiss Notice
Have some great ideas for Wynncraft? Join the official CT (content team) and help us make quests, builds, cinematics and much more!

More Languages

Discussion in 'General Suggestions' started by ojros, May 6, 2017.

Thread Status:
Not open for further replies.
  1. awemanrank100

    awemanrank100 custom title

    Messages:
    2,326
    Likes Received:
    1,924
    Trophy Points:
    175
    Minecraft:
    ok like pseudocode or something:
    EN_QUEST_MEME_PARTONE_ONE = "hi";
    EN_QUEST_MEME_PARTONE_TWO = "bye";
    //and so on for other languages

    //0=english, 1=spanish, 2=chinese assuming zero-index array; store data in comment so as to not forget assigned languages to numbers
    var pickedLanguage;
    openLanguageMenu();
    //example: pick english in cool language menu
    if (english) then {

    pickedLanguage = 0;
    } else {
    //etc
    }

    EN_QUEST_MEME_PARTONE = [EN_QUEST_MEME_PARTONE_ONE,EN_QUEST_MEME_PARTONE_TWO]; //with short-hand for variable names of course so you don't have this massive difficult to parse through thing
    ES_QUEST_MEME_PARTONE = [ES_QUEST_MEME_PARTONE_ONE,ES_QUEST_MEME_PARTONE_TWO]; //also idk if i'm using good form with variable naming right now but i don't care ok
    ZH_QUEST_MEME_PARTONE = [ZH_QUEST_MEME_PARTONE_ONE,ZH_QUEST_MEME_PARTONE_TWO];

    QUEST_MEME_PARTONE = [EN_QUEST_MEME_PARTONE,ES_QUEST_MEME_PARTONE,ZH_QUEST_MEME_PARTONE];

    //woah quest dialogue has been triggered
    iferror(displayText(pickedLanguage)) {

    displayText(0);
    }

    //righto now that that's done with some potential shortened variable names: EN_Q_MEME_I_I; EN_Q_MEME_I_II; EN_Q_MEME_I; or y'know, if you really want to conserve space something weird like MEME_ENQIxII


    sorry for my lack of skill with knowing how event listeners look anywhere
    hope that helps
     
  2. FruiteyLoops

    FruiteyLoops Well-Known Adventurer HERO

    Messages:
    733
    Likes Received:
    146
    Trophy Points:
    64
    Minecraft:
    Wait, shouldn't you be dead or something? In like the third world with first/second world memories or whatever. Is there even wifi there? Like how the hell are you communicating with us?

    But it will take like... a lot of time to get all the translations for up to 8-12 languages to translate each quest, each line of dialogue, possibly enemy names, etc.
     
    Last edited: May 11, 2017
  3. Yuno F Gasai

    Yuno F Gasai Forum God, FW

    Messages:
    13,423
    Likes Received:
    28,710
    Trophy Points:
    229
    Guild:
    Minecraft:
    I am god
     
  4. Kraetys

    Kraetys Hater of Catipalism - Certified Nyanarchist HERO

    Messages:
    2,342
    Likes Received:
    2,220
    Trophy Points:
    175
    Guild:
    Minecraft:
    You're suggesting we run it through minecraft's system to pick up on the source language of the user automatically, right?
    That's possible, and would probably considerably reduce the lag from my option, but it'd take a lot of time.
    It wouldn't take "that" much time by code standards, but it'd still be annoying to do for a buncha languages.
     
  5. awemanrank100

    awemanrank100 custom title

    Messages:
    2,326
    Likes Received:
    1,924
    Trophy Points:
    175
    Minecraft:
    what no like you get a cool language menu thing
    don't think servers can read user global language setting, but if they can that works too
     
  6. Ced

    Ced lol HERO

    Messages:
    27
    Likes Received:
    1
    Trophy Points:
    46
    Guild:
    Minecraft:
    The minecraft language is clientside, what means that the server can't read it. I would do it like that: a command like "/toggle language <name of the language>", and whenever the server "says" something to a player, he reads it out of a table with as many columns as languages translated. If a translation doesn't exist, the english version of the message is used instead, so translations could be added step-by-step.
     
Thread Status:
Not open for further replies.