Total War: WARHAMMER II

Total War: WARHAMMER II

Protected Faction Capitals (no more having 3-5 factions control the whole map!)
Falkner Dec 2, 2024 @ 10:23am
This mod is fantastic!
Really great for tourism, you can go on a vacation across the sea 100 turns into a camapign and all the minor factions will still be there (for your generals to stomp on)

My only issue is one of my own creation - i use region trading. When i try to do something like give Karak Norn their missing regions, they go straight back to Crooked Moon and the Skaven :(
can you show me how to code this so that the regions aren't returned? I'll be able to do the rest for myself.

Thankyou so much for the mod.

local GreasusHall34 = cm:model():world():region_manager():region_by_key("wh_main_southern_grey_mountains_karak_azgaraz");
local pos_x34, pos_y34 = cm:find_valid_spawn_location_for_character_from_settlement("wh_main_grn_crooked_moon", "wh_main_southern_grey_mountains_karak_azgaraz", false, true, 1);
if GreasusHall34:owning_faction():is_human() == true or ((GreasusHall34:owning_faction():culture() == "wh_main_grn_greenskins") and not (GreasusHall34:owning_faction():name() == "wh_main_grn_crooked_moon")) then
elseif GreasusHall34:has_effect_bundle("dunked_on_by_player") or (GreasusHall34:owning_faction():name() == "wh_main_grn_crooked_moon" and GreasusHall34:owning_faction():is_human() == false) then
cm:cai_disable_targeting_against_settlement("settlement:wh_main_southern_grey_mountains_karak_azgaraz");
else
cm:create_force(
"wh_main_grn_crooked_moon",
"wh_main_grn_inf_orc_boyz",
"wh_main_southern_grey_mountains_karak_azgaraz",
pos_x34,
pos_y34,
true,
function(cqi)
cm:callback(function() cm:transfer_region_to_faction("wh_main_southern_grey_mountains_karak_azgaraz", "wh_main_grn_crooked_moon") end, 0.5);
end);
___________________________________[[would this change work?]]______________

local GreasusHall34 = cm:model():world():region_manager():region_by_key("wh_main_southern_grey_mountains_karak_azgaraz");
local pos_x34, pos_y34 = cm:find_valid_spawn_location_for_character_from_settlement("wh_main_grn_crooked_moon", "wh_main_southern_grey_mountains_karak_azgaraz", false, true, 1);
if GreasusHall34:owning_faction():is_human() == true or ((GreasusHall34:owning_faction():culture() == "wh_main_grn_greenskins") and not (GreasusHall34:owning_faction():name() == "wh_main_grn_crooked_moon")) then
elseif GreasusHall34:has_effect_bundle("dunked_on_by_player") or (GreasusHall34:owning_faction():name() == "wh_main_grn_crooked_moon" and GreasusHall34:owning_faction():is_human() == false) then
cm:cai_disable_targeting_against_settlement("settlement:wh_main_southern_grey_mountains_karak_azgaraz");
else
end;
Last edited by Falkner; Dec 2, 2024 @ 10:47am
< >
Showing 1-1 of 1 comments
Falkner Dec 2, 2024 @ 10:45am 
edit - IT WORKS!
So sorry for bothering you, I was just scared of breaking it.
Tried and tested, it's perfect for me now.
< >
Showing 1-1 of 1 comments
Per page: 1530 50