Commands

From Heroes of Hammerwatch 2 Wiki
Revision as of 23:48, 25 January 2025 by Alpha (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The commands below are available by opening the console using the tilde (~), or backtick (`) key. This key is usually located below the escape key. These commands don't save to your configuration file so they will not stick once you close the game.
To save a command to your hwr2.exe.cfg file you can either add the command manually by editing the file or type save your command & argument or save_curr your command.
Example:
save ui_scale 0.75
save_curr ui_scale


Player Commands

Player Commands
ply_kill kills the player that typed this.

HUDComponents Commands

HUDComponents Commands

Debugging Commands

Debugging Commands
dbg_list_baseitem_modifiers
dbg_list_existing_modifiers
dbg_list_tags
tst_lerp

Cheat Commands

Cheats
e_cheats e_cheats is required for any of these commands to work. Once toggled on, a red text will appear top right. Cheats are only available on modded profiles. This feature is disabled until mod support is enabled by the Devs.
cht_spectate_next A Typed command to switch the current spectated player.
cht_spectate A typed command to switch to spectate mode. Inputing it a second time disables it.
cht_list_flags Shows a list of flags on the current save. Such as NG+, classes, Town NPCs, Ect.
cht_show_tailor This will show the UI for the charactor creator menu, but it can not but used to change anything.
cht_print_charcreate_colors Shows data related to the colors your charator sprite uses.
cht_open_interface Opens a script interface. (cht_open_interface <filename> <class>). Mostly for debugging mod stuff.
cht_tutorials_unlock Sets the flag that you compleated the tutorial.
cht_noclip Allows the charator to walk through walls. Used if you get pushed out of bounds or stuck behind walls. default Value=false
cht_god Sets infinite health, doesn't always work as expected. default Value=false
cht_plr_hidden Hides the player on screen. default Value=false
cht_plr_free_mana_cost Makes everything cost 0 mana. default Value=false
cht_plr_free_health_cost Makes everything cost 0 Health. Mainly the Drink that convers 50% of cost to Health. default Value=false
cht_clear_skills Resets all skill point allocation.
cht_refill_potions Refills all potion charges.
cht_list_all_items Prints all items and ids in the game to the console.
cht_play_music Plays the specific music requested. (cht_play_music <filename>).
cht_play_ambience Plays the specific sound requested. (cht_play_ambience <filename>).
cht_remove_building Deletes the desired building. (cht_remove_building <buildingname>).
cht_clear_trinkets Deletes all trinkets from inventory.
cht_spawn_trinket spawns a trinket next to the player using the trinket ID value. (cht_spawn_trinket <trinketID>)
cht_spawn_specific_trinket Spawns a trinket next to the player using the trinket name. (cht_spawn_specific_trinket <trinketname>)
cht_give_specific_trinket Gives a trinket to the player using the trinket name. (cht_give_specific_trinket <trinketname>)
cht_fill_trinkets Gives multiple random trinkets. set a number for each rarity you want to get. (cht_fill_trinkets <common> <uncommon> <rare> <epic> <cursed>)
cht_spawn_equipment Spawns random equipment next the player. (cht_spawn_equipment <amount>)
cht_spawn_specific_equipment Spawns a specific peice of equipment next to the player. (cht_spawn_specific_equipment <equipmentname>)
cht_spawn_equipment_for_slot rarity | amount )
cht_explore_level Uncovers the entire map.
cht_give_experience Player gains experience. (cht_give_experience <amount>)
cht_give_health Player recovers Health. (cht_give_health <amount>)
cht_damage Damages the player. (cht_damage <amount>)
cht_plr_damage_poison Damages the player with poison. (cht_damage_poison <amount>)
cht_plr_damage_fire Damages the player with fire. (cht_damage_fire <amount>)
cht_give_mana Player recovers mana. (cht_give_mana <amount>)
cht_give_material Gives an amount of a certain material (gold/wood/stone/iron/crystals/dust/fragments/all). (cht_give_material <materal> <amount>)
cht_spawn_gold spawns piles of gold next to teh player. (cht_spawn_gold <amount>)
cht_spawn_material Spawns material around the player. (cht_spawn_material <materal> <amount>)
cht_plr_level_progress Sets the character to the specified level, with the correct tier and key items for that level as well as a random selection of level appropriate gear. (cht_plr_level_progress <level>)
cht_plr_level_skills ??
cht_plr_reset_cooldowns Resets all cooldowns.
cht_set_flag Can be used to set/unset a flag. (set_flag <flag> <value> <persistent>)
cht_set_char_flag Sets a flag bound to the character. (set_char_flag <flag> <value>)
cht_clear_flags Clears all flags.
cht_clear_char_flags Clears all flags bound to the charator.
cht_set_scalar "Sets a scalar. (set_scalr <scalar> <value>)"
cht_killall Will kill all enemies on the current level.
cht_revive Revivies you.
cht_listenemies lists all enemies and IDs to the console.
cht_finish_level (cht_finish_level <levelname>)
cht_goto_level (cht_goto_level <levelname>)
cht_give_keys Gives the player a specific key. This is likely left over code as Heroes of hammerwatch 2 doesnt use keys.(cht_give_keys <keyname>)
cht_add_all_blueprints unlocks all blueprints.
cht_unlock_town_flags unlocks all buildings. Does not build them?
print Prints a string to the console. (print <text>)
dbg_cht_fill_equipment
dbg_cht_ignore_equipment_requirements lets the playter equip and use equipment even if they don't have the rquired stats. default Value=false
dbg_show_stash opens the stash tab?
cht_free_shops makes all shop items free. default Value=false
dbg_reset_accomplishments Resets all values in the accomplishments menu.
dbg_track_unit_kills keeps a tally of units killed and thier associated info. default Value=false
dbg_list_unit_kills shows the list of killed enemies that dbg_track_unit_kills has.
dbg_clear_unit_kills resets the info in dbg_track_unit_kills.