Scripts

TR_m2_q_12_GalseahCultists

TR_Mainland.esm
Variables 5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m2_q_12_GalseahCultists 2;q2-12-Misc Avenge the Knights 3;new 2018 script to remove getdeadcount from old script TR_m2_q_12_Counter 4;Keeps track of the number of dead Cultists within Galseah. 5 6short TR_Map 7short control 8short controlQ 9short T_Local_NPC 10short NoLore 11 12if ( OnDeath ) 13 if ( getDeadCount "TR_m2_O_Joricas Rosard" > 0 ) 14 if ( getDeadCount TR_m2_O_Faricel > 0 ) 15 if ( getDeadCount TR_m2_O_Gorthas > 0 ) 16 if ( getDeadCount "TR_m2_O_Avala Garvas" > 0 ) 17 if ( getDeadCount "TR_m2_O_Tirisar Garvas" > 0 ) 18 if ( GetJournalIndex "TR_m2_Wil_AvengeKnights" <= 40 ) 19 if ( GetJournalIndex "TR_m2_Wil_AvengeKnights" == 40 ) 20 Journal TR_m2_Wil_AvengeKnights 140 21 Player->ModReputation 1 22 return 23 elseif ( GetJournalIndex "TR_m2_Wil_AvengeKnights" == 20 ) 24 if ( Player->GetDistance "TR_m2_Tarbus Norin" < 7500 ) 25 Journal, TR_m2_Wil_AvengeKnights, 70 26 elseif ( Player->GetDistance "TR_m2_Merias Tolode" < 7500 ) 27 Journal, TR_m2_Wil_AvengeKnights, 70 28 else 29 Journal, TR_m2_Wil_AvengeKnights, 110 30 endif 31 endif 32 "TR_m2_Tarbus Norin"->AIWander 0,0,0,20,60,30,0 33 "TR_m2_Merias Tolode"->AIWander 0,0,0,20,30,60,0 34 ; To ensure they stay put after defeating the cultists 35 endif 36 endif 37 endif 38 endif 39 endif 40 endif 41endif 42 43if ( TR_Map == 2 ) 44 return 45endif 46 47set TR_Map to 2 48 49End