Crusader Kings III

Crusader Kings III

The Unending Night
undercoveryankee 2021 年 3 月 16 日 下午 7:13
Disease immunity
If you want to make vampires immune to disease, the checks for whether a character can contract a disease are scripted in common/scripted_triggers/20_health_triggers.txt. The existing trigger checks for the "immune_to_disease" character flag, so the easy approach will be to set that flag on all vampire characters instead of trying to override the trigger with a customized version.

The code would look like
add_character_flag = { flag = immune_to_disease }
in any code path that adds the Vampyr trait to a character. You'll probably also need to run an effect at game start (i.e. in the on_game_start_after_lobby action) to look for characters that had the Vampyr trait added in the ruler designer.
< >
正在显示第 1 - 1 条,共 1 条留言
Ylow  [开发者] 2021 年 3 月 21 日 上午 10:10 
Thanks a lot for the tip, undercoveryankee
This is done in the latest update.
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50