Scripts

TR_m4_MT_Tolmsewrit

TR_Mainland.esm
Variables 7
Local Variables
CL1
CL2
TR_map
control
controlQ
nolore
T_Local_NPC
Source
1Begin TR_m4_MT_Tolmsewrit 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 nolore 13short T_Local_NPC 14 15set TR_map to 4 16 17if ( MenuMode == 1 ) 18 return 19endif 20 21if ( CellChanged == 1 ) 22 set CL1 to GetPCCrimeLevel 23endif 24 25if ( OnDeath == 1 ) 26 ; when we are killed... 27 28 if ( GetJournalIndex TR_m4_MT_Tolmse > 0 ) 29 ; ... and if the player has a writ for us... 30 31 set CL2 to GetPCCrimeLevel 32 if ( CL2 > CL1 ) 33 ; ... append a journal entry if the execution is seen ... 34 Player->Journal TR_m4_MT_Tolmse 80 35 else 36 ; ... append a journal entry if the execution is NOT seen ... 37 Player->Journal TR_m4_MT_Tolmse 90 38 endif 39 endif 40endif 41 42End