bitburner-src/markdown/bitburner.runningscript.md
omuretsu 06a985bdf8 Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
2022-10-21 11:16:00 -04:00

2.0 KiB

Home > bitburner > RunningScript

RunningScript interface

Signature:

export interface RunningScript 

Properties

Property Type Description
args (string | number | boolean)[] Arguments the script was called with
filename string Filename of the script
logs string[] Script logs as an array. The newest log entries are at the bottom. Timestamps, if enabled, are placed inside [brackets] at the start of each line.
offlineExpGained number Total amount of hacking experience earned from this script when offline
offlineMoneyMade number Total amount of money made by this script when offline
offlineRunningTime number Number of seconds that the script has been running offline
onlineExpGained number Total amount of hacking experience earned from this script when online
onlineMoneyMade number Total amount of money made by this script when online
onlineRunningTime number Number of seconds that this script has been running online
pid number Process ID. Must be an integer
ramUsage number How much RAM this script uses for ONE thread
server string Hostname of the server on which this script runs
threads number Number of threads that this script runs with