Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Difference between revisions of "Conditions (M2-Scripting)"

From TWC Wiki
Jump to navigationJump to search
(Conditions Table)
(m2 logo)
 
(82 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
{{M2TW Modding Logo}}
 
__TOC__
 
__TOC__
  
 
'''Conditions''' are the parameters in scripting used to test for the existence of certain situations, in order to execute the script.  They are used to narrow the firing of a script down to a required set of triggers which must come back true in order for the script to be fired.  A knowledge of the conditions available allows a scripter to tailor their scripts to very precise situations.  Some conditions requires certain triggers in order to be executed, which the event they are using has to export, or the condition can not apply to it.
 
'''Conditions''' are the parameters in scripting used to test for the existence of certain situations, in order to execute the script.  They are used to narrow the firing of a script down to a required set of triggers which must come back true in order for the script to be fired.  A knowledge of the conditions available allows a scripter to tailor their scripts to very precise situations.  Some conditions requires certain triggers in order to be executed, which the event they are using has to export, or the condition can not apply to it.
  
'''These trigger requirements are:''' character_record, nc_character_record, player_unit, enemy_unit, infer_defending_unit, infer_attacking_unit, resource_description, character_action_advice, target_character_record, ransom_type, captured_faction_info, faction, target_faction, unit, mission_success_level, mission_details, event_counter, sm_position, region_id, target_region_id, crusade, target_religion, settlement, target_settlement, prior_build, best_finance_option, advised_build, fort, army, event.
+
'''These trigger requirements are:''' character_record, nc_character_record, player_unit, enemy_unit, infer_defending_unit, infer_attacking_unit, resource_description, character_action_advice, target_character_record, ransom_type, captured_faction_info, faction, target_faction, unit, mission_success_level, mission_details, event_counter, sm_position, region_id, target_region_id, crusade, target_religion, settlement, target_settlement, prior_build, best_finance_option, advised_build, fort, army, event, religion, event_type.
 +
 
 +
''Conditions which list more than one trigger requirement need '''both or all''' of them, not just one of those listed.''
  
 
== Conditions Table ==
 
== Conditions Table ==
 
+
Sortable Table, click header to sort column.
''This table is a Work in Progress, if you would like to help out, please [http://www.twcenter.net/forums/private.php?do=newpm&u=14571 PM Augustus Lucifer].  Help is encouraged, but in order to make sure a condition isn't added twice or skipped, help needs to be coordinated.  Thank you.''
 
 
 
''Current Progress: 70/408''
 
 
 
 
{|class="wikitable sortable" border="1" cellpadding="4" cellspacing="0"
 
{|class="wikitable sortable" border="1" cellpadding="4" cellspacing="0"
 
|+ style="background:#bfc0f7;" |'''Medieval II DocuDemons - Conditions Table'''
 
|+ style="background:#bfc0f7;" |'''Medieval II DocuDemons - Conditions Table'''
Line 67: Line 66:
 
|[[WasAttacker (M2-Scripting)|WasAttacker]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 
|[[WasAttacker (M2-Scripting)|WasAttacker]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 
|-
 
|-
|[[I_BattleAiAttacking (M2-Scripting)|I_BattleAiAttacking]]||None||Logic Token||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
+
|[[I_BattleAiAttacking (M2-Scripting)|I_BattleAiAttacking]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 
|-
 
|-
|[[I_BattleAiAssaultingCrossing (M2-Scripting)|I_BattleAiAssaultingCrossing]]||None||Logic Token||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
+
|[[I_BattleAiAssaultingCrossing (M2-Scripting)|I_BattleAiAssaultingCrossing]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 
|-
 
|-
|[[I_BattleAiAttackingSettlement (M2-Scripting)|I_BattleAiAttackingSettlement]]||None||Logic Token||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
+
|[[I_BattleAiAttackingSettlement (M2-Scripting)|I_BattleAiAttackingSettlement]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 
|-
 
|-
|[[I_BattleAiDefendingSettlement (M2-Scripting)|I_BattleAiDefendingSettlement]]||None||Logic Token||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
+
|[[I_BattleAiDefendingSettlement (M2-Scripting)|I_BattleAiDefendingSettlement]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 
|-
 
|-
|[[I_BattleAiDefendingHill (M2-Scripting)|I_BattleAiDefendingHill]]||None||Logic Token||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
+
|[[I_BattleAiDefendingHill (M2-Scripting)|I_BattleAiDefendingHill]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 
|-
 
|-
|[[I_BattleAiDefendingCrossing (M2-Scripting)|I_BattleAiDefendingCrossing]]||None||Logic Token||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
+
|[[I_BattleAiDefendingCrossing (M2-Scripting)|I_BattleAiDefendingCrossing]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 
|-
 
|-
|[[I_BattleAiScouting (M2-Scripting)|I_BattleAiScouting]]||None||Logic Token||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
+
|[[I_BattleAiScouting (M2-Scripting)|I_BattleAiScouting]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 
|-
 
|-
 
|[[I_BattleIsRiverBattle (M2-Scripting)|I_BattleIsRiverBattle]]||None||Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 
|[[I_BattleIsRiverBattle (M2-Scripting)|I_BattleIsRiverBattle]]||None||Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
Line 174: Line 173:
 
|-
 
|-
 
|[[BattleIsMeleeAttack (M2-Scripting)|BattleIsMeleeAttack]]||[[infer_attacking_unit (M2-Scripting)|infer_attacking_unit]]||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 
|[[BattleIsMeleeAttack (M2-Scripting)|BattleIsMeleeAttack]]||[[infer_attacking_unit (M2-Scripting)|infer_attacking_unit]]||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyPercentageOfUnitClass (M2-Scripting)|I_BattlePlayerArmyPercentageOfUnitClass]]||None||Unit Class, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyPercentageOfUnitClass (M2-Scripting)|I_BattleEnemyArmyPercentageOfUnitClass]]||None||Unit Class, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyPercentageOfUnitCategory (M2-Scripting)|I_BattlePlayerArmyPercentageOfUnitCategory]]||None||Unit Category, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyPercentageOfUnitCategory (M2-Scripting)|I_BattleEnemyArmyPercentageOfUnitCategory]]||None||Unit Category, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyPercentageOfMountClass (M2-Scripting)|I_BattlePlayerArmyPercentageOfMountClass]]||None||Mount Class, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyPercentageOfMountClass (M2-Scripting)|I_BattleEnemyArmyPercentageOfMountClass]]||None||Mount Class, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyPercentageOfClassAndCategory (M2-Scripting)|I_BattlePlayerArmyPercentageOfClassAndCategory]]||None||Unit Class, Unit Category, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyPercentageOfClassAndCategory (M2-Scripting)|I_BattleEnemyArmyPercentageOfClassAndCategory]]||None||Unit Class, Unit Category, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyPercentageOfSpecialAbility (M2-Scripting)|I_BattlePlayerArmyPercentageOfSpecialAbility]]||None||Special Ability, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyPercentageOfSpecialAbility (M2-Scripting)|I_BattleEnemyArmyPercentageOfSpecialAbility]]||None||Special Ability, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyPercentageCanHide (M2-Scripting)|I_BattlePlayerArmyPercentageCanHide]]||None||Hide Type, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyPercentageCanHide (M2-Scripting)|I_BattleEnemyArmyPercentageCanHide]]||None||Hide Type, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyPercentageCanSwim (M2-Scripting)|I_BattlePlayerArmyPercentageCanSwim]]||None||Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyPercentageCanSwim (M2-Scripting)|I_BattleEnemyArmyPercentageCanSwim]]||None||Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyIsAttacker (M2-Scripting)|I_BattlePlayerArmyIsAttacker]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerAllianceOddsInFavour (M2-Scripting)|I_BattlePlayerAllianceOddsInFavour]]||None||Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerAllianceOddsAgainst (M2-Scripting)|I_BattlePlayerAllianceOddsAgainst]]||None||Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[TotalSiegeWeapons (M2-Scripting)|TotalSiegeWeapons]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Number||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_BattleStarted (M2-Scripting)|I_BattleStarted]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitMoveFastSet (M2-Scripting)|I_IsUnitMoveFastSet]]||None||Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitMoving (M2-Scripting)|I_IsUnitMoving]]||None||Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitIdle (M2-Scripting)|I_IsUnitIdle]]||None||Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitStatus (M2-Scripting)|I_UnitStatus]]||None||Unit Label, Action Status||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitRouting (M2-Scripting)|I_IsUnitRouting]]||None||Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitUnderFire (M2-Scripting)|I_IsUnitUnderFire]]||None||Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitEngaged (M2-Scripting)|I_IsUnitEngaged]]||None||Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitEngagedWithUnit (M2-Scripting)|I_IsUnitEngagedWithUnit]]||None||Unit Label, Other Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitFormation (M2-Scripting)|I_UnitFormation]]||None||Unit Label, Logic Token, Formation Type||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_PercentageUnitKilled (M2-Scripting)|I_PercentageUnitKilled]]||None||Unit Label, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitPercentageAmmoLeft (M2-Scripting)|I_UnitPercentageAmmoLeft]]||None||Unit Label, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitDistanceFromPosition (M2-Scripting)|I_UnitDistanceFromPosition]]||None||Unit Label, Position X, Position Y, Logic Token, Distance||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitOrderedToPosition (M2-Scripting)|I_UnitOrderedToPosition]]||None||Unit Label, Position X, Position Y, Logic Token, Distance||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitDistanceFromLine (M2-Scripting)|I_UnitDistanceFromLine]]||None||Unit Label, Location 1, Location 2, Logic Token, Distance||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitDistanceFromUnit (M2-Scripting)|I_UnitDistanceFromUnit]]||None||Unit Label 1, Unit Label 2, Logic Token, Distance||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitInRangeOfUnit (M2-Scripting)|I_UnitInRangeOfUnit]]||None||Attacker Unit Label, Target Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitDestroyed (M2-Scripting)|I_UnitDestroyed]]||None||Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitEnemyUnitInRadius (M2-Scripting)|I_UnitEnemyUnitInRadius]]||None||Unit Label, Radius||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitGroupMoving (M2-Scripting)|I_IsUnitGroupMoving]]||None||Group Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitGroupEngaged (M2-Scripting)|I_IsUnitGroupEngaged]]||None||Group Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitGroupIdle (M2-Scripting)|I_IsUnitGroupIdle]]||None||Group Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsUnitGroupDestroyed (M2-Scripting)|I_IsUnitGroupDestroyed]]||None||Group Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_PercentageUnitGroupKilled (M2-Scripting)|I_PercentageUnitGroupKilled]]||None||Group Label, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitGroupFormation (M2-Scripting)|I_UnitGroupFormation]]||None||Group Label, Logic Token, Formation Name||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitGroupDistanceFromPosition (M2-Scripting)|I_UnitGroupDistanceFromPosition]]||None||Group Label, Position, Logic Token, Distance||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitGroupDistanceFromGroup (M2-Scripting)|I_UnitGroupDistanceFromGroup]]||None||Group Label, Target Group Label, Logic Token, Distance||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitGroupInRangeOfUnit (M2-Scripting)|I_UnitGroupInRangeOfUnit]]||None||Group Label, Target Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitInRangeOfUnitGroup (M2-Scripting)|I_UnitInRangeOfUnitGroup]]||None||Group Label, Target Group Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitGroupInRangeOfUnitGroup (M2-Scripting)|I_UnitGroupInRangeOfUnitGroup]]||None||Group Label, Target Group Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_PlayerInRangeOfUnitGroup (M2-Scripting)|I_PlayerInRangeOfUnitGroup]]||None||Group Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_PlayerInRangeOfUnit (M2-Scripting)|I_PlayerInRangeOfUnit]]||None||Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_UnitTypeSelected (M2-Scripting)|I_UnitTypeSelected]]||None||Unit Type||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[UnitType (M2-Scripting)|UnitType]]||[[resource_description (M2-Scripting)|resource_description]]||Unit Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_UnitSelected (M2-Scripting)|I_UnitSelected]]||None||Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_MultipleUnitsSelected (M2-Scripting)|I_MultipleUnitsSelected]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_SpecificUnitsSelected (M2-Scripting)|I_SpecificUnitsSelected]]||None||Unit Label 1, Unit Label 2, Unit Label 3, ...||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsCameraZoomingToUnit (M2-Scripting)|I_IsCameraZoomingToUnit]]||None||Unit Label||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyPercentageOfMatchingUnits (M2-Scripting)|I_BattleEnemyArmyPercentageOfMatchingUnits]]||None||Unit Match Type, Logic Token, Test Value||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyNumberOfMatchingUnits (M2-Scripting)|I_BattleEnemyArmyNumberOfMatchingUnits]]||None||Unit Match Type, Logic Token, Test Value||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyPercentageOfMatchingUnits (M2-Scripting)|I_BattlePlayerArmyPercentageOfMatchingUnits]]||None||Unit Match Type, Logic Token, Test Value||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyNumberOfMatchingUnits (M2-Scripting)|I_BattlePlayerArmyNumberOfMatchingUnits]]||None||Unit Match Type, Logic Token, Test Value||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyNumberOfUnitClass (M2-Scripting)|I_BattlePlayerArmyNumberOfUnitClass]]||None||Unit Class, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyNumberOfUnitClass (M2-Scripting)|I_BattleEnemyArmyNumberOfUnitClass]]||None||Unit Class, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyNumberOfUnitCategory (M2-Scripting)|I_BattlePlayerArmyNumberOfUnitCategory]]||None||Unit Category, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyNumberOfUnitCategory (M2-Scripting)|I_BattleEnemyArmyNumberOfUnitCategory]]||None||Unit Category, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyNumberOfMountClass (M2-Scripting)|I_BattlePlayerArmyNumberOfMountClass]]||None||Mount Class, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyNumberOfMountClass (M2-Scripting)|I_BattleEnemyArmyNumberOfMountClass]]||None||Mount Class, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyNumberOfClassAndCategory (M2-Scripting)|I_BattlePlayerArmyNumberOfClassAndCategory]]||None||Unit Class, Unit Category, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyNumberOfClassAndCategory (M2-Scripting)|I_BattleEnemyArmyNumberOfClassAndCategory]]||None||Unit Class, Unit Category, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyNumberOfSpecialAbility (M2-Scripting)|I_BattlePlayerArmyNumberOfSpecialAbility]]||None||Special Ability, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyNumberOfSpecialAbility (M2-Scripting)|I_BattleEnemyArmyNumberOfSpecialAbility]]||None||Special Ability, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyNumberCanHide (M2-Scripting)|I_BattlePlayerArmyNumberCanHide]]||None||Hide Type, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyNumberCanHide (M2-Scripting)|I_BattleEnemyArmyNumberCanHide]]||None||Hide Type, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyNumberCanSwim (M2-Scripting)|I_BattlePlayerArmyNumberCanSwim]]||None||Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyNumberCanSwim (M2-Scripting)|I_BattleEnemyArmyNumberCanSwim]]||None||Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyNumberOfUnits (M2-Scripting)|I_BattlePlayerArmyNumberOfUnits]]||None||Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyNumberOfUnits (M2-Scripting)|I_BattleEnemyArmyNumberOfUnits]]||None||Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyNumberOfAttribute (M2-Scripting)|I_BattlePlayerArmyNumberOfAttribute]]||None||Attribute, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyNumberOfAttribute (M2-Scripting)|I_BattleEnemyArmyNumberOfAttribute]]||None||Attribute, Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattlePlayerArmyPercentageOfAttribute (M2-Scripting)|I_BattlePlayerArmyPercentageOfAttribute]]||None||Attribute, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleEnemyArmyPercentageOfAttribute (M2-Scripting)|I_BattleEnemyArmyPercentageOfAttribute]]||None||Attribute, Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_IsBattleSettlementCastle (M2-Scripting)|I_IsBattleSettlementCastle]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[I_BattleSpeed (M2-Scripting)|I_BattleSpeed]]||None||Logic Token, Value(float)||<span style="display:none">10</span>Yes||<span style="display:none">15</span>No
 +
