Scripts

TR_m4_NPC_Kilgore

TR_Mainland.esm
Variables 7
Local Variables
doOnce
TR_Map
control
controlQ
randomvalue
T_Local_NPC
NoLore
Source
1Begin TR_m4_NPC_Kilgore 2 3short doOnce 4short TR_Map 5short control 6short controlQ 7short randomvalue 8short T_Local_NPC 9short NoLore 10 11if ( GetDistance, player >= 1024 ) 12 return 13endif 14 15if ( GetHealth <= 1 ) 16 return 17endif 18 19if ( doOnce == 0 ) 20 if ( SayDone == 1 ) 21 if ( GetDistance, player <= 333 ) 22 if ( randomvalue >= 66 ) 23 Say, "vo\w\m\Idl_WM005.mp3", "Loud humming." 24 set doOnce to 1 25 endif 26 endif 27 endif 28endif 29 30if ( GetDistance, player >= 1000 ) 31 set randomvalue to random, 100 32 set doOnce to 0 33 return 34endif 35 36if ( TR_Map == 4 ) 37 return 38endif 39 40set TR_Map to 4 41 42 43end