NTSL Scripts: Difference between revisions
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", | |||
"captain", "Capt", | |||
"head of personnel", "HoP", | |||
"bartender", "Bar", | |||
"chef", "Chef", | |||
"botanist", "Hydro", | |||
"quartermaster", "QM", | |||
"cargo technician", "Cargo", | |||
"shaft miner", "Miner", | |||
"clown", "Clown", | |||
"mime", "Mime", | |||
"janitor", "Jan-r", | |||
"librarian", "Lib-n", | |||
"lawyer", "Law", | |||
"chaplain", "Chapl", | |||
"chief engineer", "CE", | |||
"station engineer", "Engi", | |||
"atmospheric technician", "Atmos", | |||
"chief medical officer", "CMO", | |||
"medical doctor", "MD", | |||
"chemist", "Chem", | |||
"geneticist", "G-tic", | |||
"virologist", "Viro", | |||
"research director", "RD", | |||
"scientist", "Sci", | |||
"roboticist", "Robo", | |||
"head of security", "HoS", | |||
"warden", "Ward", | |||
"detective", "D-tiv", | |||
"security officer", "Sec", | |||
"ai", "AI", | |||
"cyborg", "Borg", | |||
"personal ai", "pAI", | |||
); | ); | ||
Line 85: | Line 85: | ||
$foo = ""; | $foo = ""; | ||
$joblow = lower($job); | |||
if(mem($ | if(mem($joblow)) { $foo = mem($joblow); } | ||
else { $foo = substr($job, 1, 6); } | else { $foo = substr($job, 1, 6); } | ||