Wolfrite-CK3 / Easier-Realm-Management

MIT License
1 stars 6 forks source link

Add copying of flags on_death #8

Closed andr9528 closed 3 years ago

andr9528 commented 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 }

Copy variables to player_heir scope

}

} } `

code is for the file /common/on_actions/erm_actions.txt