NTSL Scripts: Difference between revisions

Jump to navigation Jump to search
140 bytes added ,  23:15, 19 April 2022
m
Indicates that the page needs revising due to being outdated.
No edit summary
m (Indicates that the page needs revising due to being outdated.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Needs revision
|reason = Scripts are out of date compared to ingame.
|user = [[User:HauntedOwl28|HauntedOwl28]] ([[User talk:HauntedOwl28|talk]]) 07:14, 19 April 2022 (EST)
}}
Most of these scripts are compatable, but there are conflicts. The sequence of things is important. Definitely room for improvement. All scripts need the global '''def process_signal(sig){''' as a header and '''return sig;}''' as a footer, unless specified otherwise. e.g.:
Most of these scripts are compatable, but there are conflicts. The sequence of things is important. Definitely room for improvement. All scripts need the global '''def process_signal(sig){''' as a header and '''return sig;}''' as a footer, unless specified otherwise. e.g.:


Line 114: Line 119:


<pre>
<pre>
//Pun-Pun Teller - by TheDL
// Pun Pun Teller - by TheDL


exp=explode(sig.content," ");
exp=explode(sig.content," ");
Line 236: Line 241:


=== Quickcast ===
=== Quickcast ===
A broadcast function with a short name and predefined signal. Saves a lot of typing. Change the specifics, or remove them. Defaults to '''1459'''.
A broadcast function with a short name and predefined signal. Saves a lot of typing.
<br>Change the specifics, or remove them. Defaults to '''1459'''.


<pre>
<pre>
// Quickcast.
// Quickcast, and avoid the hassle.


def qc(x){ broadcast(signal(x,1459,"Name","Job")); }
def qc(x){ broadcast(signal(x,1459,"Name","Job")); }
// Broadcasts the current signal.
def qsig(){ broadcast(sig); }


// Optional command volume. Use loud($) or loud($,1)
// Optional command volume. Use loud($) or loud($,1)
10

edits

Navigation menu