Commands: Difference between revisions

From Heroes of Hammerwatch 2 Wiki
Jump to navigation Jump to search
Alpha (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The commands below are available by opening the console using the tilde (~) 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.<br>To save a command to your hwr.exe.cfg file you can either add the command manually by editing the file or type <code>save ''your command & argument''</code> or <code>save_curr ''your command''</code>.<br>Example:<br><code>save ui_scale 0.75</code><br><code>save_curr ui_scale</code>
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.<br>To save a command to your hwr2.exe.cfg file you can either add the command manually by editing the file or type <code>save ''your command & argument''</code> or <code>save_curr ''your command''</code>.<br>Example:<br><code>save ui_scale 0.75</code><br><code>save_curr ui_scale</code>




==Player Commands==
{| class="wikitable"
! colspan="2" style="text-align: center; font-weight: bold;" | Player Commands
|-
| style="text-align: center; font-weight: bold;" | ply_kill
| kills the player that typed this.
|-
|}
==HUDComponents Commands==
{| class="wikitable"
! colspan="2" style="text-align: center; font-weight: bold;" | HUDComponents Commands
|-
| style="text-align: center; font-weight: bold;" |
|
|-
|}
==Debugging Commands==
{| class="wikitable"
! colspan="2" style="text-align: center; font-weight: bold;" | Debugging Commands
|-
| style="text-align: center; font-weight: bold;" | dbg_list_baseitem_modifiers
|
|-
| style="text-align: center; font-weight: bold;" | dbg_list_existing_modifiers
|
|-
| style="text-align: center; font-weight: bold;" | dbg_list_tags
|
|-
| style="text-align: center; font-weight: bold;" | tst_lerp
|
|-
|}


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

Latest revision as of 23:48, 25 January 2025

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.