NTSL Scripts: Difference between revisions

Jump to navigation Jump to search
4 bytes removed ,  21:22, 21 September 2014
m
→‎Less Annoying Job Indicator: Jobs lowercase, removes any confusion with Head of Personnels capitalization
imported>Kosmos
m (Removed broken Selective Mute, renamed working Cleaner Selective Mute -> Selective Mute. Less Annoying Job Indicator works again. Thanks to Gun Hog for fixing the codes!)
imported>Donkie
m (→‎Less Annoying Job Indicator: Jobs lowercase, removes any confusion with Head of Personnels capitalization)
Line 33: Line 33:
<pre>def Initialize() {
<pre>def Initialize() {
$words = vector(
$words = vector(
    "Assistant", "Assnt",
  "assistant", "Assnt",
    "Captain", "Capt",
  "captain", "Capt",
    "Head of Personnel", "HoP",
  "head of personnel", "HoP",
    "Bartender", "Bar",
  "bartender", "Bar",
    "Chef", "Chef",
  "chef", "Chef",
    "Botanist", "Hydro",
  "botanist", "Hydro",
    "Quartermaster", "QM",
  "quartermaster", "QM",
    "Cargo Technician", "Cargo",
  "cargo technician", "Cargo",
    "Shaft Miner", "Miner",
  "shaft miner", "Miner",
    "Clown", "Clown",
  "clown", "Clown",
    "Mime", "Mime",
  "mime", "Mime",
    "Janitor", "Jan-r",
  "janitor", "Jan-r",
    "Librarian", "Lib-n",
  "librarian", "Lib-n",
    "Lawyer", "Law",
  "lawyer", "Law",
    "Chaplain", "Chapl",
  "chaplain", "Chapl",
    "Chief Engineer", "CE",
  "chief engineer", "CE",
    "Station Engineer", "Engi",
  "station engineer", "Engi",
    "Atmospheric Technician", "Atmos",
  "atmospheric technician", "Atmos",
    "Chief Medical Officer", "CMO",
  "chief medical officer", "CMO",
    "Medical Doctor", "MD",
  "medical doctor", "MD",
    "Chemist", "Chem",
  "chemist", "Chem",
    "Geneticist", "G-tic",
  "geneticist", "G-tic",
    "Virologist", "Viro",
  "virologist", "Viro",
    "Research Director", "RD",
  "research director", "RD",
    "Scientist", "Sci",
  "scientist", "Sci",
    "Roboticist", "Robo",
  "roboticist", "Robo",
    "Head of Security", "HoS",
  "head of security", "HoS",
    "Warden", "Ward",
  "warden", "Ward",
    "Detective", "D-tiv",
  "detective", "D-tiv",
    "Security Officer", "Sec",
  "security officer", "Sec",
    "AI", "AI",
  "ai", "AI",
    "Cyborg", "Borg",
  "cyborg", "Borg",
    "Personal AI", "pAI",
  "personal ai", "pAI",
     );
     );
      
      
Line 85: Line 85:


$foo = "";
$foo = "";
$joblow = lower($job);


if(mem($job)) { $foo = mem($job); }
if(mem($joblow)) { $foo = mem($joblow); }
else { $foo = substr($job, 1, 6); }
else { $foo = substr($job, 1, 6); }


Anonymous user

Navigation menu