Scripts

pemenieScript

Morrowind.esm
Variables 2
Local Variables
nolore
pemannoy
Source
1Begin pemenieScript 2 3short nolore 4short pemannoy 5 6if ( GetJournalIndex "MV_TraderAbandoned" >= 100 ) 7 Return 8 ;Do nothing if the quest is over 9endif 10 11if ( GetJournalIndex "MV_TraderAbandoned" < 10 ) 12 Return 13 ;Do nothing if the quest is over 14endif 15 16if ( OnDeath == 1 ) 17 if ( GetJournalIndex "MV_TraderAbandoned" >= 10 ) 18 Journal "MV_TraderAbandoned" 110 19 Return 20 ;sets journal when he dies. 21 endif 22endif 23 24 25if ( GetPCCell, "Gnaar Mok" == 1 ) 26 if ( GetCurrentAIPackage == 3 ) 27 if ( GetDistance Player < 512 ) 28 Journal "MV_TraderAbandoned" 90 29 ForceGreeting 30 AiWander 0 0 0 60 40 20 0 0 0 0 0 0 31 ;sets journal if he's following you in Molag Mar within 512 units 32 ;note that this does NOT stop him from following you, etc. 33 endif 34 endif 35endif 36 37End