Scripts

TR_m2_q_29_2_Ass1Script

TR_Mainland.esm
Variables 6
Local Variables
doOnce
soundfx
dead
TR_Map
T_Local_NPC
nolore
Source
1begin TR_m2_q_29_2_Ass1Script 2 3;this is a script for "TR_m2_q_29_2_assassin1" in Telomas Manor 4 5short doOnce 6short soundfx 7short dead 8short TR_Map 9short T_Local_NPC 10short nolore 11 12if ( TR_Map != 2 ) 13 set TR_Map to 2 14endif 15 16if ( GetDistance, player > 400 ) 17 if ( GetDistance, player < 650 ) 18 if ( MenuMode == 0 ) 19 if ( soundfx == 0 ) 20 if ( GetSoundPlaying "Body Fall Medium" == 0 ) 21 PlaySoundVP, "Weapon Swish" 0.2, 1.0 22 set soundfx to 1 23 elseif ( soundfx == 1 ) 24 if ( GetSoundPlaying "Weapon Swish" == 0 ) 25 PlaySoundVP, "Light Armor Hit" 0.2, 1.0 26 set soundfx to 2 27 endif 28 elseif ( soundfx == 2 ) 29 if ( GetSoundPlaying "Light Armor Hit" == 0 ) 30 PlaySoundVP, "Body Fall Medium" 0.2, 1.0 31 set soundfx to 0 32 endif 33 endif 34 endif 35 endif 36 endif 37endif 38 39if ( GetDistance, player <= 256 ) 40 if ( doOnce == 0 ) 41 StartCombat, player 42 SetFight 100 43 set doOnce to 1 44 set soundfx to 5 45 endif 46endif 47 48if ( OnDeath == 1 ) 49 set dead to 1 50elseif ( dead >= 1 ) 51 if ( GetJournalIndex "TR_m2_FG_Irano2" < 25 ) 52 if ( dead < 5 ) ;GetDeadCount can lag 53 set dead to ( dead + 1 ) 54 else 55 set dead to 1 56 if ( GetDeadCount "TR_m2_q_29_2_assassin2" >= 1 ) 57 Journal "TR_m2_FG_Irano2" 25 58 "TR_m2_Pilu Telomas"->PlaceAtMe "TR_m2_q_29_2_assassin3" 1 1 1 59 endif 60 endif 61 endif 62endif 63 64end