Here's the script so far.
// English To Dwarf Translator Script - By Giacom edited by Nienhaus
// Helper Functions
def implode($vector, $adder)
{
$returnString = "";
$index = 1;
while($index <= length($vector))
{
$at = at($vector, $index);
$toAdd = $adder;
if($index == 1)
{
$toAdd = "";
}
$returnString = $returnString + $toAdd + $at;
$index += 1;
}
return $returnString;
}
def Initialize()
{
// Our words! Format: real word / dwarf word
$words = vector("gun", "crossbow",
"Assistant", "Peasant",
"Captain", "Mayor",
"HoP", "Bookkeeper",
"Bartender", "Drunkin Dwarf",
"Chef", "Cook",
"Botanist", "Farmer",
"Quartermaster", "Broker",
"Cargo", "Clerk",
"Miner", "Miner",
"Clown", "Comedian",
"Mime", "Comedian",
"Janitor", "Undwarfy Pansy",
"Librarian", "Necromancer",
"Lawyer", "Hammerer",
"Chaplain", "Priest",
"CE", "Grand Mason",
"Engineer", "Mason",
"AtmosTech", "Engraver",
"CMO", "Chief Medical Dwarf",
"Medical Doctor", "Surgeon",
"Chemist", "Alchemist",
"Geneticist", "Bone Doctor",
"Virologist", "Diagnoser",
"RD", "Chief !!SCIENTIST!!",
"Scientist", "Blacksmith",
"Roboticist", "Armorsmith",
"HoS", "Captain of the Guard",
"Warden", "Sheriff",
"Detective", "Militia captain",
"AI", "Duke",
"pAI", "Count",
"space", "mountain",
"station", "fortess",
"Centcomm", "Mountainhomes",
"shuttle", "caravan",
"beer", "Dwarven Beer",
"ale", "Dwarven Ale",
"rum", "Dwarven Rum",
"wine", "Dwarven Wine",
"changeling", "Titan",
"xenomorph", "Crundle",
"xeno", "Crundle",
"alien", "Crundle",
"traitor", "Goblin",
"Cultist", "Goblin",
"Revolutionary", "Goblin",
"Rev", "Goblin",
"Cult", "Siege",
"Revolution", "Siege",
"Carp", "badgers",
"plasma", "magma",
"Officer", "Marksdwarf");
//broadcast("Starting Initialization...");
$index = 1;
while($index <= length($words))
{
mem(lower(at($words, $index)), at($words, $index+1));
$index += 2;
}
//broadcast("Initialization Complete!");
}
// Script Begin
if(mem("initialized") != 1)
{
Initialize();
mem("initialized", 1);
}
$newContent = explode($content, " ");
$index = 1;
while($index <= length($newContent))
{
$entry = at($newContent, $index);
$value = mem(lower($entry));
if($value)
{
at($newContent, $index, $value);
}
$index += 1;
}
$content = implode($newContent, " ");
// Script End
I you can give me any other words. Please do.
Edit2: I made all the changes Miauw besides the hair one. I don't understand that one.
Edit3: There all of your new, new changes are there.