NTSL Scripts: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
Jobs will appear in brackets after names. | Jobs will appear in brackets after names. | ||
<pre>sig.source+=" ("+sig.job+")";</pre> | <pre> | ||
sig.source+=" ("+sig.job+")"; | |||
</pre> | |||
=== | === Abbr. Job Indicator === | ||
Gives abbreviations instead of full titles. | |||
<pre> | |||
//Abbr. Job Indicator - by TheDL | |||
jobs=list("Admiral", "Adm", "Assistant", "Ass", "Atmospheric Technician", "Atmo", "Bartender", "Bar", "Botanist", "Hydr", "Captain", "Cap", "Cargo Technician", "Carg", "Chaplain", "Chap", "Chemist", "Chem", "Chief Engineer", "CE", "Chief Medical Officer", "CMO", "Clerk", "Clrk", "Clown", "Clwn", "Curator", "Cura", "Detective", "Det", "Geneticist", "Gene", "Head of Personnel", "HoP", "Head of Security", "HoS", "Janitor", "Jani", "Lawyer", "Law", "Librarian", "Lib", "Medical Doctor", "MD", "Mining Medic", "Medi", "Paramedic", "Para", "Psychiatrist", "Psyc", "Quartermaster", "QM", "Research Director", "RD", "Roboticist", "Robo", "Scientist", "Sci", "Security Officer", "Sec", "Shaft Miner", "Mine", "Signal Technician", "Sig", "Station Engineer", "Engi", "Tourist", "Tour", "Unassigned", "Unas", "Unknown", "Unkn", "Virologist", "Viro", "Warden", "Ward", "Personal AI", "pAI", "Default Cyborg", "DefB", "Engineering Cyborg", "EngB", "Janitor Cyborg", "JanB", "Medical Cyborg", "MedB", "Miner Cyborg", "MnrB", "Peacekeeper Cyborg", "PceB", "Security Cyborg", "SecB", "Service Cyborg", "SrvB", "Standard Cyborg", "StnB"); | |||
if(find(jobs,sig.job)){ sig.job=jobs[find(jobs,sig.job)+1]; } | |||
sig.source+="["+sig.job+"]"; | |||
</pre> | |||
=== Spam Jammer === | |||
Blocks hulkouts and tourettes ticks. | |||
<pre> | |||
if(find(list("RAAAAAAAARGH!!!", "HNNNNNNNNNGGGGGGH!!!", | |||
"GWAAAAAAAARRRHHH!!!", "NNNNNNNNGGGGGGGGHH!!!", | |||
"AAAAAAARRRGH!!!", "CUNT", "FUCK", "PISS", "SHIT", "TITS", | |||
"COCKSUCKER", "MOTHERFUCKER"), sig.content)){ sig.pass=0;} | |||
</pre> | |||
=== Anonymous Messages === | === Anonymous Messages === | ||
Messages | Messages starting with '''/anon''' will broadcast under the name "Anonymous". | ||
<pre> | <pre> | ||
// Anonymous Messages - by TheDL | |||
=== | x=explode(sig.content," "); | ||
if(x[1]=="/anon"){ sig.pass=0; | |||
broadcast(signal(implode(x-x[1]," "), sig.freq, "Anonymous")); } | |||
// This one preserves language... | |||
x=explode(sig.content," "); | |||
{ | if(x[1]=="/anon"){ sig.pass=0; | ||
anon=signal(implode(x-x[1]," "), sig.freq, "Anonymous"); | |||
anon.language=sig.language; broadcast(anon); } | |||
} | |||
// ...this one randomizes filters, too. | |||
if( | x=explode(sig.content," "); | ||
if(x[1]=="/anon"){ sig.pass=0; a=list("italics", "robot", "sans", "yell"); | |||
anon=signal(implode(x-x[1]," "), sig.freq, "Anonymous"); | |||
n=1; while(n<length(a)){ if(prob(50)){ anon.filters+=a[n]; } n+=1; } | |||
anon.language=sig.language; broadcast(anon); } | |||
</pre> | |||
===Selective Mute === | ===Selective Mute === | ||
Line 448: | Line 414: | ||
}</pre> | }</pre> | ||
=== All Channel Communication for the AI === | === All Channel Communication for the AI === |