← Back to all addons

Developer Console v1.3!

Posted by Soho on Nov 3, 2025 at 3:00 AM

ExperimentalFeatureEditor3.0 Verified
🔥 2

In-game commands with a drag & drop dev console! See the comments for the most recent version

Setup:

  1. Add DeveloperConsole.cs into your project files
  2. Create a new GameObject called “Console” in the M2DEngine scene
  3. 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)

Gyvr Nov 03, 2025 at 03:01 AM
This is EPIC! Thank you so much for sharing this 🔥
❤️ 1
Soho Nov 03, 2025 at 03:02 AM
No worries! Let me know if you find any issues if you try it out 🙂
Soho Nov 03, 2025 at 03:03 AM
and again, happy for you to make changes to this and implement it in a future version if you’re happy with it!
❤️ 1
Gyvr Nov 03, 2025 at 03:05 AM
I’ll definitely reach out to you to integrate it in the future!
🤝 1
Soho Nov 03, 2025 at 03:37 AM

**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

❤️ 1
Soho Nov 03, 2025 at 03:53 AM
Developer Console v1.2!
Soho Nov 03, 2025 at 10:17 PM
Developer Console v1.3!
Soho Nov 03, 2025 at 10:18 PM
v1.3 Small update, but I’ve added set_speed to increase player speed!
❤️ 1
Soho Nov 03, 2025 at 10:18 PM

Want to continue the conversation?