Closed andr9528 closed 3 years ago
when the player dies, any flags currently on the player should be copied to the player heir, if one exist
` on_death = { on_actions = { custom_on_death_on_action } } custom_on_death_on_action = { trigger = { is_ai = no } effect = { if = { limit = { exists = player_heir }
}
} } `
code is for the file /common/on_actions/erm_actions.txt
when the player dies, any flags currently on the player should be copied to the player heir, if one exist
` on_death = { on_actions = { custom_on_death_on_action } } custom_on_death_on_action = { trigger = { is_ai = no } effect = { if = { limit = { exists = player_heir }
Copy variables to player_heir scope
} } `
code is for the file /common/on_actions/erm_actions.txt