NTSL Scripts: Difference between revisions

Jump to navigation Jump to search
1,142 bytes added ,  15:46, 4 December 2014
no edit summary
imported>Donkie
m (→‎Less Annoying Job Indicator: Jobs lowercase, removes any confusion with Head of Personnels capitalization)
imported>Srifenbyxp
No edit summary
Line 581: Line 581:
         $content = "beep";
         $content = "beep";
}</pre>
}</pre>
=== The short version for antags  ===
To cut down on the thinking here's a quick example on using scripts.
'''Miss leading locations example'''
Copy and paste this into the def Initialize() block in the ''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 and copy/paste > active for maximum evil laughter.
<pre>
$words = vector("chamber", "line",
"storage", "brig",
"maintenance", "bar",
"main", "escape",
"sec", "medbay",
"brig", "arrivals",
"cargo", "engineering",
"science", "security",
"bar", "vacant",
"chapel", "bridge",
"dorms", "locker room",
"office", "penis",
"upload", "ass",
"solars", "escape",
"core", "heart",
"engineering", "botany",
"locker room", "science");
</pre>
You can also tack on more than one script in the code. After the ending script function just press enter a few times and add more stuff, such as the malf be gone script.
<pre>
False Location Script
{
ending
}
Mute Script
{
end
}
ETC
</pre>


== Useful Snippets and Functions ==
== Useful Snippets and Functions ==
Anonymous user

Navigation menu