2019-03-03 04:08:54 +01:00
|
|
|
getScriptExpGain() Netscript Function
|
|
|
|
=====================================
|
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. js:function:: getScriptExpGain([scriptname[, hostname[, args...]]])
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
:RAM cost: 0.1 GB
|
2021-03-12 08:51:56 +01:00
|
|
|
:param string scriptname: Filename of script.
|
|
|
|
:param string hostname: Server on which script is running.
|
|
|
|
:param args...: Arguments that the script is running with.
|
|
|
|
:returns: The amount of hacking experience the specified script generates
|
|
|
|
while online.
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
This function can also return the total experience gain rate of all of your
|
|
|
|
active scripts by running the function with no arguments.
|
|
|
|
|
|
|
|
.. note:: A script is uniquely identified by both its name and its
|
|
|
|
arguments.
|