-
Notifications
You must be signed in to change notification settings - Fork 18
Auto‐Play
The Auto Play component provides functionalities to manage automated gameplay. It allows setting various parameters and states related to automated dungeon running and other activities.
auto_play.is_active()
Note
Checks if the auto play is fully active.
- Returns: A boolean indicating whether auto play is active.
auto_play.set_is_profile_active(state)
Note
Sets the state of the profile to active or inactive.
- Parameters:
-
state
: A boolean value indicating the desired state.
-
auto_play.set_selected_dungeon_text(text)
Note
Sets the text for the selected dungeon.
- Parameters:
-
text
: A string representing the dungeon text.
-
auto_play.set_dungeon_entrance_name(text)
Note
Sets the name of the dungeon entrance.
- Parameters:
-
text
: A string representing the dungeon entrance name.
-
auto_play.set_dungeon_map_name(text)
Note
Sets the name of the dungeon map.
- Parameters:
-
text
: A string representing the dungeon map name.
-
auto_play.set_world_map_name(text)
Note
Sets the name of the world map.
- Parameters:
-
text
: A string representing the world map name.
-
auto_play.set_dungeon_entry_point(point)
Note
Sets the entry point for the dungeon.
- Parameters:
-
point
: Avec3
object representing the entry point coordinates.
-
auto_play.set_world_waypoints(waypoints_table)
Note
Sets the waypoints for the world map.
- Parameters:
-
waypoints_table
: A table ofvec3
objects representing the waypoints.
-
auto_play.set_dungeon_waypoints(waypoints_table)
Note
Sets the waypoints for the dungeon.
- Parameters:
-
waypoints_table
: A table ofvec3
objects representing the waypoints.
-
auto_play.get_objective()
Note
Gets the current objective.
- Returns: An integer representing the current objective.
The objective
enum defines the different objectives that can be set for auto play. These objectives determine the tasks that the auto play system will focus on.
-
unknown
: Represents an unknown objective. -
revive
: Represents the objective to revive the character. -
fight
: Represents the objective to engage in combat. -
quest
: Represents the objective to complete quests. -
travel
: Represents the objective to travel to a location. -
loot
: Represents the objective to loot items. -
sell
: Represents the objective to sell items. -
reset
: Represents the objective to reset the dungeon or instance.