Expand description
Development mode command handlers for the Amble game engine.
This module provides handlers for special development commands that are only
available when the game is running in DEV_MODE. These commands allow developers
and content creators to manipulate game state for testing, debugging, and
content creation purposes.
§Security Note
All functions in this module bypass normal game restrictions and can modify world state in ways that would not be possible through regular gameplay. They should only be available in development builds or when explicitly enabled by developers.
§Available Commands
§Item Manipulation
dev_spawn_item_handler- Instantly add any item to player inventory
§Player Movement
dev_teleport_handler- Instantly transport player to any room
§Playtest Notes
dev_note_handler- Append a playtest note with location metadata
§Flag Management
dev_start_seq_handler- Create new sequence flags with custom limitsdev_set_flag_handler- Add simple boolean flags to playerdev_advance_seq_handler- Advance sequence flags by one stepdev_reset_seq_handler- Reset sequence flags back to step 0
§Logging
All dev commands use warn-level logging to create an audit trail of
development actions, making it easy to track what changes were made
during testing sessions.
Functions§
- dev_
advance_ seq_ handler - Advances a sequence flag to its next step (
DEV_MODEonly). - dev_
list_ flags_ handler - Lists all player flags currently set (
DEV_MODEonly). Simple flags are displayed as their name, sequence flags as name#step. - dev_
list_ npcs_ handler - Lists all NPCs with their current location and state (
DEV_MODEonly). - dev_
list_ sched_ handler - Lists upcoming scheduled events from the world’s scheduler (
DEV_MODEonly). - dev_
note_ handler - Record a development note to the daily log file (
DEV_MODEonly). - dev_
reset_ seq_ handler - Resets a sequence flag back to step 0 (
DEV_MODEonly). - dev_
sched_ cancel_ handler - Cancel a scheduled event by its internal index (
DEV_MODEonly). - dev_
sched_ delay_ handler - Delay a scheduled event by N turns (
DEV_MODEonly). - dev_
set_ flag_ handler - Sets a simple boolean flag on the player (
DEV_MODEonly). - dev_
spawn_ item_ handler - Spawns an item directly into the player’s inventory (
DEV_MODEonly). - dev_
start_ seq_ handler - Creates a new sequence flag with optional step limit (
DEV_MODEonly). - dev_
teleport_ handler - Instantly teleports the player to any room by its room id (
DEV_MODEonly).