Skip to content

Commit

Permalink
Update effects/triggers that push scope to unit leader, they support …
Browse files Browse the repository at this point in the history
…charaters as well
  • Loading branch information
Pelmen323 committed Dec 20, 2024
1 parent edb7dad commit f89f4fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Config/common/traits.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ country_leader_trait = {
command_cap = enum[command_cap]
}

## push_scope = unit_leader
## push_scope = { unit_leader character }
unit_leader_trait = {
type = enum[unit_leader_types]
type = {
Expand Down
12 changes: 6 additions & 6 deletions Config/effects.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -2391,7 +2391,7 @@ alias[effect:set_war_support] = variable_field[0..1]

### Executes children effects on random unit leader that fulfills the "limit" trigger.
## scope = country
## push_scope = unit_leader
## push_scope = { unit_leader character }
alias[effect:random_unit_leader] = {
## cardinality = 0..1
limit = {
Expand All @@ -2405,7 +2405,7 @@ alias[effect:random_unit_leader] = {

### Executes children effects on unit leaders that fulfills the "limit" trigger.
## scope = country
## push_scope = unit_leader
## push_scope = { unit_leader character }
alias[effect:every_unit_leader] = {
### Apply the effect to this number of randomly selected entities
## cardinality = 0..1
Expand All @@ -2424,7 +2424,7 @@ alias[effect:every_unit_leader] = {

### Executes children effects on random army leader that fulfills the "limit" trigger.
## scope = country
## push_scope = unit_leader
## push_scope = { unit_leader character }
alias[effect:random_army_leader] = {
## cardinality = 0..1
limit = {
Expand All @@ -2438,7 +2438,7 @@ alias[effect:random_army_leader] = {

### Executes children effects on army leaders that fulfills the "limit" trigger.
## scope = country
## push_scope = unit_leader
## push_scope = { unit_leader character }
alias[effect:every_army_leader] = {
### Apply the effect to this number of randomly selected entities
## cardinality = 0..1
Expand All @@ -2457,7 +2457,7 @@ alias[effect:every_army_leader] = {

### Executes children effects on random navy leader that fulfills the "limit" trigger.
## scope = country
## push_scope = unit_leader
## push_scope = { unit_leader character }
alias[effect:random_navy_leader] = {
## cardinality = 0..1
limit = {
Expand All @@ -2471,7 +2471,7 @@ alias[effect:random_navy_leader] = {

### Executes children effects on navy leaders that fulfills the "limit" trigger.
## scope = country
## push_scope = unit_leader
## push_scope = { unit_leader character }
alias[effect:every_navy_leader] = {
### Apply the effect to this number of randomly selected entities
## cardinality = 0..1
Expand Down
4 changes: 2 additions & 2 deletions Config/triggers.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ alias[trigger:has_war_support] = variable_field_32

### Check if all unit leaders meets the trigger.
## scope = country
## push_scope = unit_leader
## push_scope = { unit_leader character }
alias[trigger:all_unit_leader] = {
## cardinality = 0..1
tooltip = localisation
Expand All @@ -1574,7 +1574,7 @@ alias[trigger:all_unit_leader] = {

### Check if any unit leader meets the trigger.
## scope = country
## push_scope = unit_leader
## push_scope = { unit_leader character }
alias[trigger:any_unit_leader] = {
## cardinality = 0..1
tooltip = localisation
Expand Down

0 comments on commit f89f4fe

Please sign in to comment.