Skip to content

targeted variables don't work with scopes #64

Open

Description

@BiscuitCookies

Probably related to cwtools/cwtools-hoi4-config#10
For example a variable in variable.cwt like ai_attitude_allied_weight@scope[country] doesn't work in something like
check_variable = { ai_attitude_allied_weight@ROOT > 1 }
instead it assumes that the variable is literally ai_attitude_allied_weight@scope[country]

It does work for types and enums

some_hard_coded_variable@enum[country_tags]
check_variable = { some_hard_coded_variable@TAG > 1 }

some_hard_coded_variable@<state>
check_variable = { some_hard_coded_variable@123 > 1 }

both work and give no error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions