Scripts

TR_m3_MT_WritUghash

TR_Mainland.esm
Variables 9
Local Variables
CL1
CL2
TR_map
control
controlQ
OnPCHitMe
nolore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m3_MT_WritUghash 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 OnPCHitMe 13short nolore 14short T_Local_NPC 15short T_Local_NoLore 16 17; if you hit him without talking to him first, the duel is off and everyone is hostile again 18if ( GetJournalIndex TR_m3_MT_Ughash >= 10 ) 19 if ( GetJournalIndex TR_m3_MT_Ughash <= 20 ) 20 if ( OnPCHitMe == 1 ) 21 if ( GetTarget Player == 0 ) 22 StartCombat Player 23 "TR_m4_Duluk gro-Mashnar"->StartCombat Player 24 "TR_m4_Durz gra-Dula"->StartCombat Player 25 "TR_m4_Bhagrun gro-Mazku"->setfight 100 26 endif 27 Set OnPCHitMe to 0 28 endif 29 endif 30endif 31 32set TR_map to 4 33 34if ( MenuMode == 1 ) 35 return 36endif 37 38if ( CellChanged == 1 ) 39 set CL1 to GetPCCrimeLevel 40endif 41 42if ( OnDeath == 1 ) 43 ; when we are killed... 44 45 if ( GetJournalIndex TR_m3_MT_Ughash > 0 ) 46 ; ... and if the player has a writ for us... 47 48 set CL2 to GetPCCrimeLevel 49 if ( CL2 > CL1 ) 50 ; ... append a journal entry if the execution is seen ... 51 Player->Journal TR_m3_MT_Ughash 80 52 else 53 ; ... append a journal entry if the execution is NOT seen ... 54 Player->Journal TR_m3_MT_Ughash 90 55 endif 56 endif 57endif 58 59End