Scripts

TR_m4_MT_Omaynwrit

TR_Mainland.esm
Variables 10
Local Variables
CL1
CL2
TR_Map
control
control2
control3
controlQ
OnPCHitMe
T_Local_NPC
NoLore
Source
1Begin TR_m4_MT_Omaynwrit 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 7; The local variables control, control2, control3 used during the Omaynis Inn quest 8 9short CL1 10short CL2 11short TR_Map 12short control 13short control2 14short control3 15short controlQ 16short OnPCHitMe 17short T_Local_NPC 18short NoLore 19 20if ( MenuMode == 1 ) 21 return 22endif 23 24if ( CellChanged == 1 ) 25 set CL1 to GetPCCrimeLevel 26endif 27 28if ( OnDeath == 1 ) 29 ; when we are killed... 30 31 if ( GetJournalIndex TR_m4_MT_Omayn > 0 ) 32 ; ... and if the player has a writ for us... 33 34 set CL2 to GetPCCrimeLevel 35 if ( CL2 > CL1 ) 36 ; ... append a journal entry if the execution is seen ... 37 Player->Journal TR_m4_MT_Omayn 80 38 else 39 ; ... append a journal entry if the execution is NOT seen ... 40 Player->Journal TR_m4_MT_Omayn 90 41 endif 42 endif 43endif 44 45if ( TR_Map > 0 ) 46 return 47endif 48 49set TR_map to 4 50 51End