Total War: WARHAMMER II

Total War: WARHAMMER II

Never Obsolete Generic Lords (S&F updated)
11 kommentarer
oceansoul 8. aug. 2023 kl. 11:21 
Is there a simple way to make this not apply to heroes? I know I could likely do it by entering every single hero's agent_subtype into the legendary lord section but that is going to involve a lot of faffing with other mods.
Trubble  [ophavsmand] 8. juni 2023 kl. 22:39 
@Valour: Nice idea, could be a good quality of life improvement. I won't have time to do more modding at the moment, hopefully someone else has! :-)
V 7. juni 2023 kl. 15:32 
TYVM

A mod suggestion since you seem to have some experience with modding the UI :

We often try to heal units but end up wasting our spell because the maximum healing is limited by the number of models remaining in a unit (and also the regen HP limit). Say 10/40 models from a unit have died—so 30/40 are left— then attempting to heal over 75% of the unit's health bar results in a spell wasted.

The player has to do math inside their heads of (remaining troops/total unit troops), then visualize where that is on the bar, then calculate whether to use a healing spell or not.

Aim is to have a small vertical bar similar to what the game already has to show us where the healing limit is due to the regen HP limit, except this one moves according to the remaining % of models in a unit.

I don't know how easy it is to implement, but given the game already has a similar UI that performs a similar function, it may be possible?

Picture to show what I mean https://i.imgur.com/UsJcQOy.png
Trubble  [ophavsmand] 7. juni 2023 kl. 14:07 
@Valour: It is for your faction leader, so if underlevelled it will impact AI levelling.
V 7. juni 2023 kl. 10:07 
local player_rank = cm:get_saved_value("player_leader_rank")

What is "player_leader_rank"? Is it the level of my starting lord?

If my starting lord is under leveled because I've been maining other lords and heroes, will it check against the highest of those levels?
Trubble  [ophavsmand] 7. juni 2023 kl. 10:04 
@Valour: Yes, correct. :-)
V 7. juni 2023 kl. 10:03 
So in that case it will also limit the level of AI legendary lords and heroes to *equal or below* your highest hero/lord (or is it your highest legendary hero/lord)?
Trubble  [ophavsmand] 7. juni 2023 kl. 9:59 
@Valour: Yes, if you remove the "if not legendary_lords_subtype" check it will also apply to legendary lords and heroes. You would in this case probably not also have the NNOBBs mod installed.
V 5. juni 2023 kl. 21:35 
If I remove Line 366 and 367, and don't touch the rest of the code, would it then apply to all generic AND legendary heroes controlled by the AI ?

I know there is the Never Obsolete AI Lords mod, but I like your additional condition of checking the player's hero level and making sure it is equal or below.
Trubble  [ophavsmand] 13. aug. 2021 kl. 12:23 
Sure, I updated the mod to have a rate you can configure if you are using the MCT mod. Set it to 70% if you want it to be "Lite".
FullAutoAttack 13. aug. 2021 kl. 11:14 
Will this work with the lite version of Never Obsolete AI Lords?