Dev console

From Chronicles of Torisia
Jump to navigation Jump to search

Dev console is activated by pressing F12. It opens a text field you can input commands into.

Simple commands

Simple commands consists of a single "word". To reverse most of these commands, you have to load older save file.

Simple commands
Command Effect
lowcd Sets all cooldowns to 1 second
unlockspells Unlocks all spells at their highest level
addinvslots Adds 4 slots to the inventory
maxinv Unlocks all inventory slots (72)
unlockallportals Unlocks all portals in the game
genocide Instantly kills everything you're in combat with
oneshot Sets Fireball's damage multiplier to 999,999,999
shield Adds a shield with 9,999,999 hitpoints
spawnenemy Spawns a random enemy at your position
stopcd Resets all cooldowns
fillbeehives Sets the amount of honey in all behives in current zone to 99

Commands with a parameter

These commands consists of the command itself and a numeric value. The command and value must be split by a space. (E.g. getgold 500 sets your gold to 500).

Commands with a parameter
Command Effect
getexp Sets your current experience points to entered value
getgatherexp Sets your current gathering experience points to entered value
getgold Sets your current gold to entered value
getskill Sets your current skill points to entered value
getgatherskill Sets your current gathering skill points to entered value
travelspeed Sets your travel form's speed to entered value (as percentage, 160 -250 default)
gotoportal Teleports to entered portal ID (works only if the UI map has been opened once)
manareg Changes default mana regeneration per second (default = 10)
setspellqueue Changes the spell queue duration. Resets back to 0.4 once you restart the game.
unlockrecipe Unlocks a specific recipe by entering its name
daylength Sets how long a day is in seconds
goto Teleports to a discovered map location (E.g. "goto Magdora")

Creating items

You can create item with any stats using the command "giveitem" followed by multiple parameters. There are almost no checks if the input is correct so anything might happen if the input is wrong:


1) Item purpose.

A lot of code depends on this so it's important this is actually correct:

  • Consumable - If item can be used in any way, like potions, food, recipes, etc
  • Gear - If item should be equipable
  • Material - if this item is a material

2) Item purpose ID

Mostly used for consumables like potions as it determines what the item will do. IDs can be found in ID list. Set to 0 if it's gear or probably not important.

3) Gear or consumable type

This parameter determines what slot will this item equip into (if gear) or how will it behave as a consumable

Gear types:

  • Weapon
  • Offhand
  • Enchantedbook
  • Amulet
  • Head
  • Chest
  • Legs
  • Boots
  • Gloves
  • Ring
  • Cloak

Consumable types:

  • Instantpotion
  • Combatpotion
  • Utilitypotion
  • Food
  • Drink

4) Stats

After this, you can also add various stats to the item. E.g. to add 1000 armor, you can use armor=1000

Stats:

  • amount (works only on stackable items like consumables or materials)
  • power
  • vitality
  • hitpoints
  • dmg - raw weapon damage
  • armor
  • luck
  • manaregen
  • critchance
  • critdmg
  • evasion
  • castspeed
  • cdrate
  • lifeleech


Final command example:

giveitem gear 0 weapon power=5000 vitality=5000

This generates an item with power and vitality 5000.

Tests

Do nothing for gameplay

Command Test action
testresist Summons training dummy and fires damage tests through its resistances
testresisteffect Summons training dummy and fires slow and stun through it to test resistances
testall Runs all tests