Scripts

TR_m7_MT_WritHagar

TR_Mainland.esm
Variables 8
Local Variables
CL1
CL2
TR_map
control
controlQ
nolore
T_Local_NPC
OnPCHitMe
Source
1Begin TR_m7_MT_WritHagar 2 3short CL1 4short CL2 5short TR_map 6short control 7short controlQ 8short nolore 9short T_Local_NPC 10short OnPCHitMe 11 12set TR_map to 7 13 14if ( MenuMode == 1 ) 15 return 16endif 17 18if ( CellChanged == 1 ) 19 set CL1 to GetPCCrimeLevel 20endif 21 22if ( OnDeath == 1 ) 23 ; when we are killed... 24 25 if ( GetJournalIndex TR_m7_MT_Hagar > 0 ) 26 ; ... and if the player has a writ for us... 27 28 set CL2 to GetPCCrimeLevel 29 if ( CL2 > CL1 ) 30 ; ... append a journal entry if the execution is seen ... 31 Player->Journal TR_m7_MT_Hagar 80 32 else 33 ; ... append a journal entry if the execution is NOT seen ... 34 Player->Journal TR_m7_MT_Hagar 90 35 endif 36 endif 37endif 38 39; This section is to have the DB assassin Faldorn join the fight 40if ( OnPCHitMe == 1 ) 41 if ( GetJournalIndex TR_m7_MT_Hagar > 0 ) 42 if ( controlQ == 0 ) 43 "TR_m7_Faldorn"->StartCombat "TR_m7_Hagar Stone-Hand" 44 set OnPCHitMe to 0 45 set controlQ to 1 46 endif 47 endif 48endif 49 50End