Simple Scripting Conversion: Difference between revisions
From Iron Realms Nexus Client Documentation
(Created page with "The Nexus client includes two methods of creating [Reflexes], [Simplified Scripting], and [JavaScript]. While JavaScript allows you to create complex, sophisticated reflex packages, Simplified Scripting allows you to create reflexes without any knowledge of how to write code. However, the day may come when you're ready to make the jump from Simplified Scripting to JavaScript. This guide attempts to serve as a way to bridge that gap more easily. === Send Command === <pre...") |
No edit summary |
||
Line 2: | Line 2: | ||
=== Send Command === | === Send Command === | ||
send_command(<command>); | send_command(<command>); | ||
Example: | Example: | ||
send_command("put gold in pack"); | send_command("put gold in pack"); | ||
=== Show Notice === | === Show Notice === | ||
display_notice(<text>, <fg color>, <bg color>[, <more text>, <fg>, <bg>, ...]); | display_notice(<text>, <fg color>, <bg color>[, <more text>, <fg>, <bg>, ...]); | ||
Example: | Example: | ||
display_notice("This will be colored blue.", "blue"); | display_notice("This will be colored blue.", "blue"); | ||
display_notice("This is black on a white background.", "black", "white"); | display_notice("This is black on a white background.", "black", "white"); | ||
display_notice("This will be red, ", "red", "", "while this is green, ", "green", "", "and this is orange on a blue background.", "orange", "blue"); | display_notice("This will be red, ", "red", "", "while this is green, ", "green", "", "and this is orange on a blue background.", "orange", "blue"); | ||
Revision as of 18:03, 6 July 2023
The Nexus client includes two methods of creating [Reflexes], [Simplified Scripting], and [JavaScript]. While JavaScript allows you to create complex, sophisticated reflex packages, Simplified Scripting allows you to create reflexes without any knowledge of how to write code. However, the day may come when you're ready to make the jump from Simplified Scripting to JavaScript. This guide attempts to serve as a way to bridge that gap more easily.
Send Command
send_command(<command>);
Example:
send_command("put gold in pack");
Show Notice
display_notice(<text>, <fg color>, <bg color>[, <more text>, <fg>, <bg>, ...]);
Example:
display_notice("This will be colored blue.", "blue");
display_notice("This is black on a white background.", "black", "white");
display_notice("This will be red, ", "red", "", "while this is green, ", "green", "", "and this is orange on a blue background.", "orange", "blue");