diff --git a/README.md b/README.md index dcaffb0c2..82786b04d 100644 --- a/README.md +++ b/README.md @@ -61,4 +61,6 @@ Private beta feedback Also not really a big deal, but I'm at 110% zoom on chrome and the tutorial window covers some of the text - For the last thing of the tutorial, I would just have a button like "Finish Tutorial" rather than "Next" \ No newline at end of file + For the last thing of the tutorial, I would just have a button like "Finish Tutorial" rather than "Next" + + Command to see a script's RAM cost \ No newline at end of file diff --git a/src/Constants.js b/src/Constants.js index 64e3f384c..95f103afc 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -232,11 +232,13 @@ CONSTANTS = { "

Functions


" + "You can NOT define you own functions in Netscript (yet), but there are several built in functions that " + "you may use:

" + - "hack(hostname/ip)
Core function that is used to hack servers to steal money and gain hacking experience. The argument passed in must be a string with " + - "either the IP or hostname of the server you want to hack.
Examples: hack('foodnstuff'); or hack('148.192.0.12');

" + + "hack(hostname/ip)
Core function that is used to try and hack servers to steal money and gain hacking experience. The argument passed in must be a string with " + + "either the IP or hostname of the server you want to hack. Attempting to hack a server takes time. This time is dependent on your hacking skill and the server's " + + "security level.
Examples: hack('foodnstuff'); or hack('148.192.0.12');

" + "sleep(n)
Suspends the script for n milliseconds.
Example: sleep(5000);

" + "grow(hostname/ip)
Use your hacking skills to increase the amount of money available on a server. The argument passed in " + - "must be a string with either the IP or hostname of the target server.
Example: grow('foodnstuff');

" + + "must be a string with either the IP or hostname of the target server. The grow() command takes a flat 2 minutes to execute " + + "and grants 1 hacking exp when complete.
Example: grow('foodnstuff');

" + "print(x)
Prints a value or a variable to the scripts logs (which can be viewed with the 'tail [script]' terminal command )

" + "nuke(hostname/ip)
Run NUKE.exe on the target server. NUKE.exe must exist on your home computer.
Example: nuke('foodnstuff');

" + "brutessh(hostname/ip)
Run BruteSSH.exe on the target server. BruteSSH.exe must exist on your home computer
Example: brutessh('foodnstuff');

" + @@ -261,8 +263,7 @@ CONSTANTS = { "of the for loop. The following example shows code that will do the same thing as the while loop example above, " + "except using a for loop instead:

" + "for (i = 0; i < 10; i = i+1) {
    hack('foodnstuff');
};


" + - "

If statements

" + - "", + "

If statements

", TutorialTravelingText:"There are six major cities in the world that you are able to travel to:

" + " Aevum
" +