• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

mys_721tx

Recruit
90 Badges
Dec 23, 2015
3
0
  • Stellaris: Synthetic Dawn
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Rights of Man
  • Magicka
  • Cities: Skylines - After Dark
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Sunset Invasion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Hearts of Iron III
  • Crusader Kings II: Sword of Islam
  • Cities in Motion
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Teleglitch: Die More Edition
Hello all,

I am working on a Python program to read the `script_docs` log files to a mediawiki table to update the trigger and effect documentations on the wikis. However, I have discovered some inconsistency in those documentation. In CK3 for example:

Sometime is there a short notes before the example:
Code:
every_in_de_facto_hierarchy - Iterate through the title itself, all de facto vassals, and below. The continue trigger specifies whether to recursively iterate through the vassal's vassal
This is unrelated to the limit; if the limit is met it is added to the list, but its vassals will get checked even if the limit isn't met as long as the 'continue' trigger is
..._de_jure_vassal_and_below = { continue = { conditions } }
every_in_de_facto_hierarchy = { limit = { <triggers> } <effects> }
Supported Scopes: landed title
Supported Targets: landed title

Sometimes after:
Code:
add_to_global_variable_list - Adds the event target to a variable list
add_to_variable_list = { name = X target = Y }
Where X is the name of the variable
Where Y is an event target
Supported Scopes: none

sometimes it is not there at all.
Code:
ordered_primary_war_enemy - Iterate through all primary war enemies
ordered_primary_war_enemy = {
limit = { <triggers> }
order_by = script_value
position = int
min = int
max = script_value
check_range_bounds = no # If you don't want an error logged if the list is smaller than the min/max
<effects> }
Supported Scopes: character
Supported Targets: character

Sometimes the code example is missing:
Code:
replace_court_position - Replaces the target character holding target court position within scoped character's court with target character

recipient = character scope - target character to receive the title
holder = character scope - target character to revoke the target court position of in favour of recipient
court_position = court position type - court position type to assign the receiver
Supported Scopes: character

Those inconsistencies make parser writing very difficult.

Would it be possible in the future to structure the documentation better?