NTSL Scripts: Difference between revisions

Jump to navigation Jump to search
40 bytes removed ,  03:01, 13 September 2019
no edit summary
No edit summary
No edit summary
Line 236: Line 236:


=== 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)
8

edits

Navigation menu