Scripts

teris

Morrowind.esm
Variables 3
Local Variables
invivec
state
nolore
Source
1Begin teris 2 3 short invivec 4 short state 5 short nolore 6 7 if ( MenuMode == 1 ) 8 Return 9 endif 10 11 if ( state == -1 ) 12 return 13 endif 14 15 if ( GetJournalIndex "MV_RichTrader" >= 100 ) 16 if ( GetJournalIndex "MV_RichTrader" <=105 ) 17 Return 18 ;Do nothing if the quest is over 19 endif 20 endif 21 22 if ( GetJournalIndex "MV_RichTrader" < 10 ) 23 Return 24 ;Do nothing if the quest hasn't begun 25 endif 26 27 if ( GetCurrentAiPackage != 3 ) 28 return 29 endif 30 31 if ( OnDeath == 1 ) 32 Journal "MV_RichTrader" 110 33 Return 34 ;sets journal when he dies. 35 endif 36 37 If ( GetPCCell, "Vivec" == 1 ) 38 if ( invivec == 0 ) 39 set invivec to 1 40 Journal "MV_RichTrader" 80 41 ForceGreeting 42 "guar_rollie_unique"->AiWander 128,0,0,60,30,10,0,0,0,0,0,0 43 set invivec to -1 44 endif 45 endif 46 47 if ( state == 0 ) 48 if ( GetDistance, "In_velothismall_ndoor_Agrippina" <= 512 ) 49 Journal "MV_RichTrader" 90 50 ForceGreeting 51 AiWander 0,0,0,60,30,10,0,0,0,0,0,0 52 set state to -1 53 endif 54 endif 55 ;sets journal when he gets near his destination 56 57end