TR_m4_NPC_Tryr
TR_Mainland.esm
Variables
12
Local Variables
TR_Map
control
controlQ
NoLore
beatdownControl
OnPCHitMe
teleportOnce
teleportMilur
controlA
controlB
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m4_NPC_Tryr
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 NoLore
10short beatdownControl
11short OnPCHitMe
12short teleportOnce
13short teleportMilur
14short controlA
15short controlB
16short T_Local_NPC
17short T_Local_NoLore
18
19if ( controlQ < 0 )
20 Return
21endif
22
23if ( TR_m4_FG_UshuFree == 2 )
24 if ( GetDisabled == 0 )
25 disable
26 endif
27endif
28
29if ( TR_m4_FG_UshuFree >= 3 )
30 if ( GetDisabled == 1 )
31 enable
32 endif
33endif
34
35if ( teleportMilur == 0 )
36 if ( GetJournalIndex "TR_m4_FG_UshuKur4" >= 150 )
37 if ( GetJournalIndex "TR_m4_FG_UshuKur4" <= 200 )
38 "TR_m4_Milur"->PositionCell -222 2209 -1480 500 "Ushu-Kur Mine" ; TR_m4_MARK_Milur
39 "TR_m4_Milur"->AiWander 0 0 10 5 0 10 0 0 0
40 set teleportMilur to 1
41 endif
42 endif
43endif
44
45if ( MenuMode == 1 )
46 return
47endif
48
49if ( OnDeath == 1 )
50 if ( GetJournalIndex "TR_m4_FG_UshuKur4" >= 10 )
51 if ( GetJournalIndex "TR_m4_FG_UshuKur4" <= 150 )
52 Journal "TR_m4_FG_UshuKur4B" 75
53 set teleportOnce to -1
54 endif
55 endif
56 set controlQ to -1
57 set TR_m4_UshuKur_D_Tryr.disableOnce to -1
58endif
59
60if ( GetJournalIndex "TR_m4_FG_UshuKur4B" == 40 )
61 if ( beatdownControl == 0 )
62 SetAlarm 0
63 "TR_m4_Milur"->SetAlarm 0
64 "TR_m4_Algus"->SetAlarm 0
65 set beatdownControl to 1
66 elseif ( beatdownControl == 1 )
67 if ( OnPCHitMe == 1 )
68 StopCombat
69 SetFight 0
70 set OnPCHitMe to 0
71 endif
72 if ( GetHealth < 75 )
73 set beatdownControl to 2
74 ForceGreeting
75 endif
76 endif
77endif
78
79if ( GetJournalIndex "TR_m4_FG_UshuKur4B" == 50 )
80 SetAlarm 90
81 "TR_m4_Milur"->SetAlarm 90
82 "TR_m4_Algus"->SetAlarm 90
83endif
84
85if ( TR_Map == 4 )
86 return
87endif
88
89set TR_Map to 4
90
91End