Scripts

druleneScript

Morrowind.esm
Variables 2
Local Variables
corkyFollow
counter
Source
1Begin druleneScript 2 3;Checks for the player to sell "Corky." 4;Corky must be nearby (1000 units) and must be following the player. 5;Might need some revision... 6 7short corkyFollow 8;same name as llovyn andus' thing... is 1 when Corky meets sale conditions 9 10float counter 11;keeps the distance check overhead at a minimum 12 13if ( corkyFollow == 2 ) 14 Return 15 ;set in dialogue when you "sell" Corky... script does not run again 16endif 17 18if ( counter < 3 ) 19 Set counter to ( counter + GetSecondsPassed ) 20endif 21 22Set counter to 0 23 24if ( "guar_llovyn_unique"->GetCurrentAiPackage == 3 ) 25 if ( GetDistance "guar_llovyn_unique" < 1000 ) 26 Set corkyFollow to 1 27 endif 28endif 29 30End