Total War: PHARAOH DYNASTIES

Total War: PHARAOH DYNASTIES

评价数不足
Override Death Dilemmas
   
奖励
收藏
已收藏
取消收藏
标签: mod, campaign
文件大小
发表于
更新日期
84.405 KB
2024 年 8 月 19 日 上午 4:29
2024 年 9 月 13 日 上午 2:37
2 项改动说明 ( 查看 )

订阅以下载
Override Death Dilemmas

描述
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 条留言
KillWonder 2024 年 11 月 25 日 上午 9:31 
What is the death dilemma?
Lenny_Froggins 2024 年 10 月 1 日 下午 3:20 
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.