|-
 +
|[[Trait (M2-Scripting)|Trait]]||[[character_record (M2-Scripting)|character_record]]||Trait Description, Logic Token, Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FatherTrait (M2-Scripting)|FatherTrait]]||[[character_record (M2-Scripting)|character_record]]||Trait Description, Logic Token, Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FatherAttribute (M2-Scripting)|FatherAttribute]]||[[character_record (M2-Scripting)|character_record]]||Attribute Description, Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionLeaderTrait (M2-Scripting)|FactionLeaderTrait]]||[[character_record (M2-Scripting)|character_record]]||Trait Description, Logic Token, Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionLeaderAttribute (M2-Scripting)|FactionLeaderAttribute]]||[[character_record (M2-Scripting)|character_record]]||Attribute Description, Logic Token, Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[ReligionShift (M2-Scripting)|ReligionShift]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[PopulationConverted (M2-Scripting)|PopulationConverted]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[DistanceCapital (M2-Scripting)|DistanceCapital]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[Attribute (M2-Scripting)|Attribute]]||[[character_record (M2-Scripting)|character_record]]||Attribute Description, Logic Token, Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[RemainingMPPercentage (M2-Scripting)|RemainingMPPercentage]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_RemainingMPPercentage (M2-Scripting)|I_RemainingMPPercentage]]||None||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_RemainingArmyMPPercentage (M2-Scripting)|I_RemainingArmyMPPercentage]]||None||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_CharacterCanMove (M2-Scripting)|I_CharacterCanMove]]||None||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[NoActionThisTurn (M2-Scripting)|NoActionThisTurn]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[CharacterNumTurnsIdle (M2-Scripting)|CharacterNumTurnsIdle]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[AgentType (M2-Scripting)|AgentType]]||[[character_record (M2-Scripting)|character_record]]||Character Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TrainedAgentType (M2-Scripting)|TrainedAgentType]]||[[character_record (M2-Scripting)|character_record]]||Character Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[DisasterType (M2-Scripting)|DisasterType]]||[[event_type (M2-Scripting)|event_type]]||Event Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[CultureType (M2-Scripting)|CultureType]]||[[character_record (M2-Scripting)|character_record]]||Culture Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[CharFactionType (M2-Scripting)|CharFactionType]]||[[character_record (M2-Scripting)|character_record]]||Character Faction Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[OriginalFactionType (M2-Scripting)|OriginalFactionType]]||[[character_record (M2-Scripting)|character_record]]||Original Faction Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[OriginalCultureType (M2-Scripting)|OriginalCultureType]]||[[character_record (M2-Scripting)|character_record]]||Original Culture Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsGeneral (M2-Scripting)|IsGeneral]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsAdmiral (M2-Scripting)|IsAdmiral]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[EndedInSettlement (M2-Scripting)|EndedInSettlement]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsFactionLeader (M2-Scripting)|IsFactionLeader]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsFactionHeir (M2-Scripting)|IsFactionHeir]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsMarried (M2-Scripting)|IsMarried]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[AtSea (M2-Scripting)|AtSea]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_AtSea (M2-Scripting)|I_AtSea]]||None||Character||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[InEnemyLands (M2-Scripting)|InEnemyLands]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[InBarbarianLands (M2-Scripting)|InBarbarianLands]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[InUncivilisedLands (M2-Scripting)|InUncivilisedLands]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsBesieging (M2-Scripting)|IsBesieging]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsUnderSiege (M2-Scripting)|IsUnderSiege]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_WithdrawsBeforeBattle (M2-Scripting)|I_WithdrawsBeforeBattle]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[EndedInEnemyZOC (M2-Scripting)|EndedInEnemyZOC]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[AdviseAction (M2-Scripting)|AdviseAction]]||[[character_action_advice (M2-Scripting)|character_action_advice]]||Logic Token, Action||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_CharacterTypeNearCharacterType (M2-Scripting)|I_CharacterTypeNearCharacterType]]||None||Faction, Character Type, Distance in Squares, Faction, Character Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_CharacterTypeNearTile (M2-Scripting)|I_CharacterTypeNearTile]]||None||Faction, Character Type, Distance in Squares, Position X, Position Y||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TradingResource (M2-Scripting)|TradingResource]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[OnResource (M2-Scripting)|OnResource]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TradingMonopoly (M2-Scripting)|TradingMonopoly]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TradingExotic (M2-Scripting)|TradingExotic]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[HighestAttAdjacentChar (M2-Scripting)|HighestAttAdjacentChar]]||[[character_record (M2-Scripting)|character_record]]||Attribute Type, Character Type, Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[HighestAttSharedChar (M2-Scripting)|HighestAttSharedChar]]||[[character_record (M2-Scripting)|character_record]]||Attribute Type, Character Type, Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SpouseAttribute (M2-Scripting)|SpouseAttribute]]||[[character_record (M2-Scripting)|character_record]]||Attribute Description, Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SpouseTrait (M2-Scripting)|SpouseTrait]]||[[character_record (M2-Scripting)|character_record]]||Trait Description, Logic Token, Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[PopulationOwnReligion (M2-Scripting)|PopulationOwnReligion]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Percentage||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[PopulationHeretic (M2-Scripting)|PopulationHeretic]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Percentage||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[ProbabilitySuccess (M2-Scripting)|ProbabilitySuccess]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsOnCrusade (M2-Scripting)|IsOnCrusade]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsOnJihad (M2-Scripting)|IsOnJihad]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsTargetOnCrusade (M2-Scripting)|IsTargetOnCrusade]]||[[target_character_record (M2-Scripting)|target_character_record]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsTargetOnJihad (M2-Scripting)|IsTargetOnJihad]]||[[target_character_record (M2-Scripting)|target_character_record]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_CrusadingGeneralSelected (M2-Scripting)|I_CrusadingGeneralSelected]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_JihadGeneralSelected (M2-Scripting)|I_JihadGeneralSelected]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[CharacterReligion (M2-Scripting)|CharacterReligion]]||[[character_record (M2-Scripting)|character_record]]||Religion||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TimeInRegion (M2-Scripting)|TimeInRegion]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Turns||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TimeSinceReligion (M2-Scripting)|TimeSinceReligion]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Religion Percentage, Logic Token, Turns||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TimeSinceHeresy (M2-Scripting)|TimeSinceHeresy]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Heresy Percentage, Logic Token, Turns||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TimeWithArmy (M2-Scripting)|TimeWithArmy]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Turns||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FatherAnc (M2-Scripting)|FatherAnc]]||[[character_record (M2-Scripting)|character_record]]||Ancillary Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[GeneralWithAncKilled (M2-Scripting)|GeneralWithAncKilled]]||[[character_record (M2-Scripting)|character_record]]||Ancillary Name||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[HasAncType (M2-Scripting)|HasAncType]]||[[character_record (M2-Scripting)|character_record]]||Ancillary Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_CharacterExists (M2-Scripting)|I_CharacterExists]]||None||Character Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[RansomType (M2-Scripting)|RansomType]]||[[ransom_type (M2-Scripting)|ransom_type]]||Ransom Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[NumCapturedSoldiers (M2-Scripting)|NumCapturedSoldiers]]||[[captured_faction_info (M2-Scripting)|captured_faction_info]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[NumCapturedCharacters (M2-Scripting)|NumCapturedCharacters]]||[[captured_faction_info (M2-Scripting)|captured_faction_info]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[RansomAmount (M2-Scripting)|RansomAmount]]||[[captured_faction_info (M2-Scripting)|captured_faction_info]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_FactionLeaderTrait (M2-Scripting)|I_FactionLeaderTrait]]||None||Faction Type, Trait Description, Logic Token, Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_FactionLeaderAttribute (M2-Scripting)|I_FactionLeaderAttribute]]||None||Faction Type, Attribute Description, Logic Token, Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionType (M2-Scripting)|FactionType]]||[[faction (M2-Scripting)|faction]]||Faction Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetFactionType (M2-Scripting)|TargetFactionType]]||[[target_faction (M2-Scripting)|target_faction]]||Faction Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionReligion (M2-Scripting)|FactionReligion]]||[[faction (M2-Scripting)|faction]]||Faction Religion||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetFactionReligion (M2-Scripting)|TargetFactionReligion]]||[[target_faction (M2-Scripting)|target_faction]]||Faction Religion||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionCultureType (M2-Scripting)|FactionCultureType]]||[[faction (M2-Scripting)|faction]]||Culture Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetFactionCultureType (M2-Scripting)|TargetFactionCultureType]]||[[target_faction (M2-Scripting)|target_faction]]||Culture Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TrainedUnitCategory (M2-Scripting)|TrainedUnitCategory]]||[[unit (M2-Scripting)|unit]]||Unit Category||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TrainedUnitClass (M2-Scripting)|TrainedUnitClass]]||[[unit (M2-Scripting)|unit]]||Unit Class||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[UnitCategory (M2-Scripting)|UnitCategory]]||[[unit (M2-Scripting)|unit]]||Logic Token, Unit Category||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[MedianTaxLevel (M2-Scripting)|MedianTaxLevel]]||[[faction (M2-Scripting)|faction]]||Logic Token, Tax Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[ModeTaxLevel (M2-Scripting)|ModeTaxLevel]]||[[faction (M2-Scripting)|faction]]||Logic Token, Tax Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_ModeTaxLevel (M2-Scripting)|I_ModeTaxLevel]]||None||Faction, Logic Token, Tax Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[MissionSuccessLevel (M2-Scripting)|MissionSuccessLevel]]||[[mission_success_level (M2-Scripting)|mission_success_level]]||Logic Token, Success Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[MissionSucceeded (M2-Scripting)|MissionSucceeded]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[MissionFactionTargetType (M2-Scripting)|MissionFactionTargetType]]||[[faction (M2-Scripting)|faction]]||Faction Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[MissionCultureTargetType (M2-Scripting)|MissionCultureTargetType]]||[[faction (M2-Scripting)|faction]], [[character_record (M2-Scripting)|character_record]]||Culture Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[DiplomaticStanceFromCharacter (M2-Scripting)|DiplomaticStanceFromCharacter]]||[[character_record (M2-Scripting)|character_record]]||Faction Type, Logic Token, Stance||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[DiplomaticStanceFromFaction (M2-Scripting)|DiplomaticStanceFromFaction]]||[[faction (M2-Scripting)|faction]]||Faction Type, Logic Token, Stance||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[DiplomaticStanceFactions (M2-Scripting)|DiplomaticStanceFactions]]||[[faction (M2-Scripting)|faction]], [[target_faction (M2-Scripting)|target_faction]]||Logic Token, Stance||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[DiplomaticStanceWithNewPope (M2-Scripting)|DiplomaticStanceWithNewPope]]||[[faction (M2-Scripting)|faction]], [[target_faction (M2-Scripting)|target_faction]]||Logic Token, Stance||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionEqualsTarget (M2-Scripting)|FactionEqualsTarget]]||[[faction (M2-Scripting)|faction]], [[target_faction (M2-Scripting)|target_faction]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionHasAllies (M2-Scripting)|FactionHasAllies]]||[[faction (M2-Scripting)|faction]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionBuildingExists (M2-Scripting)|FactionBuildingExists]]||[[faction (M2-Scripting)|faction]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionScore (M2-Scripting)|FactionScore]]||[[faction (M2-Scripting)|faction]]||Score Type, Logic Token, Faction Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionHasRank (M2-Scripting)|FactionHasRank]]||[[faction (M2-Scripting)|faction]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionScorePercent (M2-Scripting)|FactionScorePercent]]||[[faction (M2-Scripting)|faction]]||Score Type, Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionScoreRank (M2-Scripting)|FactionScoreRank]]||[[faction (M2-Scripting)|faction]]||Score Type, Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionIncome (M2-Scripting)|FactionIncome]]||[[faction (M2-Scripting)|faction]]||Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_LosingMoney (M2-Scripting)|I_LosingMoney]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SupportCostsPercentage (M2-Scripting)|SupportCostsPercentage]]||[[faction (M2-Scripting)|faction]]||Logic Token, Percentage||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[Treasury (M2-Scripting)|Treasury]]||[[faction (M2-Scripting)|faction]]||Logic Token, Quantity||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[OnAWarFooting (M2-Scripting)|OnAWarFooting]]||[[faction (M2-Scripting)|faction]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_FactionBesieging (M2-Scripting)|I_FactionBesieging]]||None||Faction Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_FactionBesieged (M2-Scripting)|I_FactionBesieged]]||None||Faction Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_NumberOfSettlements (M2-Scripting)|I_NumberOfSettlements]]||None||Faction Type, Logic Token, # of Settlements||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_NumberOfHeirs (M2-Scripting)|I_NumberOfHeirs]]||None||Faction Type, Logic Token, # of Heirs||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_FactionNearTile (M2-Scripting)|I_FactionNearTile]]||None||Faction, Distance in Squares, Position X, Position Y||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementsTaken (M2-Scripting)|SettlementsTaken]]||[[faction (M2-Scripting)|faction]]||Logic Token, Quantity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[BattlesFought (M2-Scripting)|BattlesFought]]||[[faction (M2-Scripting)|faction]]||Logic Token, Quantity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[BattlesWon (M2-Scripting)|BattlesWon]]||[[faction (M2-Scripting)|faction]]||Logic Token, Quantity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[BattlesLost (M2-Scripting)|BattlesLost]]||[[faction (M2-Scripting)|faction]]||Logic Token, Quantity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[DefensiveSiegesFought (M2-Scripting)|DefensiveSiegesFought]]||[[faction (M2-Scripting)|faction]]||Logic Token, Quantity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[DefensiveSiegesWon (M2-Scripting)|DefensiveSiegesWon]]||[[faction (M2-Scripting)|faction]]||Logic Token, Quantity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[OffensiveSiegesFought (M2-Scripting)|OffensiveSiegesFought]]||[[faction (M2-Scripting)|faction]]||Logic Token, Quantity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[OffensiveSiegesWon (M2-Scripting)|OffensiveSiegesWon]]||[[faction (M2-Scripting)|faction]]||Logic Token, Quantity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsFactionAIFrozen (M2-Scripting)|IsFactionAIFrozen]]||[[faction (M2-Scripting)|faction]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_IsFactionAIFrozen (M2-Scripting)|I_IsFactionAIFrozen]]||None||faction||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[MissionID (M2-Scripting)|MissionID]]||[[mission_details (M2-Scripting)|mission_details]]||Mission ID||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[PaybackID (M2-Scripting)|PaybackID]]||[[mission_details (M2-Scripting)|mission_details]]||Payback ID||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsCrusadeTargetFaction (M2-Scripting)|IsCrusadeTargetFaction]]||[[target_faction (M2-Scripting)|target_faction]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsJihadTargetFaction (M2-Scripting)|IsJihadTargetFaction]]||[[target_faction (M2-Scripting)|target_faction]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[MissionTimeRemaining (M2-Scripting)|MissionTimeRemaining]]||[[faction (M2-Scripting)|faction]]||Logic Token, Turns Remaining||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_PlayerHasMission (M2-Scripting)|I_PlayerHasMission]]||None||Mission ID||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_PlayerHasMissionType (M2-Scripting)|I_PlayerHasMissionType]]||None||Source ID||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_PlayerHasPreferati (M2-Scripting)|I_PlayerHasPreferati]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_PlayerCanBuyVotes (M2-Scripting)|I_PlayerCanBuyVotes]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionwideAncillaryExists (M2-Scripting)|FactionwideAncillaryExists]]||[[character_record (M2-Scripting)|character_record]]||Ancillary Name, Logic Token||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TransgressionName (M2-Scripting)|TransgressionName]]||[[resource_description (M2-Scripting)|resource_description]]||Transgression Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[ForgivenessName (M2-Scripting)|ForgivenessName]]||[[resource_description (M2-Scripting)|resource_description]]||Forgiveness Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionStanding (M2-Scripting)|FactionStanding]]||[[faction (M2-Scripting)|faction]], [[target_faction (M2-Scripting)|target_faction]]||Logic Token, Quantity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[GlobalStanding (M2-Scripting)|GlobalStanding]]||[[faction (M2-Scripting)|faction]]||Logic Token, Quantity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionExcommunicated (M2-Scripting)|FactionExcommunicated]]||[[faction (M2-Scripting)|faction]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetFactionExcommunicated (M2-Scripting)|TargetFactionExcommunicated]]||[[target_faction (M2-Scripting)|target_faction]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionUndiscovered (M2-Scripting)|FactionUndiscovered]]||[[faction (M2-Scripting)|faction]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_IsFactionUndiscovered (M2-Scripting)|I_IsFactionUndiscovered]]||None||Faction||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionAILabel (M2-Scripting)|FactionAILabel]]||[[faction (M2-Scripting)|faction]]||Faction Type, AI Label||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_FactionAILabel (M2-Scripting)|I_FactionAILabel]]||None||Faction Type, AI Label||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[NumFactionMarriages (M2-Scripting)|NumFactionMarriages]]||[[faction (M2-Scripting)|faction]], [[target_faction (M2-Scripting)|target_faction]]||Logic Token, # of Marriages||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_UnitExists (M2-Scripting)|I_UnitExists]]||None||Faction, Unit Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[RandomPercent (M2-Scripting)|RandomPercent]]||None||Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TrueCondition (M2-Scripting)|TrueCondition]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[EventCounterType (M2-Scripting)|EventCounterType]]||[[event_counter (M2-Scripting)|event_counter]]||Event Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[EventCounter (M2-Scripting)|EventCounter]]||[[event_counter (M2-Scripting)|event_counter]]||Logic Token, Integer||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_EventCounter (M2-Scripting)|I_EventCounter]]||None||Event Name, Logic Token, Integer||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsPositionInRect (M2-Scripting)|IsPositionInRect]]||[[sm_position (M2-Scripting)|sm_position]]||Left Top [Width Height]||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsRegionOneOf (M2-Scripting)|IsRegionOneOf]]||[[region_id (M2-Scripting)|region_id]]||Region Label||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsTargetRegionOneOf (M2-Scripting)|IsTargetRegionOneOf]]||[[target_region_id (M2-Scripting)|target_region_id]]||Region Label||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsCrusade (M2-Scripting)|IsCrusade]]||[[crusade (M2-Scripting)|crusade]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsJihad (M2-Scripting)|IsJihad]]||[[crusade (M2-Scripting)|crusade]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[CrusadeOutcome (M2-Scripting)|CrusadeOutcome]]||[[crusade (M2-Scripting)|crusade]]||Crusade Outcome||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_CrusadeInProgress (M2-Scripting)|I_CrusadeInProgress]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_JihadInProgress (M2-Scripting)|I_JihadInProgress]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_CrusadeTimeLeft (M2-Scripting)|I_CrusadeTimeLeft]]||None||Logic Token, Integer||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_JihadTimeLeft (M2-Scripting)|I_JihadTimeLeft]]||None||Logic Token, Integer||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_TurnsSinceLastCrusade (M2-Scripting)|I_TurnsSinceLastCrusade]]||None||Logic Token, Integer||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_TurnsSinceLastJihad (M2-Scripting)|I_TurnsSinceLastJihad]]||None||Logic Token, Integer||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[Religion (M2-Scripting)|Religion]]||[[TriggerList-Condition-Religion (M2-Scripting)|List]]||Religion||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetReligion (M2-Scripting)|TargetReligion]]||[[target_religion (M2-Scripting)|target_religion]]||Religion||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_WorldwideAncillaryExists (M2-Scripting)|I_WorldwideAncillaryExists]]||[[character_record (M2-Scripting)|character_record]]||Anicllary Name, Logic Token||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[CampaignDifficulty (M2-Scripting)|CampaignDifficulty]]||[[faction (M2-Scripting)|faction]]||Logic Token, Difficulty||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[BattleDifficulty (M2-Scripting)|BattleDifficulty]]||[[faction (M2-Scripting)|faction]]||Logic Token, Difficulty||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_CampaignNumTimePlay (M2-Scripting)|I_CampaignNumTimePlay]]||None||Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_FirstTimePlay (M2-Scripting)|I_FirstTimePlay]]||None||Faction Type||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_AdvisorVerbosityLevel (M2-Scripting)|I_AdvisorVerbosityLevel]]||None||Logic Token, Integer||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_HotseatEnabled (M2-Scripting)|I_HotseatEnabled]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementName (M2-Scripting)|SettlementName]]||[[settlement (M2-Scripting)|settlement]]||Settlement Name||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetSettlementName (M2-Scripting)|TargetSettlementName]]||[[target_settlement (M2-Scripting)|target_settlement]]||Settlement Name||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[GovernorBuildingExists (M2-Scripting)|GovernorBuildingExists]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Building Description||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementBuildingExists (M2-Scripting)|SettlementBuildingExists]]||[[settlement (M2-Scripting)|settlement]]||Logic Token, Building Description||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[BuildingFinishedByGovernor (M2-Scripting)|BuildingFinishedByGovernor]]||[[character_record (M2-Scripting)|character_record]], [[prior_build (M2-Scripting)|prior_build]]||Logic Token, Building Description||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementBuildingFinished (M2-Scripting)|SettlementBuildingFinished]]||[[prior_build (M2-Scripting)|prior_build]]||Logic Token, Building Description||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[NumBuildingsCompleted (M2-Scripting)|NumBuildingsCompleted]]||[[prior_build (M2-Scripting)|prior_build]]||Building Description, Logic Token, Test Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[NumBuildingsCompletedFaction (M2-Scripting)|NumBuildingsCompletedFaction]]||[[faction (M2-Scripting)|faction]], [[prior_build (M2-Scripting)|prior_build]]||Building Description, Logic Token, Test Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[GovernorPlugInExists (M2-Scripting)|GovernorPlugInExists]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Plug-In||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[GovernorPlugInFinished (M2-Scripting)|GovernorPlugInFinished]]||[[character_record (M2-Scripting)|character_record]], [[prior_build (M2-Scripting)|prior_build]]||Logic Token, Plug-In||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[GovernorTaxLevel (M2-Scripting)|GovernorTaxLevel]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Tax Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementTaxLevel (M2-Scripting)|SettlementTaxLevel]]||[[settlement (M2-Scripting)|settlement]]||Logic Token, Tax Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[GovernorInResidence (M2-Scripting)|GovernorInResidence]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[GovernorLoyaltyLevel (M2-Scripting)|GovernorLoyaltyLevel]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Value||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[GovernorAttribute (M2-Scripting)|GovernorAttribute]]||[[settlement (M2-Scripting)|settlement]]||Attribute, Logic Token, Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementLoyaltyLevel (M2-Scripting)|SettlementLoyaltyLevel]]||[[settlement (M2-Scripting)|settlement]]||Logic Token, Level||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[RiotRisk (M2-Scripting)|RiotRisk]]||[[settlement (M2-Scripting)|settlement]]||Logic Token, Percentage||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[BuildingQueueIdleDespiteCash (M2-Scripting)|BuildingQueueIdleDespiteCash]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TrainingQueueIdleDespiteCash (M2-Scripting)|TrainingQueueIdleDespiteCash]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_SettlementExists (M2-Scripting)|I_SettlementExists]]||None||Settlement Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_SettlementOwner (M2-Scripting)|I_SettlementOwner]]||None||Settlement Name, Logic Token, Faction Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[AdviseFinancialBuild (M2-Scripting)|AdviseFinancialBuild]]||[[best_finance_option (M2-Scripting)|best_finance_option]]||Build Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[AdviseBuild (M2-Scripting)|AdviseBuild]]||[[advised_build (M2-Scripting)|advised_build]]||Build Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[AdviseRecruit (M2-Scripting)|AdviseRecruit]]||None||Unit Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[BuildingName (M2-Scripting)|BuildingName]]||[[resource_description (M2-Scripting)|resource_description]]||Building Level Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementPopulationMaxedOut (M2-Scripting)|SettlementPopulationMaxedOut]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementPopulationTooLow (M2-Scripting)|SettlementPopulationTooLow]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementAutoManaged (M2-Scripting)|SettlementAutoManaged]]||[[settlement (M2-Scripting)|settlement]]||Automanagement Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[PercentageOfPopulationInGarrison (M2-Scripting)|PercentageOfPopulationInGarrison]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[GarrisonToPopulationRatio (M2-Scripting)|GarrisonToPopulationRatio]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[HealthPercentage (M2-Scripting)|HealthPercentage]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementHasPlague (M2-Scripting)|SettlementHasPlague]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsFortGarrisoned (M2-Scripting)|IsFortGarrisoned]]||[[fort (M2-Scripting)|fort]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsSettlementGarrisoned (M2-Scripting)|IsSettlementGarrisoned]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsSettlementRioting (M2-Scripting)|IsSettlementRioting]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_NumberUnitsInSettlement (M2-Scripting)|I_NumberUnitsInSettlement]]||None||Settlement, Unit Type, Logic Token, Quantity||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[NeighbourReligion (M2-Scripting)|NeighbourReligion]]||[[settlement (M2-Scripting)|settlement]]||Settlement Religion, Logic Token, Level||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsCrusadeTarget (M2-Scripting)|IsCrusadeTarget]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsJihadTarget (M2-Scripting)|IsJihadTarget]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsRegionCrusadeTarget (M2-Scripting)|IsRegionCrusadeTarget]]||[[region_id (M2-Scripting)|region_id]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsRegionJihadTarget (M2-Scripting)|IsRegionJihadTarget]]||[[region_id (M2-Scripting)|region_id]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementType (M2-Scripting)|SettlementType]]||[[settlement (M2-Scripting)|settlement]]||Castle/City||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetSettlementType (M2-Scripting)|TargetSettlementType]]||[[settlement (M2-Scripting)|settlement]]||Castle/City||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_SettlementUnderSiege (M2-Scripting)|I_SettlementUnderSiege]]||None||Settlement Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_UnitsToRetrain (M2-Scripting)|I_UnitsToRetrain]]||None||Settlement Name, Logic Token, Number||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[CharacterIsLocal (M2-Scripting)|CharacterIsLocal]]||[[character_record (M2-Scripting)|character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetCharacterIsLocal (M2-Scripting)|TargetCharacterIsLocal]]||[[target_character_record (M2-Scripting)|target_character_record]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[SettlementIsLocal (M2-Scripting)|SettlementIsLocal]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetSettlementIsLocal (M2-Scripting)|TargetSettlementIsLocal]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[RegionIsLocal (M2-Scripting)|RegionIsLocal]]||[[region_id (M2-Scripting)|region_id]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetRegionIsLocal (M2-Scripting)|TargetRegionIsLocal]]||[[region_id (M2-Scripting)|region_id]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[ArmyIsLocal (M2-Scripting)|ArmyIsLocal]]||[[army (M2-Scripting)|army]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetArmyIsLocal (M2-Scripting)|TargetArmyIsLocal]]||[[army (M2-Scripting)|army]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[FactionIsLocal (M2-Scripting)|FactionIsLocal]]||[[faction (M2-Scripting)|faction]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_LocalFaction (M2-Scripting)|I_LocalFaction]]||None||Faction||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[TargetFactionIsLocal (M2-Scripting)|TargetFactionIsLocal]]||[[target_faction (M2-Scripting)|target_faction]]||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_TurnNumber (M2-Scripting)|I_TurnNumber]]||None||Logic Token, Turn Number||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_MapName (M2-Scripting)|I_MapName]]||None||Map File Name||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_ThreadCount (M2-Scripting)|I_ThreadCount]]||None||Advice Thread, Logic Token, Value||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_IsTriggerTrue (M2-Scripting)|I_IsTriggerTrue]]||None||Trigger Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IncomingMessageType (M2-Scripting)|IncomingMessageType]]||[[event (M2-Scripting)|event]]||Message Identifier||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_AdvisorVerbosity (M2-Scripting)|I_AdvisorVerbosity]]||None||Logic Token, Advisor Verbosity||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_CharacterSelected (M2-Scripting)|I_CharacterSelected]]||None||Character Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_AgentSelected (M2-Scripting)|I_AgentSelected]]||None||Character Type||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_SettlementSelected (M2-Scripting)|I_SettlementSelected]]||None||Settlement Name||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[ShortcutTriggered (M2-Scripting)|ShortcutTriggered]]||[[resource_description (M2-Scripting)|resource_description]]||Element ID, Function ID||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_AdvancedStatsScrollIsOpen (M2-Scripting)|I_AdvancedStatsScrollIsOpen]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_ScrollOpen (M2-Scripting)|I_ScrollOpen]]||None||Scroll ID||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_MessageNeedsResolving (M2-Scripting)|I_MessageNeedsResolving]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[ButtonPressed (M2-Scripting)|ButtonPressed]]||[[resource_description (M2-Scripting)|resource_description]]||Button ID||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[UIElementVisible (M2-Scripting)|UIElementVisible]]||[[resource_description (M2-Scripting)|resource_description]]||UI Element ID||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[ScrollOpened (M2-Scripting)|ScrollOpened]]||[[resource_description (M2-Scripting)|resource_description]]||Scroll ID||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[ScrollClosed (M2-Scripting)|ScrollClosed]]||[[resource_description (M2-Scripting)|resource_description]]||Scroll ID||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[ScrollAdviceRequested (M2-Scripting)|ScrollAdviceRequested]]||[[resource_description (M2-Scripting)|resource_description]]||Scroll ID||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_CompareCounter (M2-Scripting)|I_CompareCounter]]||None||Script Counter, Value||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_TimerElapsed (M2-Scripting)|I_TimerElapsed]]||None||Logic Token, Timer ID, Duration||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_SoundPlaying (M2-Scripting)|I_SoundPlaying]]||None||Sound Event Tag||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_AdvisorSpeechPlaying (M2-Scripting)|I_AdvisorSpeechPlaying]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_AdvisorVisible (M2-Scripting)|I_AdvisorVisible]]||None||None||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-class="sortbottom"
 +
