全面战争:战锤3

全面战争:战锤3

WH3 campaign editor (Web)
Bombardier  [开发者] 2023 年 4 月 16 日 上午 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
最后由 Bombardier 编辑于; 2023 年 4 月 21 日 上午 8:50
< >
正在显示第 1 - 1 条,共 1 条留言
BakedAndBad 2023 年 4 月 20 日 下午 8:36 
baller ty
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50