Scripts

staceyScript

Morrowind.esm
Variables 3
Local Variables
enamorInChest
doneKey
nolore
Source
1Begin staceyScript 2 3;script on Gentleman Jim Stacey 4 5;local for dialogue which is set if the player puts Enamor and the note in the right chest. 6; appended to by BILL, 20010913 7 8short enamorInChest 9short doneKey 10short nolore 11 12;don't process when disabled 13if ( GetDisabled == 1 ) 14 return 15endif 16 17if ( GetJournalIndex TG_KillHardHeart >= 100 ) 18 if ( CellChanged == 1 ) 19 Disable 20 Return 21 ; make him disappear when you're the Master Thief 22 endif 23else 24 if ( OnDeath == 1 ) 25 if ( doneKey == 0 ) 26 AddItem Skeleton_key 1 27 ; make him drop the Skeleton key if the player doesn't already have it 28 ; can't be in his inventory, re: pickpocket, lest the player get it twice 29 set doneKey to 1 30 endif 31 endif 32endif 33 34if ( GetJournalIndex TG_SS_Enamor >= 100 ) 35 return 36endif 37 38if ( "de_p_chest_02salynsaret"->GetItemCount "Glass_Dagger_Enamor" >= 1 ) 39 if ( "de_p_chest_02salynsaret"->GetItemCount "bk_Enamor" >= 1 ) 40 Set enamorInChest to 1 41 endif 42endif 43 44End