Skip to content

Commit

Permalink
Adjust unit leader effects/triggers to work in char scope
Browse files Browse the repository at this point in the history
Character scope == init_leader scope
  • Loading branch information
Pelmen323 committed Dec 20, 2024
1 parent f9afeb9 commit 04974db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Config/effects.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -2738,7 +2738,7 @@ alias[effect:add_offsite_building] = {

#wiki doesn't know
### Add trait to unit leader.
## scope = unit_leader
## scope = { character unit_leader }
alias[effect:replace_unit_leader_trait] = replace_me

### Adds a max assignable trait slot for a general.
Expand Down
4 changes: 2 additions & 2 deletions Config/effects_new.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -1062,11 +1062,11 @@ alias[effect:set_country_leader_description] = {
}

###Changes the name of unit leader. No tooltip is generated.
## scope = { unit_leader }
## scope = { unit_leader character }
alias[effect:set_leader_name] = localisation_inline

###Changes the portrait of unit leader. No tooltip is generated.
## scope = { unit_leader }
## scope = { unit_leader character }
alias[effect:set_leader_portrait] = <spriteType>

###Changes the description of unit leader. No tooltip is generated.
Expand Down
10 changes: 5 additions & 5 deletions Config/triggers.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -1824,23 +1824,23 @@ alias[trigger:has_border_war_with] = scope[country]
alias[trigger:has_border_war_with] = enum[country_tags]

### Compares the average stats for a unit leader.
## scope = { unit_leader combat }
## scope = { unit_leader combat character }
alias[trigger:average_stats] = int

### Compares attack skill level of a unit leader.
## scope = { unit_leader combat }
## scope = { unit_leader combat character }
alias[trigger:attack_skill_level] = int

### Compares defense skill level of a unit leader.
## scope = { unit_leader combat }
## scope = { unit_leader combat character }
alias[trigger:defense_skill_level] = int

### Compares logistics skill level of a unit leader.
## scope = { unit_leader combat }
## scope = { unit_leader combat character }
alias[trigger:logistics_skill_level] = int

### Compares planning skill level of a unit leader.
## scope = { unit_leader combat }
## scope = { unit_leader combat character }
alias[trigger:planning_skill_level] = int

### Is_leading_army_group = yes/no - Checks if the current unit leader is leading an army group (not single army).
Expand Down

0 comments on commit 04974db

Please sign in to comment.