Scripts

TR_m4_MT_Almsewrit

TR_Mainland.esm
Variables 8
Local Variables
CL1
CL2
TR_map
control
controlQ
OnPCHitMe
nolore
T_Local_NPC
Source
1Begin TR_m4_MT_Almsewrit 2; log a journal entry for each successful 'hit' the player performs for the Morag Tong 3 4; script location: should be placed on each and every target of the Morag Tong, with 5; changes to reflect the person it is running on. 6 7short CL1 8short CL2 9short TR_map 10short control 11short controlQ 12short OnPCHitMe 13short nolore 14short T_Local_NPC 15 16if ( GetJournalIndex TR_m4_MT_Almse == 10 ) 17 if ( OnPCHitMe == 1 ) 18 if ( GetTarget Player == 0 ) 19 StartCombat Player 20 endif 21 if ( TR_m4_q_mt_almse_guard->GetTarget Player == 0 ) 22 TR_m4_q_mt_almse_guard->startcombat player 23 endif 24 Set OnPCHitMe to 0 25 endif 26endif 27 28set TR_map to 4 29 30if ( MenuMode == 1 ) 31 return 32endif 33 34if ( CellChanged == 1 ) 35 set CL1 to GetPCCrimeLevel 36endif 37 38if ( OnDeath == 1 ) 39 ; when we are killed... 40 41 if ( GetJournalIndex TR_m4_MT_Almse > 0 ) 42 ; ... and if the player has a writ for us... 43 44 set CL2 to GetPCCrimeLevel 45 if ( CL2 > CL1 ) 46 ; ... append a journal entry if the execution is seen ... 47 Player->Journal TR_m4_MT_Almse 80 48 else 49 ; ... append a journal entry if the execution is NOT seen ... 50 Player->Journal TR_m4_MT_Almse 90 51 endif 52 endif 53endif 54 55End