Stellaris - 3.11.1 [0a36] : Tower Rift scientist leader death event is incorrectly triggered by any leader death

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Question

Field Marshal
Jun 11, 2019
3.413
6.729
Description
3.11.1 [0a36] : Tower Rift scientist leader death event is incorrectly triggered by any leader death

Game Version
3.11.1 [0a36]

What version do you use?
GoG

What expansions do you have installed?


Do you have mods enabled?
No

Please explain your issue is in as much detail as possible.
astral_rift.695 is triggered by on_leader_death and is supposed to be triggered only when the tower rift scientist leader dies...except that it incorrectly checks for a country flag instead of leader flag.

Instead of checking for has_country_flag = recruited_tower_rift_leader it should instead check for FROM = { has_leader_flag = tower_rift_leader }, FROM being the leader that has died.

The effect is also written weirdly.

Code:
every_owned_leader = {
			limit = { has_leader_flag = tower_rift_leader }
			root = {
				remove_country_flag = recruited_tower_rift_leader
				country_event = {
					id = astral_rift.696
					scopes = { from = prev }
				}
			}
		}

every_owned_leader is unnecessary here and may not even work if the leader is dead. Just do it like this :

Code:
remove_country_flag = recruited_tower_rift_leader
				country_event = {
					id = astral_rift.696
					scopes = { from = prev }

The result is that currently, ANY leader death will trigger the tower rift scientist leader death event, instead of the actual leader's death.

Steps to reproduce the issue.


Upload Attachment
File(s) attached
 

Attachments

  • paradox.png
    paradox.png
    3,9 KB · Views: 0
Came across this as well, unfortunately in an Ironman game so there's no way to include a pre-death state.

It was a *very* nice funeral ... probably came as a bit of a surprise to his staff when he showed up at the next research meeting, though