Scripts

TR_m1_q_FakeSlavesHitmenBScript

TR_Mainland.esm
Variables 5
Local Variables
nolore
doonce
T_Local_NPC
T_Local_NoLore
TR_map
Source
1Begin TR_m1_q_FakeSlavesHitmenBScript 2 3; modified for performance (getDeadCount is slow when the savegame is large) -- arvisrend, 26 Jul 2012 4 5short nolore 6short doonce 7short T_Local_NPC 8short T_Local_NoLore 9Short TR_map 10 11if ( TR_map != 1 ) 12 Set TR_map to 1 13endif 14 15If ( GetJournalIndex TR_m1_RR_MQ_5 < 20 ) 16 If ( GetDisabled == 0 ) 17 disable 18 Endif 19 return 20Else 21 If ( GetDisabled ) 22 enable 23 Endif 24Endif 25 26if ( OnDeath ) 27 if ( GetDeadCount TR_m1_q_ArgonianHitman1 >= 1 ) 28 if ( GetDeadCount TR_m1_q_ArgonianHitman2 >= 1 ) 29 if ( GetJournalIndex TR_m1_RR_MQ_5 < 40 ) 30 Journal "TR_m1_RR_MQ_5" 35 31 endif 32 endif 33 endif 34endif 35 36if ( onActivate ) 37 If ( GetJournalIndex TR_m1_RR_MQ_5 < 40 ) 38 if ( GetDeadCount TR_m1_q_ArgonianHitman1 >= 1 ) 39 if ( GetDeadCount TR_m1_q_ArgonianHitman2 >= 1 ) 40 Journal TR_m1_RR_MQ_5 36 41 Endif 42 Endif 43 Endif 44 Activate 45Endif 46 47If ( doonce == 0 ) 48 if ( GetDeadCount TR_m1_q_ArgonianHitman1 == 0 ) 49 if ( getJournalIndex "TR_m1_RR_MQ_5" >= 40 ) 50 set doonce to 1 51 endif 52 return 53 endif 54 if ( GetDistance "TR_m1_q_DresSlaverFake" >= 3000 ) 55 TR_m1_q_DresSlaverFake->disable 56 AiWander 0,0,0,60,30,10,0,0,0,0,0,0 57 Journal "TR_m1_RR_MQ_5" 40 58 ForceGreeting 59 set doonce to 1 60 Endif 61endif 62 63end