NTSL Scripts: Difference between revisions

171 bytes added ,  02:56, 13 September 2019
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
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.:
<pre>
<pre>
Test?
def process_signal(sig){ // Header.
 
if(sig.source=="Zion Freeman"){ sig.job="Nerd"; } // Some script.
 
sig.source+=" ("+sig.job+")"; // More script.
 
return sig;} // Footer.
</pre>
</pre>
'''[[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.]]'''


8

edits