Scripts

T_ScCrea_KagoutiRandomScale

Tamriel_Data.esm
Variables 3
Local Variables
DoOnce
RandNum
NewScale
Source
1begin T_ScCrea_KagoutiRandomScale 2; Gives kagouti a scale between 0.85 and 1.15. 3; Inspired by the scripts used by PirateLord for the Creatures mod. 4 5short DoOnce 6float RandNum 7float NewScale 8 9if ( DoOnce == 1 ) 10 return 11endif 12 13set RandNum to Random 300 14set RandNum to ( RandNum - 150 ) 15set NewScale to ( 1 + ( RandNum / 1000 ) ) 16setScale NewScale 17 18set DoOnce to 1 19 20end