Skip to main content

The "vngen_do_option_select" Function

Syntax#

vngen_do_option_select([id]);
ArgumentTypeDescription
idreal/stringOptional: The option ID to select (default: current highlighted option)

Description#

Selects the currently-highlighted option, if any, and records its ID. If a selection sound has been assigned in vngen_option, it will be played upon running this script.

If an option ID is supplied, it will be selected directly, ignoring navigation.

This script is not an action, and is intended to be run in keyboard and gamepad input events. Mouse and touch support are built-in and do not require vngen_do_option_select to make selections.

Example#

if (keyboard_check_released(vk_enter)) {
vngen_do_option_select();
}
if (keyboard_check_released(ord("Y"))) {
vngen_do_option_select("yes");
}