This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Updated for game version 2.4.0 | |
*/ | |
/** @param {NS} ns */ | |
export async function main(ns) { | |
ns.disableLog(`ALL`); // Failures are still logged, this just prevents unnecessary log spam. | |
ns.tprintf(`\x1b[1;35mUsing colors in script output with \x1b[1;36mtprint\x1b[1;35m & \x1b[36;1mtprintf\x1b[1;35m (terminal) and \x1b[36;1mprint\x1b[1;35m & \x1b[1;36mprintf\x1b[1;35m (log)`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Executes a script after a specified delay in milliseconds. | |
* | |
* This script takes a delay (in milliseconds) as its first argument, followed by the same arguments as ns.run(). | |
* | |
* For example, to spawn a script with 4 threads after a 10 millisecond delay using the same arguments as the calling script: | |
* ns.run('quickSpawn.js', 1, 10, 'scriptToSpawn.js', 4, ...ns.args); | |
* | |
* @param {NS} ns | |
*/ |