토탈워: 워해머 2

토탈워: 워해머 2

1,187 평점
Console Commands (Modding Tool) (WH2 VERSION)
25
9
6
43
11
18
3
9
4
2
2
4
2
2
3
3
2
2
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
태그: mod, Campaign
파일 크기
게시일
업데이트일
432.538 KB
2020년 5월 12일 오후 12시 28분
2022년 5월 1일 오전 10시 11분
업데이트 노트 38개 (보기)

다운로드 위해 구독하기
Console Commands (Modding Tool) (WH2 VERSION)

prop joe님의 1 모음집
Prop Joe Mods
아이템 58개
설명
Adds a bunch of commands that help with mod making and testing. Open the text box by pressing a button on the top left (see first screenshot). Type the command into the text box, then press the button to the right. Arguments in <bold> need to be replaced with valid values (e.g. give region wh_main_chs_chaos, give gold 1000).

List of DB keys and how to find them
  • give gold <number> - gives <number> of gold to the player (can also be negative), if you have a settlement selected it will give gold to the faction owning the settlement
  • give gold - gives 50000 gold to the player, same faction things as above
  • fow on - fog of war on
  • fow off - fog of war off
  • add mov - restore selected char movement points
  • mov - gives the selected character a buff with bonus movement points
  • mov off - removes the buff with bonus movement points from the selected character (and switch your army stance after to reset your movement)
  • add unit <unit_key> <number> - add <number> of units with unit_key to selected army*
  • add unit <unit_key> - add unit with unit_key to selected army*
  • add axp <number> - add <number> of ranks to all units of selected army
  • add axp - add 1 rank to all units of selected army
  • add xp <number> - add <number> of xp points to the selected character, unembed heroes to give them xp
  • primary <number> - set primary slot level of selected region to <number>
  • primary - set primary slot level of selected region to max
  • region - gives 1000 growth, 1000 horde growth and 1 turn build speed to all player regions
  • region off - turns off region
  • give region - gives the player ownership of the selected region
  • give region <faction_key> - gives <faction_key> ownership of the selected region, if a faction has no regions or armies on the map you can't give them a region, spawn them an army first
  • abandon - makes the selected region be abandoned
  • kill - kills (or wounds if immortal) the selected character and his army
  • technology - gives the player +2000% research speed
  • technology <number> - gives the player <number>% research speed (can also be negative)
  • technology off - remove the technology bonuses
  • global rec <number> - changes the player's global recruitment time by <number> of turns (use negative value to lower)
  • global rec off - remove the global recruitment time bonuses
  • heal <number> - sets health of each unit in the selected army to <number>, that is between 0-100
  • to_pool <agent_key> <agent_subtype_key> - adds a lord to the player faction recruit pool, the name will be blank and the character won't be immortal, cross-race stuff won't work without table adjustments, see link to my mod below for Lords
  • item <ancillary_key> - gives the player an ancillary (items characters can equip), list of keys[pastebin.com], giving mounts won't work, some items are culture-locked
  • tele - first select a character, then select another character or a settlement as a teleport target, after that typing tele will teleport the character
  • add trait <trait_key> - adds a trait to the selected character, e.g. add trait wh2_dlc09_trait_defeated_settra
  • add trait <trait_key> <points> - for traits with multiple levels
  • remove trait <trait_key> - removes a trait
  • spawn <subtype> <faction_key> <units> - spawns an army next to selected character or settlement, use one of the general subtypes[pastebin.com], faction_key and units are optional

More command descriptions here since I hit the workshop word limit:
  • shroud2
  • kill2
  • killc
  • killc2
  • agent agent_type agent_subtype
  • bb building_key
  • prg
  • ancies
  • etc.

