Added a ?noScripts query string that can be used to start the game without loading any scripts.

This commit is contained in:
danielyxie
2018-05-17 14:50:27 -05:00
parent 8f23a20719
commit c0ca464b5d
14 changed files with 82 additions and 112 deletions

View File

@@ -41,6 +41,8 @@ Therefore, the signature of the :code:`main()` function must be::
export async function main(ns) {
ns.print("Starting script here");
ns.hack("foodnstuff"); //Use Netscript hack function
ns.print(ns.args); //The script arguments must be prefaced with ns as well
}
Here is a summary of all rules you need to follow when writing Netscript JS code: