Scripts

TR_m7_MT_WritMilena

TR_Mainland.esm
Variables 8
Local Variables
CL1
CL2
TR_map
control
controlQ
nolore
T_Local_NPC
OnPCHitMe
Source
1Begin TR_m7_MT_WritMilena 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_Milena > 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_Milena 80 32 else 33 ; ... append a journal entry if the execution is NOT seen ... 34 Player->Journal TR_m7_MT_Milena 90 35 endif 36 endif 37endif 38 39if ( OnPCHitMe == 1 ) 40 if ( controlQ == 0 ) 41 "TR_m7_Caldana"->StartCombat Player 42 set controlQ to 1 43 set OnPCHitMe to 0 44 endif 45endif 46 47End