cwtools / cwtools-vic3-config

MIT License
5 stars 6 forks source link

Formatting for script docs changed #8

Open indexoquarto opened 1 year ago

indexoquarto commented 1 year ago

In 1.4, the formatting for certain script docs files changed, meaning they will no longer be recognized properly by CWT. They used to look like

--------------------

any_combat_units - Iterate through all combat units of input scope
any_combat_units = { <count=num/all> / <percent=fixed_point> <triggers> }
Supported Scopes: building, character
Supported Targets: combat_unit

--------------------

contains_capital_of - Checks if scoped state region contains the capital of target tag
contains_capital_of = country scope/tag
Supported Scopes: state_region

But now they use markdown:

## any_combat_units
Iterate through all combat units of input scope  
Supported scopes: building, military formation, front, battle  
any_combat_units = { <count=num/all> / <percent=fixed_point> <triggers> }  
**Supported Scopes**: battle, building, front, hq, military_formation  
**Supported Targets**: new_combat_unit  

## any_country
Iterate through all countries globally  
any_country = { <count=num/all> / <percent=fixed_point> <triggers> }  
**Supported Scopes**: none  
**Supported Targets**: country  
indexoquarto commented 1 year ago

As a workaround, I made a python script that converts the new format to the old converter.txt