Scripts

BILL_MT_WritTherana

Morrowind.esm
Variables 5
Local Variables
CL1
CL2
wearingClothes
doOnce
noLore
Source
1Begin BILL_MT_WritTherana 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 9 10;for HT_NewClothes 11short wearingClothes 12short doOnce 13short noLore 14 15if ( MenuMode == 1 ) 16 return 17endif 18 19if ( doOnce == 0 ) 20 if ( wearingClothes == 1 ) 21 ForceGreeting 22 Set doOnce to 1 23 endif 24endif 25 26if ( CellChanged == 1 ) 27 ;keep her from going off over and over. 28 StopCombat 29 SetFight 30 30 set CL1 to GetPCCrimeLevel 31endif 32 33if ( OnDeath == 1 ) 34 ; when we are killed... 35 36 Set TelvanniDead to ( TelvanniDead + 1 ) 37 ;for Telvanni Hortator... 38 39 if ( GetJournalIndex MT_WritTherana > 0 ) 40 ; ... and if the player has a writ for us... 41 42 set CL2 to GetPCCrimeLevel 43 if ( CL2 > CL1 ) 44 ; ... append a journal entry if the execution is seen ... 45 Player->Journal MT_WritTherana 80 46 else 47 ; ... append a journal entry if the execution is NOT seen ... 48 Player->Journal MT_WritTherana 90 49 endif 50 endif 51endif 52 53End