Skip to content

Commit

Permalink
Merge pull request #204 from Kaiserreich/master
Browse files Browse the repository at this point in the history
Update Hoi4 CWTools config - modifiers and minor fixes
  • Loading branch information
Pelmen323 authored Oct 2, 2024
2 parents 54ebd82 + 60fbe1c commit e37807c
Show file tree
Hide file tree
Showing 12 changed files with 1,584 additions and 216 deletions.
2 changes: 1 addition & 1 deletion Config/common/consolidated_ai.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ ai_template = {

regiments = {
## cardinality = 1..25
<unit> = int[0..24]
<unit> = int[0..25]
}
## cardinality = 0..1
support = {
Expand Down
4 changes: 4 additions & 0 deletions Config/common/scripted_guis.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ scripted_gui = {
## cardinality = 0..1
parent_window_token = enum[parent_window_token]

## cardinality = 0..1
### Define any scripted gui as the parent gui. This is more performant than using something like parent_window_token/parent_window_name for nested GUIs.
parent_scripted_gui = <scripted_gui>

## cardinality = 0..1
### Any GUI container name. Use only if parent_window_token doesn't have a corresponding token.
parent_window_name = <containerWindowType>
Expand Down
22 changes: 16 additions & 6 deletions Config/effects.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,19 @@ alias[effect:set_variable] = {
tooltip = localisation
}

### A random effect.
### A possible random effect that can occur.
## scope = any
alias[effect:random] = {
## cardinality = 1..2
chance = variable_field
## cardinality = 1..2
chance = int

alias_name[modifier_rule] = alias_match_left[modifier_rule]
alias_name[effect] = alias_match_left[effect]
}

### A random effect.
### A list of possible random effects to trigger in this effect.
## scope = any
alias[effect:random_list] = {
## cardinality = 0..1
Expand Down Expand Up @@ -655,7 +659,7 @@ alias[effect:add_units_to_division_template] = {
## cardinality = 0..1
regiments = {
## cardinality = 1..25
<unit> = int[0..24]
<unit> = int[0..25]
}
## cardinality = 0..1
support = {
Expand Down Expand Up @@ -754,7 +758,7 @@ alias[effect:remove_ideas] = {
enum[idea_name]
## cardinality = 0..inf
value[advisor_token]
## cardinality = 0..inf
## cardinality = 0..inf
value[variable]
}

Expand Down Expand Up @@ -2319,7 +2323,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
alias[effect:random_unit_leader] = {
## cardinality = 0..1
limit = {
Expand Down Expand Up @@ -3032,7 +3036,13 @@ alias[effect:remove_targeted_decision] = {
## scope = country
alias[effect:modify_timed_idea] = {
idea = enum[idea_name]
days = int
idea = value[variable]
## cardinality = 0..1
days = int_variable_field
## cardinality = 0..1
months = int_variable_field
## cardinality = 0..1
years = int_variable_field
}

### Activates specified decision for scope country.
Expand Down
Loading

0 comments on commit e37807c

Please sign in to comment.