Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Formulas is in that list as well as a whole bunch of other stuff..
The documentation[github.com] can help you find which functions are available and how to use them, but to give a basic example:
In the important bit, the variable time, ns is the namespace for netscript, formulas the one for, well, the formulas, hacking the one that has all the hacking-related formulas, and finally growTime() is the function that gets the time to grow the server "noodles"; the getPlayer part is important because the hacking time includes your multipliers, like you get from augments.
This example isn't very useful, but I hope together with the docs you can make out how to use the formulas API. Good luck, and I hope you come up with some interesting scripts :)
thanks so much!
thanks for the link!
Since this post is the first result when searching "bitburner formulas.exe" in DuckDuckGo, the updated github link is https://github.com/bitburner-official/bitburner-src/blob/dev/markdown/bitburner.md