bitburner-src/markdown/bitburner.ns.prompt.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

836 B
Raw Blame History

Home > bitburner > NS > prompt

NS.prompt() method

Prompts the player with a dialog box with two options: “Yes” and “No”. This function will return true if the player click “Yes” and false if the player clicks “No”. The scripts execution is halted until the player selects one of the options.

Signature:

prompt(txt: string): Promise<boolean>;

Parameters

Parameter Type Description
txt string Text to appear in the prompt dialog box.

Returns:

Promise<boolean>

True if the player click “Yes” and false if the player clicks “No”.

Remarks

0 GB