Ok so basically heres the trigger that doesnt seem to work:
-
a village is conquered
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Owner of (Dying unit)) Not equal to (Owner of (Killing unit))
-
Or - Any (Conditions) are true
-
Conditions
-
((Unit-type of (Dying unit)) Equal to Landlord's Dwelling) or ((Unit-type of (Dying unit)) Equal to Chieftan's Hut)
-
(Unit-type of (Dying unit)) Equal to Royal Palace
-
(Unit-type of (Dying unit)) Equal to Imperial Capital
-
-
-
-
Actions
-
Set villageontheline = (Dying unit)
-
For each (Integer A) from 1 to 102, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(village[(Integer A)] is alive) Equal to True
-
(Owner of village[(Integer A)]) Equal to (Owner of (Dying unit))
-
-
Then - Actions
-
Set villagehappiness[(Integer A)] = (villagehappiness[(Integer A)] - 4)
-
For each (Integer A) from 1 to 102, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(village[(Integer A)] is alive) Equal to True
-
(Owner of village[(Integer A)]) Equal to (Owner of (Dying unit))
-
villagehappiness[(Integer A)] Less than or equal to 0
-
-
Then - Actions
-
Game - Display to (All players) the text: (One of + ((Name of (Owner of village[(Integer A)])) + 's villages has revolted!))
-
Unit - Change ownership of village[(Integer A)] to Player 11 (Dark Green) and Change color
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
Dialog - Show razeorcapture for (Owner of (Killing unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of living Chieftan's Hut units owned by (Owner of (Dying unit))) Equal to 0
-
(Number of living Landlord's Dwelling units owned by (Owner of (Dying unit))) Equal to 0
-
(Number of living Royal Palace units owned by (Owner of (Dying unit))) Equal to 0
-
(Number of living Ancient Settler units owned by (Owner of (Dying unit))) Equal to 0
-
(Number of living Medieval Settler units owned by (Owner of (Dying unit))) Equal to 0
-
(Number of living Renaissance Settler units owned by (Owner of (Dying unit))) Equal to 0
-
(Number of living Imperial Capital units owned by (Owner of (Dying unit))) Equal to 0
-
-
Then - Actions
-
Game - Display to (All players) the text: A Civilization has ...
-
-
Else - Actions
-
Do nothing
-
-
-
-