|Identifier||Trigger Requirements||Parameters||Battle||Strat
 +
|}
 +
 +
 +
The following conditions only work for modifications running off the "kingdoms.exe" from the Medieval II: Total War - Kingdoms Expansion.
 +
 +
 +
{|class="wikitable sortable" border="1" cellpadding="4" cellspacing="0"
 +
|+ style="background:#bfc0f7;" |'''Kingdoms DocuDemons - Conditions Table'''
 +
! style="background:#bfc0f7;" |Identifier!!style="background:#bfc0f7;" |Trigger Requirements!!style="background:#bfc0f7;" |Parameters!!style="background:#bfc0f7;" |Battle!!style="background:#bfc0f7;" |Strat
 +
|-
 +
|[[PercentageUnitAttribute (M2-Scripting)|PercentageUnitAttribute]]||[[character_record (M2-Scripting)|character_record]]||Unit Attribute||<span style="display:none">10</span>Yes||<span style="display:none">10</span>Yes
 +
|-
 +
|[[CharacterAge (M2-Scripting)|CharacterAge]]||[[character_record (M2-Scripting)|character_record]]||Logic Token, Age||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsFactionAIControlled (M2-Scripting)|IsFactionAIControlled]]||None||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[I_IsFactionAIControlled (M2-Scripting)|I_IsFactionAIControlled]]||None||Faction||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsSettlementExported (M2-Scripting)|IsSettlementExported]]||[[settlement (M2-Scripting)|settlement]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 +
|-
 +
|[[IsFortExported (M2-Scripting)|IsFortExported]]||[[fort (M2-Scripting)|fort]]||None||<span style="display:none">15</span>No||<span style="display:none">10</span>Yes
 
|-class="sortbottom"
 
|-class="sortbottom"
 
|Identifier||Trigger Requirements||Parameters||Battle||Strat
 
|Identifier||Trigger Requirements||Parameters||Battle||Strat
Line 457: Line 1,135:
  
 
'''Sound Event Tag''' - To Be Amended
 
'''Sound Event Tag''' - To Be Amended
 +
 +
 +
'''Unit Attribute''' - To Be Amended
  
  
 
== See Also ==
 
== See Also ==
 +
*[[Scripting Knowledge Compendium (M2-Scripting)]] - For the index of scripting information
 +
*[[Events (M2-Scripting)]] - For information on Events and links to Event pages
 +
*[[Commands (M2-Scripting)]] - For information on Commands and links to Command pages
 
*[[Modding:Coding]]
 
*[[Modding:Coding]]
  
 
== External Links ==
 
== External Links ==
*[http://www.twcenter.net/forums/downloads.php?do=file&id=1579 Ultimate DocuDemons 4.0]
+
*[https://www.twcenter.net/forums/downloads.php?do=file&id=1579 Ultimate DocuDemons 4.0]
*[http://www.twmodsquad.com/index.php?PHPSESSID=37262cff4c104c4935a64eea165d9f72&cat=1 TW Mod Squad - Scripting]
 
 
*[http://forums.totalwar.org/vb/showthread.php?t=73016 List of Events, Commands, and Conditions from CA]
 
*[http://forums.totalwar.org/vb/showthread.php?t=73016 List of Events, Commands, and Conditions from CA]
*[http://www.twcenter.net/forums/forumdisplay.php?f=743 J@mes TWC-U Scripting Class]
+
*[https://www.twcenter.net/forums/forumdisplay.php?f=743 J@mes TWC-U Scripting Class]
 
*[http://forums.totalwar.org/vb/showthread.php?t=82855 alpaca's Script-o-Rama]
 
*[http://forums.totalwar.org/vb/showthread.php?t=82855 alpaca's Script-o-Rama]
*[http://www.twcenter.net/forums/showthread.php?t=176050 GrnEyedDvl's Scripts n' Stuff]
+
*[https://www.twcenter.net/forums/showthread.php?t=176050 GrnEyedDvl's Scripts n' Stuff]
 
*[http://forums.totalwar.org/vb/showthread.php?t=77177 alpaca's Beginner Scripting Tutorial]
 
*[http://forums.totalwar.org/vb/showthread.php?t=77177 alpaca's Beginner Scripting Tutorial]
 +
 +
[[Category:M2TW Scripting]]

Latest revision as of 23:44, 25 May 2020

M2TW Modding Index


Conditions are the parameters in scripting used to test for the existence of certain situations, in order to execute the script. They are used to narrow the firing of a script down to a required set of triggers which must come back true in order for the script to be fired. A knowledge of the conditions available allows a scripter to tailor their scripts to very precise situations. Some conditions requires certain triggers in order to be executed, which the event they are using has to export, or the condition can not apply to it.

These trigger requirements are: character_record, nc_character_record, player_unit, enemy_unit, infer_defending_unit, infer_attacking_unit, resource_description, character_action_advice, target_character_record, ransom_type, captured_faction_info, faction, target_faction, unit, mission_success_level, mission_details, event_counter, sm_position, region_id, target_region_id, crusade, target_religion, settlement, target_settlement, prior_build, best_finance_option, advised_build, fort, army, event, religion, event_type.

Conditions which list more than one trigger requirement need both or all of them, not just one of those listed.

Conditions Table

Sortable Table, click header to sort column.

Medieval II DocuDemons - Conditions Table
Identifier Trigger Requirements Parameters Battle Strat
PercentageOfArmyKilled character_record Logic Token, Test Value 10Yes 10Yes
BattlePlayerMountClass player_unit Mount Class 10Yes 10Yes
LosingMoney None None 15No 10Yes
GeneralFoughtCulture character_record Culture Type 10Yes 10Yes
I_InBattle None None 10Yes 10Yes
WonBattle character_record None 10Yes 10Yes
I_WonBattle None Faction 10Yes 10Yes
Routs character_record None 10Yes 10Yes
Ally_Routs character_record None 10Yes 10Yes
GeneralHPLostRatioinBattle character_record Logic Token, Test Value 10Yes 10Yes
GeneralFoughtInCombat character_record None 10Yes 10Yes
I_PercentageOfArmyKilled None Alliance Index, Army Index, Logic Token, Percentage 10Yes 15No
PercentageEnemyKilled character_record Logic Token, Test Value 10Yes 10Yes
PercentageBodyguardKilled character_record Logic Token, Test Value 10Yes 10Yes
PercentageRoutedOffField character_record Logic Token, Test Value 10Yes 10Yes
NumKilledGenerals character_record Logic Token, Test Value 10Yes 10Yes
PercentageUnitCategory character_record Unit Category, Logic Token, Test Value 10Yes 10Yes
NumFriendsInBattle character_record Logic Token, Test Value 10Yes 10Yes
GeneralFoughtFaction character_record Faction Type 10Yes 10Yes
GeneralNumKillsInBattle character_record Logic Token, Test Value 10Yes 10Yes
NumEnemiesInBattle character_record Logic Token, Test Value 10Yes 10Yes
I_ConflictType None Conflict Type 10Yes 10Yes
IsNightBattle None None 10Yes 10Yes
BattleSuccess character_record Success Type 10Yes 10Yes
BattleOdds character_record Logic Token, Test Value 10Yes 10Yes
WasAttacker character_record None 10Yes 10Yes
I_BattleAiAttacking None None 10Yes 15No
I_BattleAiAssaultingCrossing None None 10Yes 15No
I_BattleAiAttackingSettlement None None 10Yes 15No
I_BattleAiDefendingSettlement None None 10Yes 15No
I_BattleAiDefendingHill None None 10Yes 15No
I_BattleAiDefendingCrossing None None 10Yes 15No
I_BattleAiScouting None None 10Yes 15No
I_BattleIsRiverBattle None Integer 10Yes 15No
I_BattleIsSiegeBattle None Integer 10Yes 15No
I_BattleIsSallyOutBattle None Integer 10Yes 15No
I_BattleIsFortBattle None Integer 10Yes 15No
I_BattleAttackerNumSiegeEngines None Siege Engine Class 10Yes 15No
I_BattleAttackerNumArtilleryCanPenetrateWalls None Logic Token, Number 10Yes 15No
I_BattleDefenderNumNonMissileUnitsOnWalls None Logic Token, Number 10Yes 15No
I_BattleDefenderNumMissileUnitsOnWalls None Logic Token, Number 10Yes 15No
I_BattleSettlementWallsBreached None None 10Yes 15No
I_BattleSettlementGateDestroyed None None 10Yes 15No
I_BattleSettlementTowerDefence None Tower Defence Type 10Yes 15No
I_BattleSettlementFortificationLevel None Wall Level 10Yes 15No
BattleBuildingType None Building Type 10Yes 15No
I_BattleSettlementGateStrength None Gate Strength 10Yes 15No
I_BattleNumberOfRiverCrossings None Integer 10Yes 15No
BattlePlayerUnitClass player_unit Unit Class 10Yes 15No
BattleEnemyUnitClass enemy_unit Unit Class 10Yes 15No
BattlePlayerUnitCategory player_unit Unit Category 10Yes 15No
BattleEnemyUnitCategory enemy_unit Unit Category 10Yes 15No
BattlePlayerUnitSiegeEngineClass player_unit Siege Engine Category 10Yes 15No
BattleEnemyUnitSiegeEngineClass enemy_unit Siege Engine Category 10Yes 15No
BattlePlayerUnitOnWalls player_unit None 10Yes 15No
BattleEnemyUnitOnWalls enemy_unit None 10Yes 15No
BattlePlayerCurrentFormation player_unit Formation 10Yes 15No
BattleEnemyCurrentFormation enemy_unit Formation 10Yes 15No
BattlePlayerUnitCloseFormation player_unit None 10Yes 15No
BattleEnemyUnitCloseFormation enemy_unit None 10Yes 15No
BattlePlayerUnitSpecialAbilitySupported player_unit Special Ability 10Yes 15No
BattleEnemyUnitSpecialAbilitySupported enemy_unit Special Ability 10Yes 15No
BattlePlayerUnitSpecialAbilityActive player_unit None 10Yes 15No
BattleEnemyUnitSpecialAbilityActive enemy_unit None 10Yes 15No
BattleEnemyMountClass enemy_unit Mount Class 10Yes 15No
BattlePlayerUnitMeleeStrength player_unit Logic Token, Test Value 10Yes 15No
BattleEnemyUnitMeleeStrength enemy_unit Logic Token, Test Value 10Yes 15No
BattlePlayerUnitMissileStrength player_unit Logic Token, Test Value 10Yes 15No
BattleEnemyUnitMissileStrength enemy_unit Logic Token, Test Value 10Yes 15No
BattlePlayerUnitSpecialFormation player_unit Formation 10Yes 15No
BattleEnemyUnitSpecialFormation enemy_unit Formation 10Yes 15No
BattlePlayerUnitEngaged player_unit None 10Yes 15No
BattleEnemyUnitEngaged enemy_unit None 10Yes 15No
BattlePlayerActionStatus player_unit Action Status 10Yes 15No
BattleEnemyActionStatus enemy_unit Action Status 10Yes 15No
BattlePlayerUnitMovingFast player_unit None 10Yes 15No
BattleEnemyUnitMovingFast enemy_unit None 10Yes 15No
BattleRangeOfAttack player_unit, enemy_unit Logic Token, Test Value 10Yes 15No
BattleDirectionOfAttack infer_attacking_unit, infer_defending_unit Logic Token, Attack Direction 10Yes 15No
BattleIsMeleeAttack infer_attacking_unit None 10Yes 15No
I_BattlePlayerArmyPercentageOfUnitClass None Unit Class, Logic Token, Percentage 10Yes 15No
I_BattleEnemyArmyPercentageOfUnitClass None Unit Class, Logic Token, Percentage 10Yes 15No
I_BattlePlayerArmyPercentageOfUnitCategory None Unit Category, Logic Token, Percentage 10Yes 15No
I_BattleEnemyArmyPercentageOfUnitCategory None Unit Category, Logic Token, Percentage 10Yes 15No
I_BattlePlayerArmyPercentageOfMountClass None Mount Class, Logic Token, Percentage 10Yes 15No
I_BattleEnemyArmyPercentageOfMountClass None Mount Class, Logic Token, Percentage 10Yes 15No
I_BattlePlayerArmyPercentageOfClassAndCategory None Unit Class, Unit Category, Logic Token, Percentage 10Yes 15No
I_BattleEnemyArmyPercentageOfClassAndCategory None Unit Class, Unit Category, Logic Token, Percentage 10Yes 15No
I_BattlePlayerArmyPercentageOfSpecialAbility None Special Ability, Logic Token, Percentage 10Yes 15No
I_BattleEnemyArmyPercentageOfSpecialAbility None Special Ability, Logic Token, Percentage 10Yes 15No
I_BattlePlayerArmyPercentageCanHide None Hide Type, Logic Token, Percentage 10Yes 15No
I_BattleEnemyArmyPercentageCanHide None Hide Type, Logic Token, Percentage 10Yes 15No
I_BattlePlayerArmyPercentageCanSwim None Logic Token, Percentage 10Yes 15No
I_BattleEnemyArmyPercentageCanSwim None Logic Token, Percentage 10Yes 15No
I_BattlePlayerArmyIsAttacker None None 10Yes 15No
I_BattlePlayerAllianceOddsInFavour None Logic Token, Integer 10Yes 15No
I_BattlePlayerAllianceOddsAgainst None Logic Token, Integer 10Yes 15No
TotalSiegeWeapons character_record Logic Token, Number 15No 10Yes
I_BattleStarted None None 10Yes 15No
I_IsUnitMoveFastSet None Unit Label 10Yes 15No
I_IsUnitMoving None Unit Label 10Yes 15No
I_IsUnitIdle None Unit Label 10Yes 15No
I_UnitStatus None Unit Label, Action Status 10Yes 15No
I_IsUnitRouting None Unit Label 10Yes 15No
I_IsUnitUnderFire None Unit Label 10Yes 15No
I_IsUnitEngaged None Unit Label 10Yes 15No
I_IsUnitEngagedWithUnit None Unit Label, Other Unit Label 10Yes 15No
I_UnitFormation None Unit Label, Logic Token, Formation Type 10Yes 15No
I_PercentageUnitKilled None Unit Label, Logic Token, Percentage 10Yes 15No
I_UnitPercentageAmmoLeft None Unit Label, Logic Token, Percentage 10Yes 15No
I_UnitDistanceFromPosition None Unit Label, Position X, Position Y, Logic Token, Distance 10Yes 15No
I_UnitOrderedToPosition None Unit Label, Position X, Position Y, Logic Token, Distance 10Yes 15No
I_UnitDistanceFromLine None Unit Label, Location 1, Location 2, Logic Token, Distance 10Yes 15No
I_UnitDistanceFromUnit None Unit Label 1, Unit Label 2, Logic Token, Distance 10Yes 15No
I_UnitInRangeOfUnit None Attacker Unit Label, Target Unit Label 10Yes 15No
I_UnitDestroyed None Unit Label 10Yes 15No
I_UnitEnemyUnitInRadius None Unit Label, Radius 10Yes 15No
I_IsUnitGroupMoving None Group Label 10Yes 15No
I_IsUnitGroupEngaged None Group Label 10Yes 15No
I_IsUnitGroupIdle None Group Label 10Yes 15No
I_IsUnitGroupDestroyed None Group Label 10Yes 15No
I_PercentageUnitGroupKilled None Group Label, Logic Token, Percentage 10Yes 15No
I_UnitGroupFormation None Group Label, Logic Token, Formation Name 10Yes 15No
I_UnitGroupDistanceFromPosition None Group Label, Position, Logic Token, Distance 10Yes 15No
I_UnitGroupDistanceFromGroup None Group Label, Target Group Label, Logic Token, Distance 10Yes 15No
I_UnitGroupInRangeOfUnit None Group Label, Target Unit Label 10Yes 15No
I_UnitInRangeOfUnitGroup None Group Label, Target Group Label 10Yes 15No
I_UnitGroupInRangeOfUnitGroup None Group Label, Target Group Label 10Yes 15No
I_PlayerInRangeOfUnitGroup None Group Label 10Yes 15No
I_PlayerInRangeOfUnit None Unit Label 10Yes 15No
I_UnitTypeSelected None Unit Type 10Yes 15No
UnitType resource_description Unit Type 10Yes 10Yes
I_UnitSelected None Unit Label 10Yes 15No
I_MultipleUnitsSelected None None 10Yes 15No
I_SpecificUnitsSelected None Unit Label 1, Unit Label 2, Unit Label 3, ... 10Yes 15No
I_IsCameraZoomingToUnit None Unit Label 10Yes 15No
I_BattleEnemyArmyPercentageOfMatchingUnits None Unit Match Type, Logic Token, Test Value 10Yes 15No
I_BattleEnemyArmyNumberOfMatchingUnits None Unit Match Type, Logic Token, Test Value 10Yes 15No
I_BattlePlayerArmyPercentageOfMatchingUnits None Unit Match Type, Logic Token, Test Value 10Yes 15No
I_BattlePlayerArmyNumberOfMatchingUnits None Unit Match Type, Logic Token, Test Value 10Yes 15No
I_BattlePlayerArmyNumberOfUnitClass None Unit Class, Logic Token, Integer 10Yes 15No
I_BattleEnemyArmyNumberOfUnitClass None Unit Class, Logic Token, Integer 10Yes 15No
I_BattlePlayerArmyNumberOfUnitCategory None Unit Category, Logic Token, Integer 10Yes 15No
I_BattleEnemyArmyNumberOfUnitCategory None Unit Category, Logic Token, Integer 10Yes 15No
I_BattlePlayerArmyNumberOfMountClass None Mount Class, Logic Token, Integer 10Yes 15No
I_BattleEnemyArmyNumberOfMountClass None Mount Class, Logic Token, Integer 10Yes 15No
I_BattlePlayerArmyNumberOfClassAndCategory None Unit Class, Unit Category, Logic Token, Integer 10Yes 15No
I_BattleEnemyArmyNumberOfClassAndCategory None Unit Class, Unit Category, Logic Token, Integer 10Yes 15No
I_BattlePlayerArmyNumberOfSpecialAbility None Special Ability, Integer 10Yes 15No
I_BattleEnemyArmyNumberOfSpecialAbility None Special Ability, Integer 10Yes 15No
I_BattlePlayerArmyNumberCanHide None Hide Type, Logic Token, Integer 10Yes 15No
I_BattleEnemyArmyNumberCanHide None Hide Type, Logic Token, Integer 10Yes 15No
I_BattlePlayerArmyNumberCanSwim None Logic Token, Integer 10Yes 15No
I_BattleEnemyArmyNumberCanSwim None Logic Token, Integer 10Yes 15No
I_BattlePlayerArmyNumberOfUnits None Logic Token, Integer 10Yes 15No
I_BattleEnemyArmyNumberOfUnits None Logic Token, Integer 10Yes 15No
I_BattlePlayerArmyNumberOfAttribute None Attribute, Logic Token, Integer 10Yes 15No
I_BattleEnemyArmyNumberOfAttribute None Attribute, Logic Token, Integer 10Yes 15No
I_BattlePlayerArmyPercentageOfAttribute None Attribute, Logic Token, Percentage 10Yes 15No
I_BattleEnemyArmyPercentageOfAttribute None Attribute, Logic Token, Percentage 10Yes 15No
I_IsBattleSettlementCastle None None 10Yes 15No
I_BattleSpeed None Logic Token, Value(float) 10Yes 15No
Trait character_record Trait Description, Logic Token, Level 10Yes 10Yes
FatherTrait character_record Trait Description, Logic Token, Level 10Yes 10Yes
FatherAttribute character_record Attribute Description, Logic Token, Level 15No 10Yes
FactionLeaderTrait character_record Trait Description, Logic Token, Level 10Yes 10Yes
FactionLeaderAttribute character_record Attribute Description, Logic Token, Level 10Yes 10Yes
ReligionShift character_record Logic Token, Level 15No 10Yes
PopulationConverted character_record Logic Token, Level 15No 10Yes
DistanceCapital character_record Logic Token, Level 15No 10Yes
Attribute character_record Attribute Description, Logic Token, Level 10Yes 10Yes
RemainingMPPercentage character_record Logic Token, Level 15No 10Yes
I_RemainingMPPercentage None Logic Token, Level 15No 10Yes
I_RemainingArmyMPPercentage None Logic Token, Level 15No 10Yes
I_CharacterCanMove None Logic Token, Level 15No 10Yes
NoActionThisTurn character_record None 15No 10Yes
CharacterNumTurnsIdle character_record Logic Token, Level 15No 10Yes
AgentType character_record Character Type 15No 10Yes
TrainedAgentType character_record Character Type 15No 10Yes
DisasterType event_type Event Type 15No 10Yes
CultureType character_record Culture Type 10Yes 10Yes
CharFactionType character_record Character Faction Type 10Yes 10Yes
OriginalFactionType character_record Original Faction Type 10Yes 10Yes
OriginalCultureType character_record Original Culture Type 10Yes 10Yes
IsGeneral character_record None 10Yes 10Yes
IsAdmiral character_record None 10Yes 10Yes
EndedInSettlement character_record None 10Yes 10Yes
IsFactionLeader character_record None 10Yes 10Yes
IsFactionHeir character_record None 10Yes 10Yes
IsMarried character_record None 10Yes 10Yes
AtSea character_record None 10Yes 10Yes
I_AtSea None Character 15No 10Yes
InEnemyLands character_record None 10Yes 10Yes
InBarbarianLands character_record None 10Yes 10Yes
InUncivilisedLands character_record None 10Yes 10Yes
IsBesieging character_record None 10Yes 10Yes
IsUnderSiege character_record None 10Yes 10Yes
I_WithdrawsBeforeBattle None None 10Yes 10Yes
EndedInEnemyZOC character_record None 10Yes 10Yes
AdviseAction character_action_advice Logic Token, Action 15No 10Yes
I_CharacterTypeNearCharacterType None Faction, Character Type, Distance in Squares, Faction, Character Type 15No 10Yes
I_CharacterTypeNearTile None Faction, Character Type, Distance in Squares, Position X, Position Y 15No 10Yes
TradingResource character_record None 15No 10Yes
OnResource character_record None 15No 10Yes
TradingMonopoly character_record None 15No 10Yes
TradingExotic character_record None 15No 10Yes
HighestAttAdjacentChar character_record Attribute Type, Character Type, Logic Token, Level 15No 10Yes
HighestAttSharedChar character_record Attribute Type, Character Type, Logic Token, Level 15No 10Yes
SpouseAttribute character_record Attribute Description, Logic Token, Level 15No 10Yes
SpouseTrait character_record Trait Description, Logic Token, Level 10Yes 10Yes
PopulationOwnReligion character_record Logic Token, Percentage 15No 10Yes
PopulationHeretic character_record Logic Token, Percentage 15No 10Yes
ProbabilitySuccess character_record Logic Token, Level 15No 10Yes
IsOnCrusade character_record None 15No 10Yes
IsOnJihad character_record None 15No 10Yes
IsTargetOnCrusade target_character_record None 15No 10Yes
IsTargetOnJihad target_character_record None 15No 10Yes
I_CrusadingGeneralSelected None None 15No 10Yes
I_JihadGeneralSelected None None 15No 10Yes
CharacterReligion character_record Religion 10Yes 10Yes
TimeInRegion character_record Logic Token, Turns 15No 10Yes
TimeSinceReligion character_record Logic Token, Religion Percentage, Logic Token, Turns 15No 10Yes
TimeSinceHeresy character_record Logic Token, Heresy Percentage, Logic Token, Turns 15No 10Yes
TimeWithArmy character_record Logic Token, Turns 15No 10Yes
FatherAnc character_record Ancillary Name 15No 10Yes
GeneralWithAncKilled character_record Ancillary Name 10Yes 10Yes
HasAncType character_record Ancillary Name 15No 10Yes
I_CharacterExists None Character Name 15No 10Yes
RansomType ransom_type Ransom Type 15No 10Yes
NumCapturedSoldiers captured_faction_info Logic Token, Level 15No 10Yes
NumCapturedCharacters captured_faction_info Logic Token, Level 15No 10Yes
RansomAmount captured_faction_info Logic Token, Level 15No 10Yes
I_FactionLeaderTrait None Faction Type, Trait Description, Logic Token, Level 10Yes 10Yes
I_FactionLeaderAttribute None Faction Type, Attribute Description, Logic Token, Level 10Yes 10Yes
FactionType faction Faction Type 10Yes 10Yes
TargetFactionType target_faction Faction Type 10Yes 10Yes
FactionReligion faction Faction Religion 10Yes 10Yes
TargetFactionReligion target_faction Faction Religion 10Yes 10Yes
FactionCultureType faction Culture Type 10Yes 10Yes
TargetFactionCultureType target_faction Culture Type 10Yes 10Yes
TrainedUnitCategory unit Unit Category 15No 10Yes
TrainedUnitClass unit Unit Class 15No 10Yes
UnitCategory unit Logic Token, Unit Category 15No 10Yes
MedianTaxLevel faction Logic Token, Tax Level 10Yes 10Yes
ModeTaxLevel faction Logic Token, Tax Level 10Yes 10Yes
I_ModeTaxLevel None Faction, Logic Token, Tax Level 10Yes 10Yes
MissionSuccessLevel mission_success_level Logic Token, Success Level 15No 10Yes
MissionSucceeded None None 15No 10Yes
MissionFactionTargetType faction Faction Type 10Yes 10Yes
MissionCultureTargetType faction, character_record Culture Type 10Yes 10Yes
DiplomaticStanceFromCharacter character_record Faction Type, Logic Token, Stance 10Yes 10Yes
DiplomaticStanceFromFaction faction Faction Type, Logic Token, Stance 10Yes 10Yes
DiplomaticStanceFactions faction, target_faction Logic Token, Stance 10Yes 10Yes
DiplomaticStanceWithNewPope faction, target_faction Logic Token, Stance 15No 10Yes
FactionEqualsTarget faction, target_faction None 10Yes 10Yes
FactionHasAllies faction None 10Yes 10Yes
FactionBuildingExists faction Logic Token, Level 15No 10Yes
FactionScore faction Score Type, Logic Token, Faction Type 15No 10Yes
FactionHasRank faction None 15No 10Yes
FactionScorePercent faction Score Type, Logic Token, Level 15No 10Yes
FactionScoreRank faction Score Type, Logic Token, Level 15No 10Yes
FactionIncome faction Logic Token, Level 15No 10Yes
I_LosingMoney None None 15No 10Yes
SupportCostsPercentage faction Logic Token, Percentage 15No 10Yes
Treasury faction Logic Token, Quantity 15No 10Yes
OnAWarFooting faction None 15No 10Yes
I_FactionBesieging None Faction Type 15No 10Yes
I_FactionBesieged None Faction Type 15No 10Yes
I_NumberOfSettlements None Faction Type, Logic Token, # of Settlements 15No 10Yes
I_NumberOfHeirs None Faction Type, Logic Token, # of Heirs 15No 10Yes
I_FactionNearTile None Faction, Distance in Squares, Position X, Position Y 15No 10Yes
SettlementsTaken faction Logic Token, Quantity 10Yes 10Yes
BattlesFought faction Logic Token, Quantity 10Yes 10Yes
BattlesWon faction Logic Token, Quantity 10Yes 10Yes
BattlesLost faction Logic Token, Quantity 10Yes 10Yes
DefensiveSiegesFought faction Logic Token, Quantity 10Yes 10Yes
DefensiveSiegesWon faction Logic Token, Quantity 10Yes 10Yes
OffensiveSiegesFought faction Logic Token, Quantity 10Yes 10Yes
OffensiveSiegesWon faction Logic Token, Quantity 10Yes 10Yes
IsFactionAIFrozen faction None 15No 10Yes
I_IsFactionAIFrozen None faction 15No 10Yes
MissionID mission_details Mission ID 15No 10Yes
PaybackID mission_details Payback ID 15No 10Yes
IsCrusadeTargetFaction target_faction None 15No 10Yes
IsJihadTargetFaction target_faction None 15No 10Yes
MissionTimeRemaining faction Logic Token, Turns Remaining 15No 10Yes
I_PlayerHasMission None Mission ID 15No 10Yes
I_PlayerHasMissionType None Source ID 15No 10Yes
I_PlayerHasPreferati None None 15No 10Yes
I_PlayerCanBuyVotes None None 15No 10Yes
FactionwideAncillaryExists character_record Ancillary Name, Logic Token 15No 10Yes
TransgressionName resource_description Transgression Name 15No 10Yes
ForgivenessName resource_description Forgiveness Name 15No 10Yes
FactionStanding faction, target_faction Logic Token, Quantity 10Yes 10Yes
GlobalStanding faction Logic Token, Quantity 10Yes 10Yes
FactionExcommunicated faction None 15No 10Yes
TargetFactionExcommunicated target_faction None 15No 10Yes
FactionUndiscovered faction None 15No 10Yes
I_IsFactionUndiscovered None Faction 15No 10Yes
FactionAILabel faction Faction Type, AI Label 15No 10Yes
I_FactionAILabel None Faction Type, AI Label 15No 10Yes
NumFactionMarriages faction, target_faction Logic Token, # of Marriages 10Yes 10Yes
I_UnitExists None Faction, Unit Type 15No 10Yes
RandomPercent None Logic Token, Percentage 10Yes 10Yes
TrueCondition None None 10Yes 10Yes
EventCounterType event_counter Event Name 15No 10Yes
EventCounter event_counter Logic Token, Integer 15No 10Yes
I_EventCounter None Event Name, Logic Token, Integer 15No 10Yes
IsPositionInRect sm_position Left Top [Width Height] 15No 10Yes
IsRegionOneOf region_id Region Label 15No 10Yes
IsTargetRegionOneOf target_region_id Region Label 15No 10Yes
IsCrusade crusade None 15No 10Yes
IsJihad crusade None 15No 10Yes
CrusadeOutcome crusade Crusade Outcome 15No 10Yes
I_CrusadeInProgress None None 15No 10Yes
I_JihadInProgress None None 15No 10Yes
I_CrusadeTimeLeft None Logic Token, Integer 15No 10Yes
I_JihadTimeLeft None Logic Token, Integer 15No 10Yes
I_TurnsSinceLastCrusade None Logic Token, Integer 15No 10Yes
I_TurnsSinceLastJihad None Logic Token, Integer 15No 10Yes
Religion List Religion 10Yes 10Yes
TargetReligion target_religion Religion 10Yes 10Yes
I_WorldwideAncillaryExists character_record Anicllary Name, Logic Token 15No 10Yes
CampaignDifficulty faction Logic Token, Difficulty 15No 10Yes
BattleDifficulty faction Logic Token, Difficulty 15No 10Yes
I_CampaignNumTimePlay None Logic Token, Integer 10Yes 10Yes
I_FirstTimePlay None Faction Type 10Yes 10Yes
I_AdvisorVerbosityLevel None Logic Token, Integer 10Yes 10Yes
I_HotseatEnabled None None 10Yes 10Yes
SettlementName settlement Settlement Name 10Yes 10Yes
TargetSettlementName target_settlement Settlement Name 10Yes 10Yes
GovernorBuildingExists character_record Logic Token, Building Description 15No 10Yes
SettlementBuildingExists settlement Logic Token, Building Description 15No 10Yes
BuildingFinishedByGovernor character_record, prior_build Logic Token, Building Description 15No 10Yes
SettlementBuildingFinished prior_build Logic Token, Building Description 15No 10Yes
NumBuildingsCompleted prior_build Building Description, Logic Token, Test Level 15No 10Yes
NumBuildingsCompletedFaction faction, prior_build Building Description, Logic Token, Test Level 15No 10Yes
GovernorPlugInExists character_record Logic Token, Plug-In 15No 10Yes
GovernorPlugInFinished character_record, prior_build Logic Token, Plug-In 15No 10Yes
GovernorTaxLevel character_record Logic Token, Tax Level 10Yes 10Yes
SettlementTaxLevel settlement Logic Token, Tax Level 10Yes 10Yes
GovernorInResidence settlement None 15No 10Yes
GovernorLoyaltyLevel character_record Logic Token, Value 10Yes 10Yes
GovernorAttribute settlement Attribute, Logic Token, Level 10Yes 10Yes
SettlementLoyaltyLevel settlement Logic Token, Level 10Yes 10Yes
RiotRisk settlement Logic Token, Percentage 10Yes 10Yes
BuildingQueueIdleDespiteCash settlement None 10Yes 10Yes
TrainingQueueIdleDespiteCash settlement None 10Yes 10Yes
I_SettlementExists None Settlement Name 15No 10Yes
I_SettlementOwner None Settlement Name, Logic Token, Faction Type 15No 10Yes
AdviseFinancialBuild best_finance_option Build Type 15No 10Yes
AdviseBuild advised_build Build Type 15No 10Yes
AdviseRecruit None Unit Type 15No 10Yes
BuildingName resource_description Building Level Name 15No 10Yes
SettlementPopulationMaxedOut settlement None 15No 10Yes
SettlementPopulationTooLow settlement None 15No 10Yes
SettlementAutoManaged settlement Automanagement Type 15No 10Yes
PercentageOfPopulationInGarrison settlement None 15No 10Yes
GarrisonToPopulationRatio settlement None 15No 10Yes
HealthPercentage settlement None 15No 10Yes
SettlementHasPlague settlement None 15No 10Yes
IsFortGarrisoned fort None 15No 10Yes
IsSettlementGarrisoned settlement None 15No 10Yes
IsSettlementRioting settlement None 15No 10Yes
I_NumberUnitsInSettlement None Settlement, Unit Type, Logic Token, Quantity 15No 10Yes
NeighbourReligion settlement Settlement Religion, Logic Token, Level 15No 10Yes
IsCrusadeTarget settlement None 15No 10Yes
IsJihadTarget settlement None 15No 10Yes
IsRegionCrusadeTarget region_id None 15No 10Yes
IsRegionJihadTarget region_id None 15No 10Yes
SettlementType settlement Castle/City 15No 10Yes
TargetSettlementType settlement Castle/City 15No 10Yes
I_SettlementUnderSiege None Settlement Name 15No 10Yes
I_UnitsToRetrain None Settlement Name, Logic Token, Number 15No 10Yes
CharacterIsLocal character_record None 10Yes 10Yes
TargetCharacterIsLocal target_character_record None 10Yes 10Yes
SettlementIsLocal settlement None 10Yes 10Yes
TargetSettlementIsLocal settlement None 10Yes 10Yes
RegionIsLocal region_id None 10Yes 10Yes
TargetRegionIsLocal region_id None 10Yes 10Yes
ArmyIsLocal army None 10Yes 10Yes
TargetArmyIsLocal army None 10Yes 10Yes
FactionIsLocal faction None 10Yes 10Yes
I_LocalFaction None Faction 10Yes 10Yes
TargetFactionIsLocal target_faction None 10Yes 10Yes
I_TurnNumber None Logic Token, Turn Number 10Yes 10Yes
I_MapName None Map File Name 10Yes 10Yes
I_ThreadCount None Advice Thread, Logic Token, Value 15No 10Yes
I_IsTriggerTrue None Trigger Name 15No 10Yes
IncomingMessageType event Message Identifier 15No 10Yes
I_AdvisorVerbosity None Logic Token, Advisor Verbosity 10Yes 10Yes
I_CharacterSelected None Character Name 15No 10Yes
I_AgentSelected None Character Type 15No 10Yes
I_SettlementSelected None Settlement Name 15No 10Yes
ShortcutTriggered resource_description Element ID, Function ID 10Yes 10Yes
I_AdvancedStatsScrollIsOpen None None 15No 10Yes
I_ScrollOpen None Scroll ID 15No 10Yes
I_MessageNeedsResolving None None 15No 10Yes
ButtonPressed resource_description Button ID 10Yes 10Yes
UIElementVisible resource_description UI Element ID 15No 10Yes
ScrollOpened resource_description Scroll ID 10Yes 10Yes
ScrollClosed resource_description Scroll ID 10Yes 10Yes
ScrollAdviceRequested resource_description Scroll ID 10Yes 10Yes
I_CompareCounter None Script Counter, Value 10Yes 10Yes
I_TimerElapsed None Logic Token, Timer ID, Duration 10Yes 10Yes
I_SoundPlaying None Sound Event Tag 10Yes 10Yes
I_AdvisorSpeechPlaying None None 10Yes 10Yes
I_AdvisorVisible None None 10Yes 10Yes
Identifier Trigger Requirements Parameters Battle Strat


The following conditions only work for modifications running off the "kingdoms.exe" from the Medieval II: Total War - Kingdoms Expansion.


Kingdoms DocuDemons - Conditions Table
Identifier Trigger Requirements Parameters Battle Strat
PercentageUnitAttribute character_record Unit Attribute 10Yes 10Yes
CharacterAge character_record Logic Token, Age 15No 10Yes
IsFactionAIControlled None None 15No 10Yes
I_IsFactionAIControlled None Faction 15No 10Yes
IsSettlementExported settlement None 15No 10Yes
IsFortExported fort None 15No 10Yes
Identifier Trigger Requirements Parameters Battle Strat


Template: |Identifier||Trigger Requirements||Parameters||Battle||Strat

Parameters

This section is incomplete

Descriptions for how each parameter is determined and input will be added, and some similar may be combined. The current order is the order taken from the CA DocuDemons, they will be more properly organized by category/usage later on.


None - To Be Amended


Logic Token - To Be Amended


Test Value - To Be Amended


Percentage - To Be Amended


Army Index - To Be Amended


Alliance Index - To Be Amended


Unit Category - To Be Amended


Faction Type - To Be Amended


Culture Type - To Be Amended


Conflict Type - To Be Amended


Success Type - To Be Amended


Siege Engine Class - To Be Amended


Tower Defence Type - To Be Amended


Wall Level - To Be Amended


Building Type - To Be Amended


Gate Strength - To Be Amended


Unit Class - To Be Amended


Siege Engine Category - To Be Amended


Formation - To Be Amended


Special Ability - To Be Amended


Mount Class - To Be Amended


Action Status - To Be Amended


Attack Direction - To Be Amended


Hide Type - To Be Amended


Unit Label - To Be Amended


Other Unit Label - To Be Amended


Position X - To Be Amended


Position Y - To Be Amended


Distance - To Be Amended


Location 1 - To Be Amended


Location 2 - To Be Amended


Attacker Unit Label - To Be Amended


Target Unit Label - To Be Amended


Radius - To Be Amended


Group Label - To Be Amended


Target Group Label - To Be Amended


Unit Match Type - To Be Amended


Attribute - To Be Amended


Value(float) - To Be Amended


Trait Description - To Be Amended


Level - To Be Amended


Character Type - To Be Amended


Event Type - To Be Amended


Character Faction Type - To Be Amended


Original Faction Type - To Be Amended


Original Culture Type - To Be Amended


Character - To Be Amended


Action - To Be Amended


Distance In Squares - To Be Amended


Religion - To Be Amended


Turns - To Be Amended


Religion Percentage - To Be Amended


Heresy Percentage - To Be Amended


Ancillary Name/Type - To Be Amended


Ransom Type - To Be Amended


Age - To Be Amended


Tax Level - To Be Amended


Success Level - To Be Amended


Stance - To Be Amended


Score Type - To Be Amended


Quantity - To Be Amended


Mission ID - To Be Amended


Turns Remaining - To Be Amended


Source ID - To Be Amended


Transgression Name - To Be Amended


Forgiveness Name - To Be Amended


AI Label - To Be Amended


Event Name - To Be Amended


PositionInRect - To Be Amended


Crusade Outcome - To Be Amended


Difficulty - To Be Amended


Settlement Name - To Be Amended


Building Description - To Be Amended


Plug-In - To Be Amended


Loyalty Value - To Be Amended


Build Type - To Be Amended


Auto-management Type - To Be Amended


Castle/City - To Be Amended


Advice Thread - To Be Amended


Trigger Name - To Be Amended


Message Identifier - To Be Amended


Element ID - To Be Amended


Function ID - To Be Amended


Scroll ID - To Be Amended


Button ID - To Be Amended


UI Element ID - To Be Amended


Script Counter - To Be Amended


Timer ID - To Be Amended


Duration - To Be Amended


Sound Event Tag - To Be Amended


Unit Attribute - To Be Amended


See Also

External Links