this command was added in one of the beta patches
remove_improvement for = x value = y
The event_effects file says leaving the value blank will remove a random improvement, but the command doesn't work in character events when a value is specified. This is currently used in event 7224 in bankruptcy_events.txt, the code on option B looks like this:
but in the game the effect popup shows this:
10% chance x gains the trait 'excommunicated'
50% chance x gains the trait 'excommunicated'
courtier_defect value = random_neighbor/random_enemy etc.
These commands are working, but the text displays the wrong character's name. If courtier X is being relocated to a province owned by King Y, the event text reasds "Y moves to..."
It doesn't seem to work. No error message when loading, but trigger effects with 'this' as the target don't appear in the event effects popup.- Added a new target for character-events, called "this" to allow to trigger further events for that character.
remove_improvement for = x value = y
The event_effects file says leaving the value blank will remove a random improvement, but the command doesn't work in character events when a value is specified. This is currently used in event 7224 in bankruptcy_events.txt, the code on option B looks like this:
Code:
effect = { type = random
chance = 10
effect = {
type = add_trait
value = excommunicated
}
}
effect = { type = random
chance = 50
effect = {
type = remove_improvement
value = monastery
}
}
but in the game the effect popup shows this:
10% chance x gains the trait 'excommunicated'
50% chance x gains the trait 'excommunicated'
courtier_defect value = random_neighbor/random_enemy etc.
These commands are working, but the text displays the wrong character's name. If courtier X is being relocated to a province owned by King Y, the event text reasds "Y moves to..."
Upvote
0