Scripts

TR_m7_MT_WritSelvura

TR_Mainland.esm
Variables 7
Local Variables
CL1
CL2
TR_map
control
controlQ
nolore
T_Local_NPC
Source
1Begin TR_m7_MT_WritSelvura 2 3short CL1 4short CL2 5short TR_map 6short control 7short controlQ 8short nolore 9short T_Local_NPC 10 11set TR_map to 7 12 13if ( MenuMode == 1 ) 14 return 15endif 16 17if ( CellChanged == 1 ) 18 set CL1 to GetPCCrimeLevel 19endif 20 21if ( OnDeath == 1 ) 22 ; when we are killed... 23 24 if ( GetJournalIndex TR_m7_MT_Selvura > 0 ) 25 ; ... and if the player has a writ for us... 26 27 set CL2 to GetPCCrimeLevel 28 if ( CL2 > CL1 ) 29 ; ... append a journal entry if the execution is seen ... 30 Player->Journal TR_m7_MT_Selvura 80 31 else 32 ; ... append a journal entry if the execution is NOT seen ... 33 Player->Journal TR_m7_MT_Selvura 90 34 endif 35 endif 36endif 37 38End