Total War: WARHAMMER III

Total War: WARHAMMER III

WH3 campaign editor (Web)
Bombardier  [udvikler] 16. apr. 2023 kl. 9:55
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
Sidst redigeret af Bombardier; 21. apr. 2023 kl. 8:50
< >
Viser 1-1 af 1 kommentarer
BakedAndBad 20. apr. 2023 kl. 20:36 
baller ty
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50