Total War: PHARAOH DYNASTIES

Total War: PHARAOH DYNASTIES

Not enough ratings
Override Death Dilemmas
   
Award
Favorite
Favorited
Unfavorite
Tags: mod, campaign
File Size
Posted
Updated
84.405 KB
19 Aug, 2024 @ 4:29am
13 Sep, 2024 @ 2:37am
2 Change Notes ( view )

Subscribe to download
Override Death Dilemmas

Description
This is a utility mod for Modders who want to kill characters without triggering the death dilemmas.
THIS MOD DOES NOTHING ON ITS OWN: Only get it if another mod requires it!

I made this mod because I am starting to see a few instances where modders are needing to edit a base game script to avoid triggering death dilemmas, which will ultimately lead to conflicts!

Example use cases:
  • Spawning a temporary army/general with the intent to kill it/them.
  • Wanting dilemmas to not fire for speciifc instances e.g. characters level too low/ character lost a battle etc.
  • But also being able to enable the dilemmas for a character afer other specific insatnces e.g. character hits a certain level, / character wins a battle etc.

How the Mod works:

The mod works by creating a dummy trait which a modder can give to a character.
The vanilla script phar_death_dilemmas.lua has been edited to look for this trait, and if so, not fire a dilemma.


Vanilla script edit location:

This mod has to update the phar_death_dilemmas.lua to stop the death dilemmas. See lines 514 to 519


How do I make my mod work:

I would advice that you use scripts to add and remove traits.

local general_str = cm:char_lookup_str(general_cqi)

cm:force_add_trait(general_str,"nobody_trait")
cm:force_remove_trait(general_str,"nobody_trait")

Then make this mod a required mod for yours.


Why can't I just add these changes to my pack file?

I guess you can do that, and I'm fine with that, assuming we all use the same methodology and trait, we won't break each others mods. But if anyone starts to deviate, then mod conflicts will occur. (I'll aim to maintain this mod and update it to account for any other nuances that crop up to help make it a single solution to override death dilemmas.)

I'm a modder and there is a much easier way to get the game to ignore character deaths without editing vanilla scripts

Let me know and lets retire this mod and educate modders!
2 Comments
KillWonder 25 Nov, 2024 @ 9:31am 
What is the death dilemma?
Lenny_Froggins 1 Oct, 2024 @ 3:20pm 
It seems like this isnt working when the battle is Autoresolved. Using with Forts Reinforce All Battles. If I Autoresolve I get the death dilemma afterwards.