available_choice_options
Jump to navigation
Jump to search
Function Syntax
string [int] available_choice_options( boolean? spoilers = false )
- Returns all available choice options in the current (or last) choice adventure the player encountered.
- spoilers: If
true
, also add KoLmafia-generated spoiler text to each choice string
- spoilers: If
This function was added in r17937 and r17938.
Code Samples
Suppose the player visits Dr. Gordon Stuart, a Scientist, then executes the following code:
string [int] choices = available_choice_options();
foreach num, choice_text in choices {
print(`{num}: {choice_text}`);
}
Then KoLmafia will print:
1: Can I fight that tentacle you saved for science? 2: What can you tell me about "refuse material"? 3: Great!