Scripts

TR_m3_SarrugiGang_Sc

TR_Mainland.esm
Variables 11
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
SarrugiGang
control1
control2
doOnce
timer
Source
1Begin TR_m3_SarrugiGang_Sc 2; Sarrugi Sentishi is the leader of a smuggler gang in the cave of Massanud. 3; This script goes on him and all his followers. 4 5;NOTE: Sarrugi having "Dres hair" is intentional. He is a slaver who does business with Dres in Aimrah (implied ex-Dres himself). 6;Also the crown fits his character as "king" of pirates. 7 8short TR_Map 9short control 10short controlQ 11short NoLore 12short T_Local_NPC 13short T_Local_NoLore 14short SarrugiGang ;dialog filtering 15 16short control1 ;sold first hostage, Varuso Veloth 17short control2 ;sold second hostage, Yontus Kushummu 18 19if ( TR_Map != 3 ) 20 set TR_Map to 3 21 "TR_m3_O_Vroge"->Disable ;sent out to kidnap sailors 22endif 23 24if ( MenuMode ) 25 return 26endif 27 28if ( GetHealth == 0 ) 29 return 30endif 31 32;compare vanilla script avSlavehunter 33float timer 34if ( timer == -1 ) 35 return 36elseif ( timer < 2 ) 37 set timer to ( timer + GetSecondsPassed ) 38 return 39endif 40 41set timer to 0 42 43short doOnce 44if ( doOnce == 0 ) 45 if ( "TR_m3_O_Sarrugi"->GetWeaponDrawn ) 46 AIFollow "TR_m3_O_Sarrugi" 0 0 0 0 ;come to his defense 47 set doOnce to 1 48 endif 49endif 50 51if ( GetDistance "TR_m3_Eorric the Knight" > 2048 ) 52 return 53endif 54 55if ( GetLOS "TR_m3_Eorric the Knight" ) 56 StartCombat "TR_m3_Eorric the Knight" ;mercenary come to rescue hostages 57 StartCombat "Player" 58 if ( GetDistance "TR_m3_Yontus Kushummu" < 1024 ) 59 StartCombat "TR_m3_Yontus Kushummu" 60 endif 61 if ( GetDistance "TR_m3_Yak gro-Yam" < 1024 ) 62 StartCombat "TR_m3_Yak gro-Yam" 63 endif 64 SetFight 100 65 set timer to -1 66endif 67 68End