Scripts

TR_m7_Tharkul_gro_Sham_Script

TR_Mainland.esm
Variables 8
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
doOnce
hostile
OnPCHitMe
Source
1Begin TR_m7_Tharkul_gro_Sham_Script 2; This short script is there to allow dialogue to be filtered on the TR_Map local variable, 3; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be 4; appropriate to the location the NPC is. 5 6short TR_Map 7short control 8short controlQ 9short T_Local_NPC 10short NoLore 11short doOnce 12short hostile 13short OnPCHitMe 14 15; attacking after distraction or during the fight will turn the whole crew hostile 16if ( hostile == 1 ) 17 set hostile to 2 18 setfight 90 19 startcombat player 20 return 21endif 22 23if ( getJournalIndex, "TR_m7_HO_HighAndDry_a" >= 20 ) 24 if ( hostile == 0 ) 25 if ( OnPCHitMe == 1 ) 26 set "TR_m7_Qaidilwe".hostile to 1 27 set hostile to 1 28 set "TR_m7_Drissa Vendil".hostile to 1 29 endif 30 endif 31endif 32 33; move him from the ship and disable wandering if you distracted the crew 34if ( doOnce == 0 ) 35 if ( getJournalIndex, "TR_m7_HO_HighAndDry" == 110 ) 36 set doOnce to 1 37 stopcombat 38 aiwander 0 0 0 39 positioncell 16862 -260061 201 19600 "Hlan Oek" 40 endif 41endif 42 43; set a global var for death if it still matters 44if ( OnDeath == 1 ) 45 if ( TR_m7_HO_HighAndDry_CrewKilled == 0 ) 46 set TR_m7_HO_HighAndDry_CrewKilled to 1 47 endif 48endif 49 50if ( TR_Map == 7 ) 51 return 52endif 53 54set TR_Map to 7 55 56End