Total War: WARHAMMER III

Total War: WARHAMMER III

31 evaluări
Heal Modded Garrisons On Turn Two
   
Premiază
Adaugă la preferate
Preferat
Elimină din preferate
campaign
Etichete: mod
Dimensiunea fișierului
Postat
Actualizat
163.272 KB
19 apr. 2023 la 0:19
26 mart. la 14:15
17 jurnale de actualizare ( vizionare )

Abonează-te pentru a descărca
Heal Modded Garrisons On Turn Two

Descriere
Garrison mods are amazing, but they cause the garrisons to start out damaged when they populate on that faction's first turn. This script will fix that.

Player's starting garrison will heal on turn one. Everyone else heals on turn 2. This mod should finally work properly now that I understand that I needed to wait until turn 2! Let me know if you see any issues.

If you host a garrison mod and want to include this, just give me a shout out or something.

Note: I bugfixed a listener that someone else wrote as part of a giant combined pack file I was working with back when we had the limit on mods you could use at a time. I do not know who wrote the original copy. If you happen to know who did, feel free to give me a shout so I can give them proper credit.
17 comentarii
Lycia Pintella  [autor] 12 iul. la 18:16 
My PC died for a bit after our discussion, but I have it back up and I will try to take a look in the next few days.
Herald 15 mai la 11:43 
@Lycia Pintella No problem, I first noticed the game behaviour because my start position mods use the heal_garrison command. Then I tested your mod, and everything seems fine for everyone on turn 1.

Let me know what your test shows.
Lycia Pintella  [autor] 15 mai la 11:28 
Weird. I'll take a look at it soon and adjust if I see the same result. Thanks for letting me know.
Herald 15 mai la 5:51 
Hi, I just tested your mod with a garrison mod, and all garrisons are new and healed up on turn 1, the healing on turn 2 isn't necessary anymore it seems.
Schweik 2 dec. 2023 la 2:25 
I thought that turn one healing of garrisons is a little bit more helpful for non-legendary AI factions, because some LLs start near hostile province capitals, immediately capturing it on turn one.

Anyway, I'm sorry to bother you with my comment. I have only noticed now that the most recent post was on May 20th.
Lycia Pintella  [autor] 28 nov. 2023 la 16:46 
So the major difference seems to be that you are making the cqi a variable then using the variable instead of putting it directly from the region list on the fly. Anything else I am missing? I used to code some back in the day but I am rusty at best, these days. Is that really enough of a difference to allow this to fire on turn one and finish?
Schweik 28 nov. 2023 la 8:56 
Hello! Whtn I created a mod multiplying number of entities in garrisons, I had an exact same issue, as garrisons started at half or quarter strength, so I used the following method, which seemed to work for me:

function larger_garrisons_script()
if cm:is_new_game() then
local regs_list = cm:model():world():region_manager():region_list();
for i = 0, regs_list:num_items() - 1 do
local reg_cqi = regs_list:item_at(i):cqi();
cm:heal_garrison(reg_cqi);
end;
end;
return nil;
end;
Lycia Pintella  [autor] 20 mai 2023 la 10:10 
Mod should be fixed now. =)
Lycia Pintella  [autor] 26 apr. 2023 la 20:23 
I'm having the opposite problem with Great Settlement Battle Overhaul - I'm getting heals after turn one, though that could be because of a new mod I am writing and not this one. =P
Bostson 25 apr. 2023 la 5:45 
what do you mean? are all garrisons being healed at every player turn start?