Since only weaken() grow() and hack() benefit from using additional threads, having each one in a separate script will reduce the ram cost of using additional threads and thus increase our hacking gains a lot.Īt this point it’s worth having the API documentation handy. When writing scripts you might notice that their ram requirements increase as you use more ns functions. Note that speed here refers to the execution time, not how fast your weaken() grow() and hack() functions run – that is determined by hacking skill. Netscript2 is very close to modern javascript, and their speed is only limited by your computer. script files which are used in the tutorial, are slow and low on features. The first step is to start using netscript2. You might think it’s slow (and you’d be right) and that’s because there are several improvements you can make. Īt this point you have a script that will continuously weaken, grow and hack a given server. It plans to document all of the content that can be found in the game, such as the API, functions, and more. Please read CONTRIBUTING.md for details on the code of conduct, and the process for submitting pull requests.In addition the the ingame tutorial, there’s a good guide on how to get a decent hacking script started in the online documentation. Bitburner Wiki 168 articles 3 files 344 edits About the wiki This is a wiki about the programming game Bitburner that anybody can edit. There are also subfolders that seek to add context to the main function of the script. Then, to use the library, you say const lib new LibClass (ns) and call lib.libFunc () (which can access ns as this.ns (or maybe this.ns for extra safety) internally).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |