Scripts

TR_m7_Gilner_Herano_scr

TR_Mainland.esm
Variables 11
Local Variables
TR_Map
control
controlQ
T_Local_NoLore
T_Local_NPC
NoLore
controlQ1
controlV
controlX
controlB
controlA
Source
1Begin TR_m7_Gilner_Herano_scr 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_NoLore 10short T_Local_NPC 11short NoLore 12short controlQ1 13short controlV 14short controlX 15short controlB 16short controlA 17 18set TR_Map to 7 19 20; mandatory greeting when you get to the tomb, so you can't ignore him 21 22if ( getJournalIndex TR_m7_HO_TT_07 == 20 ) 23 if ( "TR_m7_Gilner Herano"->GetTarget player == 0 ) 24 if ( getDeadCount "TR_m7_Gilner Herano" == 0 ) 25 if ( GetPCCell "Hlan Oek, Council Club" != 1 ) 26 if ( GetDistance player <= 450 ) 27 ForceGreeting 28 endif 29 endif 30 endif 31 endif 32endif 33 34; if you leave the tomb before doing anything, he will stop being a follower again 35 36if ( getJournalIndex TR_m7_HO_TT_07 == 30 ) 37 if ( getDeadCount "TR_m7_Gilner Herano" == 0 ) 38 if ( GetPCCell "Dadrys Ancestral Tomb" != 1 ) 39 if ( GetDistance player <= 450 ) 40 if ( control == 1 ) 41 ForceGreeting 42 AiWander 0 0 0 60 20 20 20 43 set "TR_m7_HO_TT_07_tomb_int_act".doonce to 0 44 set control to 0 45 endif 46 endif 47 endif 48 endif 49endif 50 51 52; if you go back into the tomb after he attacks you, this is what moves him to HO instead 53 54if ( getJournalIndex TR_m7_HO_TT_07 == 130 ) 55 if ( getDeadCount "TR_m7_Gilner Herano" == 0 ) 56 if ( GetPCCell "Hlan Oek, Council Club" != 1 ) 57 if ( control != 2 ) 58 if ( CellChanged == 1 ) 59 SetFight 30 60 removeitem "chitin cuirass" 1 61 removeitem "chitin greaves" 1 62 removeitem "chitin guantlet - left" 1 63 removeitem "chitin guantlet - right" 1 64 removeitem "chitin pauldron - left" 1 65 removeitem "chitin pauldron - right" 1 66 removeitem "T_De_NetchRogue_Helm_02" 1 67 removeitem "torch" 1 68 removeitem "amulet of recall" 1 69 set "TR_m7_HO_TT_07_cc_act".doonce to 1 70 set control to 2 71 PositionCell, -671, 297, 137, 12000, "Hlan Oek, Council Club" 72 AiWander 0 0 0 60 20 20 20 73 endif 74 endif 75 endif 76 endif 77endif 78 79 80; if you run away from him instead of fighting, he will talk to you in the council club. 81 82if ( getJournalIndex TR_m7_HO_TT_07 >= 130 ) 83 if ( getDeadCount "TR_m7_Gilner Herano" == 0 ) 84 if ( GetPCCell "Hlan Oek, Council Club" == 1 ) 85 if ( GetDistance, player <= 200 ) 86 if ( controlQ1 == 1 ) 87 StopCombat 88 ForceGreeting 89 set controlQ1 to 0 90 endif 91 endif 92 endif 93 endif 94endif 95 96 97; this just puts him back in his usual spot if he happens to move during your return. 98 99if ( getJournalIndex TR_m7_HO_TT_07 > 130 ) 100 if ( getDeadCount "TR_m7_Gilner Herano" == 0 ) 101 if ( GetPCCell "Hlan Oek, Council Club" == 1 ) 102 if ( controlX == 0 ) 103 PositionCell, -671, 297, 137, 12000, "Hlan Oek, Council Club" 104 set controlX to 1 105 endif 106 endif 107 endif 108endif 109 110End