Skip to main content

Module dev

Module dev 

Source
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

§Player Movement

§Playtest Notes

§Flag Management

§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_MODE only).
dev_list_flags_handler
Lists all player flags currently set (DEV_MODE only). 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_MODE only).
dev_list_sched_handler
Lists upcoming scheduled events from the world’s scheduler (DEV_MODE only).
dev_note_handler
Record a development note to the daily log file (DEV_MODE only).
dev_reset_seq_handler
Resets a sequence flag back to step 0 (DEV_MODE only).
dev_sched_cancel_handler
Cancel a scheduled event by its internal index (DEV_MODE only).
dev_sched_delay_handler
Delay a scheduled event by N turns (DEV_MODE only).
dev_set_flag_handler
Sets a simple boolean flag on the player (DEV_MODE only).
dev_spawn_item_handler
Spawns an item directly into the player’s inventory (DEV_MODE only).
dev_start_seq_handler
Creates a new sequence flag with optional step limit (DEV_MODE only).
dev_teleport_handler
Instantly teleports the player to any room by its room id (DEV_MODE only).