Total War: WARHAMMER III

Total War: WARHAMMER III

WH3 campaign editor (Web)
Bombardier  [developer] 16 Apr, 2023 @ 9:55am
Add Chaos Dwarfs labour resource
The following script adds 1000 labour to all player owned provinces. Change the amount on the first line if needed. Copy paste this into the "console" window, there is a button at the top left.

local amount = 1000 -- change this to desired amount local human_factions = cm:get_human_factions_of_culture("wh3_dlc23_chd_chaos_dwarfs") for _, faction_key in ipairs(human_factions) do local faction = cm:get_faction(faction_key) local faction_provinces_list = faction:provinces() local faction_provinces_count = faction_provinces_list:num_items() for i = 0, faction_provinces_count - 1 do local province = faction_provinces_list:item_at(i) out(province) local province_pr_manager = province:pooled_resource_manager() local labour = province_pr_manager:resource("wh3_dlc23_chd_labour") if labour:is_null_interface() == false then cm:pooled_resource_factor_transaction(labour, "other", amount) -- Enable labour intake for the factions starting province. cm:disable_distribution_to_entity(faction:command_queue_index(), "wh3_dlc23_chd_labour_global_temp", province, false) end end end
Last edited by Bombardier; 21 Apr, 2023 @ 8:50am
< >
Showing 1-1 of 1 comments
BakedAndBad 20 Apr, 2023 @ 8:36pm 
baller ty
< >
Showing 1-1 of 1 comments
Per page: 1530 50