DragonKnightOfBreeze / Paradox-Language-Support

IDEA Plugin: Paradox Language Support.
https://windea.icu/Paradox-Language-Support
MIT License
36 stars 4 forks source link

Allow specifying a trigger/effect blocks scope somehow through cwt configs if it cannot be inferred #69

Closed adriangaro closed 4 months ago

adriangaro commented 4 months ago

Usually i define trigger blocks as below

## context_key = inline_script@jobs/resources/tec_robotic_assembly_upkeep
## context_configs_type = multiple
trigger = {
    alias_name[trigger] = alias_match_left[trigger]
}

Would it be possible to use push_scope or replace_scopes in the case of context_configs_type = multiple to provide scope type? Atm the definition works, but scope is probably any, as no type errors happen in case you use a different scope than the expected one.

DragonKnightOfBreeze commented 4 months ago

For parameters?

adriangaro commented 4 months ago

Yes this is for parameters, although would be nice to be able to somehow declare it for scripted triggers and effects too, using definitions in cwt for scripted triggers does not seem to work to be able to use push_scope replace_scopes

DragonKnightOfBreeze commented 4 months ago

Will be implemented in 1.3.5