8
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
'''[[NT_Script#Simple_Guide_to_Using_Scripts|For a guide how to use these scripts look here.]]''' | '''[[NT_Script#Simple_Guide_to_Using_Scripts|For a guide how to use these scripts look here.]]''' | ||
==Useful Scripts== | == Useful Scripts == | ||
=== Job Indicator === | === Job Indicator === | ||
Jobs will appear in brackets after names. | Jobs will appear in brackets after names. | ||
Line 62: | Line 62: | ||
</pre> | </pre> | ||
=== Broadcast to All === | |||
Messages starting with '''/all''' will be broadcasted to all departments, and common. Admins hate this, though. Expect to get bwoinked. | |||
=== | <pre> | ||
// Broadcast to All - by TheDL | |||
x=explode(sig.content," "); | |||
freqs=list( 1459, 1447, 1359, 1357, 1355, 1353, 1351, 1349, 1347); | |||
if(x[1]=="/all"){ sig.pass=0; sig.content=implode(x-x[1]," "); n=1; | |||
while(n<=length(freqs)){ sig.freq=freqs[n]; broadcast(sig); n+=1; } } | |||
</pre> | |||
=== Broadcast to Any or All === | |||
Messages starting with a channel code will be broadcast to the corresponding department. The channel codes are '''/c''' for command, '''/e''' for engineering, '''/m''' for medical, '''/n''' for science, '''/o''' for AI private, '''/s''' for security, '''/u''' for supply, and '''/v''' for service. As above, messages starting with '''/all''' will be broadcasted to all departments, and common. Again, admins hate this. Expect to get bwoinked. | |||
<pre> | |||
// Broadcast to Any or All - by TheDL | |||
x=explode(sig.content," "); | |||
freqs=list( 1459, 1447, 1359, 1357, 1355, 1353, 1351, 1349, 1347); | |||
codes=list( "/all", "/o", "/s", "/e", "/m", "/c", "/n", "/v", "/u"); | |||
if(find(codes,x[1])){ n=find(codes,x[1]); sig.content=implode(x-x[1]," "); | |||
if(codes[n]!="/all"){ sig.freq=freqs[n]; } else{ sig.pass=0; n=1; | |||
while(n<=length(freqs)){ sig.freq=freqs[n]; broadcast(sig); n+=1; } } } | |||
</pre> | |||
=== Phrase Toggle === | |||
Enable or disable a script using a phrase. Any phrase can be used. Add the script to be toggled where indicated. User restricted, message blocked. Remove &&sig.source=="Name" to let anyone use it. Remove sig.pass=0; to not block the message. | |||
<pre> | |||
// Phrase Toggle - By TheDL | |||
toggle="Phrase"; if(find(sig.content,toggle)&& sig.source=="Name"){ | |||
sig.pass=0; if(mem(toggle)!=1){ mem(toggle,1); } else{ mem(toggle,0); } } | |||
if(mem(toggle)==1){ | |||
// Insert script here. | |||
{ | |||
} | } | ||
/ | </pre> | ||
=== Pun Pun Teller === | |||
Say /pun to have the Ghost of Pun Pun tell an awful pun! | |||
<pre> | |||
//Pun-Pun Teller - by TheDL | |||
exp=explode(sig.content," "); | |||
if(exp[1]=="/pun"){ sig.pass=0; | |||
broadcast(signal(pick("Did you hear about the guy that got cut in half? Don't worry, he's all right now.", "I started a business selling landmines disguised as prayer mats. Prophets are going through the roof!", "Why don't thieves get puns? Because they take things literally.", "My dog has no nose. How does he smell? Awful.", "A man entered ten puns in a pun contest, hoping that one would win. Unfortunately, no pun in ten did."),sig.freq,"The Ghost of Pun Pun"));} | |||
</pre> | |||
===English To Mid-evil Translator=== | ===English To Mid-evil Translator=== | ||
Line 612: | Line 604: | ||
}</pre> | }</pre> | ||
== Useful Snippets and Functions == | == Useful Snippets and Functions == | ||
== Outdated Scripts == | |||
=== | === Misleading Locations === | ||
Copy and paste this into the def Initialize() block in the [[#English_To_Pirate_Translator|English to Pirate -translator]]. You can also change words within the "" to suit any other needs like making "blood rune" to "retard". Be sure to go into other comm channels, copy/paste and set active for maximum evil laughter. | |||
<pre> | <pre> | ||
$ | $words = vector("scripts", "clown", "storage", "brig", | ||
"maintenance", "bar", "main", "escape", "sec", "medbay", | |||
"brig", "arrivals", "cargo", "engineering", "science", "security", | |||
"bar", "vacant", "chapel", "bridge", "dorms", "locker room", | |||
"office", "donuts", "upload", "ass", "solars", "escape", | |||
"core", "heart", "engineering", "botany", "locker room", "science"); | |||
</pre> | </pre> | ||
[[Category:Guides]] | [[Category:Guides]] |
edits