コンテンツにスキップ
ライオットビット

ライオットビット

  • 家
  • ニュース
  • ガイド
  • ビデオガイド
  • パッチノート
  • 不正行為を報告する
  • 検索フォームを切り替え
ビットバーナー

ビットバーナー – Odds of Success (Crime Script)

ポストする 01/12/2022 に owenz コメントはありません の上 ビットバーナー – Odds of Success (Crime Script)
  • タイトル: ビットバーナー
  • 発売日:
  • 開発者:
  • 出版社:
Bitburner に関する情報はまだ不完全です. これを使用してゲームの詳細を記入するのにご協力ください。 お問い合わせフォーム.

A script that makes its choice based on the odds of success with the amount of money made and the time involved.

仕組み

By utilizing a small formula to evaluate the crime it is possible to make better choices on the outcomes.

The ranking is created by taking the amount of money that can be earned then multiplying that by the odds of the crime’s success and finally dividing that by the time taken.

There is definitely a more thought-out way to do this by it will give a very basic money per sec valuation which the script uses to make it’s choice.

要件

  • Bitnode4
  • 17.10GB of Ram

スクリプト

Create a file

nano crime.js

Throw the following into it

const crimes = [
    "heist",
    "assassination",
    "kidnap",
    "grand theft auto",
    "homicide",
    "larceny",
    "mug someone",
    "rob store",
    "shoplift",
];

/** @param {import(".").NS } ns */
非同期関数メインのエクスポート(ns) {
    // Disable the log
    ns.disableLog("全て");

    ns.tail(); // Open a window to view the status of the script
    let timeout = 250; // In ms - too low of a time will result in a lockout/hang

    while (真実) {
        await ns.sleep(timeout); // Wait it out first
        if (ns.isBusy()) 続く;
        /** Calculate the risk value of all crimes */
        let choices = crimes.map((crime) => {
            let crimeStats = ns.getCrimeStats(crime); // Let us look at the important bits
            let crimeChance = ns.getCrimeChance(crime); // We need to calculate if its worth it
            /** Using probabilty(odds) to calculate the "risk" to get the best reward
             *      Risk Value = Money Earned * Odds of Success(P(あ) / ~P(あ)) / Time taken
             *
             *  Larger risk values indicate a better choice
             */
            let crimeRiskValue =
                (crimeStats.money * Math.log10(crimeChance / (1 - crimeChance + Number.EPSILON))) /
                crimeStats.time;
            戻る [crime, crimeRiskValue];
        });

        let bestCrime = choices.reduce((prev, 現在) => {
            return prev[1] > current[1] ? prev : 現在;
        });

        ns.commitCrime(bestCrime[0]);
        ns.print(
            `Crime: ${bestCrime[0]} Risk Value: ${bestCrime[1].toPrecision(3)} Cash to Earn: \$${ns
                .getCrimeStats(bestCrime[0])
                .money.toPrecision(4)}`
        );
    }
}

走る

run crime.js

The script will attempt to go to the crime page if unlocked.

As a note if you have Sleeves unlocked with the bitnode it might be required to manually start the crime for the 1st time as if they are actively doing a task the

ns.isbusy()

reports back true until something is done. After that it works correctly.

最終的な考え

This script will follow it’s basic money making strategy and as the player gains better stats it will generate more and more money.

If the player does not boost their stats other than shop lifting it might get stuck in a shoplifting loop as it is only growing those stats making it better at doing so, gain some defense and strength will allow it to change to a better target.

これが今日私たちがこの目的で共有するすべてです ビットバーナー ガイド. このガイドは元々、次の者によって作成および執筆されました。 owenz. このガイドを更新できなかった場合, これに従って最新のアップデートを見つけることができます リンク.

このサイトのコンテンツがあなたの権利を侵害していると思われる場合, あなたの知的財産権を含む, お問い合わせフォームを使用してすぐにご連絡ください.
ガイド タグ:ビットバーナー

ポストナビゲーション

前の投稿: ゼロアワー – All Watches and Wristband Codes
次の投稿: Future Love Space Machine – All Console Commands and Usage

返信を残す 返信をキャンセル

あなたのメールアドレスは公開されません. 必須フィールドにマークが付いています *

  • タイトル: ビットバーナー
  • 発売日:
  • 開発者:
  • 出版社:
Bitburner に関する情報はまだ不完全です. これを使用してゲームの詳細を記入するのにご協力ください。 お問い合わせフォーム.

免責事項

引用されたすべてのコンテンツはそれぞれの情報源から得られています. 当社があなたのコンテンツを許可なく使用したと思われる場合, 必ずご連絡ください。真剣に対応させていただきます.
  • 私たちに関しては
  • お問い合わせ
  • プライバシーポリシー
  • 利用規約

著作権 © 2025 ライオットビット.

搭載 プレスブックニュース ワードプレスのテーマ