handle

static boolean handle(Array<String> options)

Attempts to converse, selecting the specified options. This will handle click continue interfaces and selecting the specified options, until there is an unknown option or the chat is over. This selects options by finding if an available option equals any specified option first, then checks if any option contains any of the specified options. Options are prioritized based on the order specified.

Return

true if the chat window is no longer open after conversing, false otherwise

Parameters

options

the options to select

static boolean handle(BooleanSupplier stopCondition, Array<String> options)

Attempts to converse, selecting the specified options. This will handle click continue interfaces and selecting the specified options, until there is an unknown option or the chat is over. This selects options by finding if an available option equals any specified option first, then checks if any option contains any of the specified options. Options are prioritized based on the order specified.

Return

true if the chat window is no longer open after conversing or the stop condition is true, false otherwise

Parameters

stopCondition

the stop condition that should cut terminate the chat handling

options

the options to select