;This file is generated from the Spreadsheet MTW2-Guilds.xls
;Please modify the spreadsheet and re-xport the data, rather than editing this file directly

;===============================================================
;== GUILD THREAD DATA STARTS HERE ==
;===============================================================

;------------------------------------------
Guild assassins_guild
    building guild_assassins_guild
    levels  100 250 500

;------------------------------------------
Guild thiefs_guild
    building guild_thiefs_guild
    levels  100 250 500




;===============================================================
;== TRIGGER DATA STARTS HERE ==
;===============================================================

;------------------------------------------
Trigger 0001_Guild_Upgraded
    WhenToTest GuildUpgraded


    Guild this s  20 
    Guild this o  10 

;------------------------------------------
Trigger 0002_Guild_Destroyed
    WhenToTest GuildDestroyed


    Guild this s -100 
    Guild this o -20 

;------------------------------------------
Trigger 0003_Settlement_Upgraded
    WhenToTest SettlementUpgraded


    Guild all s  10 

;------------------------------------------
Trigger 0004_Normalise
    WhenToTest SettlementTurnStart

    Condition I_TurnNumber > 25

    Guild all s -1 

;------------------------------------------
Trigger 0010_Recruit_Assassin
    WhenToTest AgentCreated

    Condition TrainedAgentType = assassin

    Guild assassins_guild s  10 

;------------------------------------------
Trigger 0011_Successful_Assassination
    WhenToTest AssassinationMission

    Condition MissionSucceeded

    Guild assassins_guild a  20 

;------------------------------------------
Trigger 0156_Governor_Dread
    WhenToTest SettlementTurnStart

    Condition GovernorAttribute Chivalry < -4

    Guild assassins_guild s  4 
    Guild thiefs_guild s  2 

;------------------------------------------
Trigger 0210_Recruit_Spy
    WhenToTest AgentCreated

    Condition TrainedAgentType = spy

    Guild thiefs_guild s  10 

;------------------------------------------
Trigger 0211_Spy_On_Settlement
    WhenToTest CharacterTurnEnd

    Condition EndedInSettlement
          and not SettlementIsLocal

    Guild thiefs_guild a  2 

;------------------------------------------
Trigger 0212_Spy_Mission
    WhenToTest SpyMission

    Condition MissionSucceeded

    Guild thiefs_guild a  10 

;------------------------------------------
Trigger 0277_Mission_Fail_Assassins_Payback
    WhenToTest LeaderMissionFailed

    Condition PaybackID guild_assassin_payback

    Guild assassins_guild a -10 

;------------------------------------------
Trigger 0278_Mission_Success_Thiefs_Min
    WhenToTest LeaderMissionSuccess

    Condition PaybackID guild_thiefs_min

    Guild thiefs_guild a  10 

;------------------------------------------
Trigger 0279_Mission_Fail_Thiefs_Min
    WhenToTest LeaderMissionFailed

    Condition PaybackID guild_thiefs_min

    Guild thiefs_guild a -10 


