# event_chain-file of second Empire Tutorial - created by Peter Schwanemann, 2007

[global]
packet_version=2

[Beginning]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Start Trigger
event_00=Diary page 5
event_01=Show forests
event_02=Goto forests
event_03=Diary page 5.1
event_04=Reveal Objective 1 - Woodeconomy
event_05=Goto stones
event_06=Diary page 5.2
event_07=Reveal Objective 2 - Quarry
current_event=0
state=init

[Woodeconomy]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Lumberjack complete
conditional_element_01=AND
conditional_element_02=trigger
conditional_element_02_data=Forester complete
conditional_element_03=AND
conditional_element_04=trigger
conditional_element_04_data=Sawmill complete
event_00=Set Woodeconomy-trigger
current_event=0
state=init

[Woodeconomy complete]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Woodeconomy complete
event_00=Diary page 6
current_event=0
state=init

[Quarry complete]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Quarry complete
event_00=Diary page 7
current_event=0
state=init

[Shipparts]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Saledus found shipparts
event_00=Show Shipparts
event_01=Goto Shipparts
event_02=Saledus 1
event_03=Enable Barracks
event_04=Enable Sentry
event_05=Reveal Objective 3 - military-buildings
event_06=Goto Home
current_event=0
state=init

[Marblemountains]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Military buildings complete
event_00=Show Marblemountains
event_01=Goto Marblemountains
event_02=Saledus 2
event_03=Reveal Objective 4 - marblemine
event_04=Enable Marblemine
event_05=Enable Deep Marblemine
current_event=0
state=init

[View other mountains]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Discovered mountains
event_00=Show Coalmountains
event_01=Show Ironmountains
event_02=Goto Mountains middle
event_03=Saledus 3
event_04=Reveal Objective 5 - mining
event_05=Enable Coalmine
event_06=Enable Deep Coalmine
event_07=Enable Oremine
event_08=Enable Deep Oremine
event_09=Enable Stonemason
event_10=Enable Toolsmith
event_11=Enable Armoursmith
event_12=Enable Weaponsmith
event_13=Enable Smelter
event_14=Enable Burner
event_15=Goto Home
current_event=0
state=init

[Mining infrastructure]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Stonemason complete
conditional_element_01=AND
conditional_element_02=trigger
conditional_element_02_data=Toolsmith complete
conditional_element_03=AND
conditional_element_04=trigger
conditional_element_04_data=Armoursmith complete
conditional_element_05=AND
conditional_element_06=trigger
conditional_element_06_data=Smelter complete
conditional_element_07=AND
conditional_element_08=trigger
conditional_element_08_data=Ironmine complete
conditional_element_09=AND
conditional_element_10=trigger
conditional_element_10_data=Coalmine complete
conditional_element_11=OR
conditional_element_12=trigger
conditional_element_12_data=Burner complete
conditional_element_13=AND
conditional_element_14=trigger
conditional_element_14_data=Weaponsmith complete
event_00=Set Mining infrastructure-trigger
current_event=0
state=init

[One or more mines complete]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Marblemine complete
conditional_element_01=OR
conditional_element_02=trigger
conditional_element_02_data=Coalmine complete
conditional_element_03=OR
conditional_element_04=trigger
conditional_element_04_data=Ironmine complete
event_00=Amalea 1
event_01=Enable Fisher
event_02=Enable Well
event_03=Enable Farm
event_04=Enable Brewery
event_05=Enable Vineyard
event_06=Enable Winery
event_07=Enable Mill
event_08=Enable Bakery
event_09=Enable Hunter
event_10=Enable Piggery
event_11=Enable Tavern
event_12=Enable Inn
event_13=Reveal Objective 8 - food
current_event=0
state=init

[Food infrastructure]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Tavern complete
conditional_element_01=AND
conditional_element_02=trigger
conditional_element_02_data=Brewery complete
conditional_element_03=AND
conditional_element_04=trigger
conditional_element_04_data=Fisher complete
conditional_element_05=OR
conditional_element_06=trigger
conditional_element_06_data=Hunter complete
conditional_element_07=OR
conditional_element_08=trigger
conditional_element_08_data=Piggery complete
conditional_element_09=OR
conditional_element_10=trigger
conditional_element_10_data=Bakery complete
event_00=Set Food infrastructure-trigger
current_event=0
state=init

[Barbarians found]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Marblemine complete
conditional_element_01=AND
conditional_element_02=trigger
conditional_element_02_data=Ironmine complete
conditional_element_03=OR
conditional_element_04=trigger
conditional_element_04_data=Marblemine complete
conditional_element_05=AND
conditional_element_06=trigger
conditional_element_06_data=Coalmine complete
conditional_element_07=OR
conditional_element_08=trigger
conditional_element_08_data=Burner complete
conditional_element_09=OR
conditional_element_10=trigger
conditional_element_10_data=Ironmine complete
conditional_element_11=AND
conditional_element_12=trigger
conditional_element_12_data=Coalmine complete
conditional_element_13=OR
conditional_element_14=trigger
conditional_element_14_data=Burner complete
event_00=Show Barbarians 1
event_01=Show Barbarians 2
event_02=Goto Barbarians
event_03=Diary page 8
event_04=Reveal Objective 6 - bigger military buildings
event_05=Enable Outpost
event_06=Enable Barrier
event_07=Enable Tower
current_event=0
state=init

[Bigger military buildings]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Outpost complete
conditional_element_01=OR
conditional_element_02=trigger
conditional_element_02_data=Barrier complete
conditional_element_03=OR
conditional_element_04=trigger
conditional_element_04_data=Tower complete
event_00=Set Bigger military building-trigger
current_event=0
state=init

[Command for Attack]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Mining infrastructure complete
conditional_element_01=AND
conditional_element_02=trigger
conditional_element_02_data=Bigger military building complete
event_00=Diary page 9
event_01=Enable Fortress
event_02=Reveal Objective 7 - Attack
current_event=0
state=init

[Victory]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Victory
event_00=Diary page 10
event_01=7 days later
event_02=Diary page 11
current_event=0
state=init

#Optional (not needed for winning)
[Amalea 2]
repeating=false
conditional_element_00=trigger
conditional_element_00_data=Tavern complete
event_00=Amalea 2
current_event=0
state=init