Commands related to resources, you probably want one of the pooled resources:
  • res <pooled_res_key> <number> - add <number> of a <pooled_res_key> to the player faction (can be negative), look in the discussion thread for a list of keys
  • hef_inf <number> - gives the player a faction buff that gives <number> of High Elf influence per turn, can be negative
  • hef_inf off - remove the High Elf influence bonuses
  • give slaves <number> - gives <number> of slaves to the player faction, it gives 10000 slaves if used without a number
  • other_res <number> - way to change chivalry, type other_res <number> to adjust how much you get those every turn, you don't need to specify the resource name here

Commands related to diplomacy, you can disable fog of war to be able to select any region:
  • alliance - make a military alliance with the owner of the currently selected settlement or character
  • peace - make peace with the owner of the currently selected settlement or character
  • trade - make a trade agreement with the owner of the currently selected settlement or character
  • confederate - confederate the owner of the currently selected settlement or character
  • war - starts a war between the player and the owner of the currently selected settlement or character
  • vassal- some thing as above
  • alliance2, peace2, trade2, confederate2, war2, vassal2 - same thing as the commands above but can target any 2 factions, and not necessarily involve the player faction, so the way it works: select first region, select second region, type the command (for example war2)

Commands related to executing Lua code: lua, e, ee

Commands related to printing game information: info, more info, coords, comps, dump ui

So for example just type "give gold" (without a /) in the text box below the chat and you should get 50000 gold.

Some commands like unit giving and char movement points work but you'll need to reselect to see it in the UI, the UI doesn't auto-refresh.

*If what you want is to cheat in units I suggest you check out my mod Dogs of War. Inside that mod you can set recruitment cost to 0 for free recruitment. That mod has the table edits so the units don't T-pose in battle, otherwise cross-race lords and units usually won't work fully via just script spawning.

Thanks to Mandras for some code contributions.

Compatiblity
Compatible with everything, if the text box on the screenshot doesn't appear for you it likely means some other script mod bugged out and then breaks other script mods like this one. Try this mod by itself to make sure, if it doesn't work unsub and sub to force a redownload, and try using the Kaedrin Mod Manager.

Not MP compatible, but you can try using it and see if the game manages to resync.

List of DB keys and how to find them

Become a patron of the modding arts:
[paypal.me]
[www.patreon.com]
인기 토론 모두 보기(33)
123
4
2025년 3월 8일 오후 4시 04분
고정됨: List of pooled resource keys
prop joe
56
2025년 7월 10일 오전 3시 20분
고정됨: Examples of command usage
prop joe
18
8
2024년 7월 4일 오후 12시 51분
고정됨: Lists of DB keys and how to find them
prop joe
댓글 1,024
2544726290 2025년 5월 25일 오전 4시 20분 
添加兵种单位前置是什么啊,战锤3是au ,但是战锤2我不知道
2544726290 2025년 5월 25일 오전 3시 25분 
添加兵种单位代码是什么啊
☢☣☠S.T.A.L.K.E.R☠☣☢ 2025년 4월 28일 오후 5시 57분 
Hi, does anyone know if there is a command that gives you the option to play for a different faction than the one you started with?
srscorpion 2025년 4월 19일 오후 3시 36분 
Works on Mac. A skill point dump mod was the culprit.
Blackdeath@218 2025년 4월 3일 오전 1시 35분 
Code for public order?
wicked_aussie 2025년 3월 23일 오전 1시 55분 
Is there a code to restore my factions reliability?
SuDDi 2025년 3월 22일 오전 8시 29분 
My campaign progress is currently locked, presumably by some dilemma that failed to load, such that the save game and end turn buttons are greyed out (like they would be when you have advisor prompts to dismiss). Is there any way to use console commands to force the game out of this state?
La république 2025년 3월 9일 오전 6시 37분 
There is no command to add loyalty to generals as dark elves or am I just not seeing it?
bull_gator 2025년 3월 8일 오후 1시 13분 
where do I add the console command? it's not showing on my WH2
srscorpion 2025년 2월 22일 오전 11시 17분 
This does not work on the Mac version of WH2, but the WH3 version works. Kind of frustrating.