Developer Console v1.3!
In-game commands with a drag & drop dev console! See the comments for the most recent version
Setup:
- Add DeveloperConsole.cs into your project files
- Create a new GameObject called “Console” in the M2DEngine scene
- Attach the script and you’re done!
How to Use:
Press ~ to open/close the console Type help to see all available commands Predictive text shows command completions as you type - press Tab to autofill Use Up/Down arrow keys to cycle through command history The console reads from the M2D Database, so custom items and abilities you create will work automatically
Commands:
add_ability [name] - Add ability by name (partial name matching supported)
remove_added_ability [name] - Remove abilities that were added via console (not default abilities)
list_abilities - Display all unlocked abilities
add_money [amount] - Add currency to player
add_item [name] [quantity] - Add item by name (partial name matching supported)
remove_item [name] [quantity] - Remove item from inventory by name
heal [amount] - Restore player health
mana [amount] - Set player mana to specified amount
damage [amount] - Damage player by specified amount
stats - Display all current player stats
set_stat - list stat names from CFG_Game
set_stat [stat_name] [value] - Set stat value to specified amount
set_level [level] - Set player level
god - Toggle invincibility mode (sets Health and Mana to infinite)
set_speed [amount] - Set the players speed
set_flag [flag_name] [value] - Set game flag to true or false
clear - Clear console output help - Display all available commands
To be implemented: Quest commands - complete tasks instantly Teleport command Killall ? Spawn Monster ? Let me know your suggestions!

💬 Comments (10)
**V1.2 ** Even more commands!
mana [amount] - Restore mana to player god - Toggle invincibility mode (infinite health & mana) stats - Display all stats and their values set_stat [stat] [value] - Modify any player stat
**Changes: ** remove_ability has changed to remove_added_ability. I couldn’t figure out a way to remove default abilities without editing other scripts..
Features: Stat commands sync with your CFG_Game configuration Typing set_stat without arguments or stats will list all available stats from your config
📜 Scripts
Want to continue the conversation?