mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
Added a ?noScripts query string that can be used to start the game without loading any scripts.
This commit is contained in:
2
doc/build/html/_sources/netscriptjs.rst.txt
vendored
2
doc/build/html/_sources/netscriptjs.rst.txt
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user