Nainstalovat Steam
přihlásit se
|
jazyk
简体中文 (Zjednodušená čínština)
繁體中文 (Tradiční čínština)
日本語 (Japonština)
한국어 (Korejština)
ไทย (Thajština)
български (Bulharština)
Dansk (Dánština)
Deutsch (Němčina)
English (Angličtina)
Español-España (Evropská španělština)
Español-Latinoamérica (Latin. španělština)
Ελληνικά (Řečtina)
Français (Francouzština)
Italiano (Italština)
Bahasa Indonesia (Indonéština)
Magyar (Maďarština)
Nederlands (Nizozemština)
Norsk (Norština)
Polski (Polština)
Português (Evropská portugalština)
Português-Brasil (Brazilská portugalština)
Română (Rumunština)
Русский (Ruština)
Suomi (Finština)
Svenska (Švédština)
Türkçe (Turečtina)
Tiếng Việt (Vietnamština)
Українська (Ukrajinština)
Nahlásit problém s překladem
Things like hacknet, faction rep gain, and approx money from hack() you will get while game is not running. But some complex automation shenanigans like starting and restarting scripts will simply not run.
So its good to let your scripts run for a while so you get some approx money/second values going and do faction work, and save, before shutting game down for the night.
usually people have a while true loop, you can exit such a loop with ns.exit()
of course not all scripts need such, but for example i have a setup.js script that runs on home permanently with a while(true) loop that checks various values of ns.getPlayer() periodically and kills/starts other scripts with ns.killall() and ns.exec().
such a script would do nothing while game is not running.