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.

WARNING: Dev console is not built for actual playthrough, many of its commands will save into your save file, possibly corrupting it. Always back up your game first

Simple commands

Simple commands consists of a single "word".

Simple commands
Command Effect
lowcd Sets all cooldowns to 1 second
unlockspells Unlocks all spells at their highest level
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
spawnvendors Spawns NPCs selling all items in the game
spawnservice Spawns NPC offering all possible services (enchants, bank, etc)
spawnmine Spawns 12 copper mining nodes around you
spawnflower Spawns 12 sunflower nodes around you
maxinv Adds 640 inventory slots
maxbank Adds 640 slots to bank
maxmatbank Adds 640 slots to material bank
start Uses unlockspells, lowcd, travelspeed 500, shield, manareg 500, getgold 999999999 and adds animal from into the ability bar

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 of the skill, E.g. getexp gathering 5000 gives 5000 exp to gathering. Works with groups as well (combat, prof)
getgold Sets your current gold to entered value
getskill Sets your current combat skill points to entered value
travelspeed Sets your travel form's speed to entered value (as percentage, 160 -250 default)
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
goto Teleports to a discovered map location (E.g. "goto Magdora")
setweather Sets weather written after this (clear/cloudy/rain/thunderstorm/windy) and numbers from 0 - 10 - rain, cloud and wind intensity.

E.g. setweather cloudy 0 10 0 for a cloudy weather with no wind or rain

getrep Adds reputation. getrep reputationSource amount, e.g. getrep Magdora 5000
removerep Removes reputation. removerep reputationSource amount, e.g. removerep Magdora 5000
addinvslots Adds inventory slots equal to the value set (E.g. addinvslots 1 = adds 1 slot)
spawn Spawns item. The command should be followed by amount and item's name ("spawn 1 egg" spawns 1 egg at your feet)

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
testdelivery Creates a pigeon delivery of gold and 1 egg