Git Product home page Git Product logo

unity3d-languager's Introduction

Unity3D-Languager

A C# script for Unity that takes a string and changes it based on a dictionary and/or certain rules. Simple but effective way to create fake languages in chat and such.

#####################################

To use the script, simply call it using "Languager.ToCommon(text)" or "<>.ToEnochian(text)" from any script, and it will return the converted string.

#####################################

The script includes two different "languages":

One being a modified version of Enochian(so called Angel language), which is more or less a fictional one, with some extended words for numbers, and changed some letters to avoid repeat in the latin/english alphabet conversion. In this one, I have added a somewhat extention to somewhat reduce the size of words and make it low more: The code will check if the last character is the same with the current one, and if it is, it will only take the last letter of the translated character from the dictionary(if the dictionary is just one letter translated, it will use the same one).

  Example: W = Re, then www will return ree

The second one I named Common, but its actually a modified R'lyehian, another fictional language. This one is a straight up letter swap, that also supports uppercase and lowercase letters. It should be the better one in terms of performance but might introduce very large words if not careful with the dictionary.

#####################################

There is also a clean template dictionary commented on the start of the code to make it easier for your own language conversion.

##################################### ##################################### #####################################

And I gues thats it!

I know the code is probably not perfect, and not the fastest or most flexible one; but this is the first time I am creating such a code. The inspiration came mainly from World of Warcraft, back in the days when I used to play a lot. I loved how they made the languages differ from eachother depending on faction/race/etc. , so I wanted to try it out for myself!

#####################################

If you got any ideas upon improving the code, feel free to tell me. I would love to have more options in this.

unity3d-languager's People

Contributors

nevaran avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar Rahul Y Gupta avatar

Forkers

r2d2m

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.