TR_m7_HOMenev_Cemaron_Sc
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m7_HOMenev_Cemaron_Sc
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short T_Local_NPC
8short T_Local_NoLore
9
10if ( MenuMode )
11 return
12endif
13
14if ( OnDeath )
15 if ( GetJournalIndex "TR_m7_HO_PassageMenevia" > 0 )
16 if ( GetPCCell "Hlan Oek, Morning Sun Cornerclub" == 1 )
17 "TR_m7_Ceordo Sauvage"->Disable
18 "TR_m7_Jheja-Ri"->Disable
19 "TR_m7_HO_MeneviaBoat_Act"->Disable
20 endif
21 Journal "TR_m7_HO_PassageMenevia" 200
22 endif
23endif
24
25if ( GetJournalIndex "TR_m7_HO_PassageMenevia" < 20 )
26elseif ( GetJournalIndex "TR_m7_HO_PassageMenevia" < 30 )
27 if ( controlQ == 0 )
28 if ( GetDeadCount "TR_m7_Almise Andrelo" == 0 )
29 "TR_m7_Almise Andrelo"->PositionCell 3434 4586 14920 16200 "Hlan Oek, Morning Sun Cornerclub"
30 "TR_m7_Almise Andrelo"->AIWander 0 0 0
31 "TR_m7_Almise Andrelo"->SetHello 0
32 set controlQ to 1
33 else
34 set controlQ to 5
35 endif
36 elseif ( GetDistance player < 250 )
37 if ( controlQ < 4 )
38 set controlQ to 4
39 "TR_m7_Almise Andrelo"->ForceGreeting
40 return
41 endif
42 elseif ( GetDistance player < 550 )
43 if ( controlQ < 3 )
44 set controlQ to 3
45 "TR_m7_Almise Andrelo"->Say "vo\d\f\Hlo_DF043.mp3" "What is it with these thick-headed outlanders?"
46 endif
47 elseif ( GetDistance player < 1000 )
48 if ( controlQ < 2 )
49 set controlQ to 2
50 Say "vo\r\m\Thf_RM005.mp3" "I will not be taken for a fool!"
51 endif
52 endif
53elseif ( GetJournalIndex "TR_m7_HO_PassageMenevia" < 40 )
54 if ( GetPCCell "Hlan Oek" != 1 )
55 if ( controlQ < 10 )
56 set controlQ to 10
57 ForceGreeting
58 return
59 endif
60 elseif ( GetDistance "TR_m7_Ceordo Sauvage" < 400 )
61 if ( player->GetDistance "TR_m7_Ceordo Sauvage" < 600 )
62 Journal "TR_m7_HO_PassageMenevia" 40
63 AIWander 0 0 0
64 Forcegreeting
65 return
66 endif
67 endif
68elseif ( GetJournalIndex "TR_m7_HO_PassageMenevia" >= 100 )
69 if ( CellChanged )
70 Disable
71 "TR_m7_Ceordo Sauvage"->Disable
72 "TR_m7_Jheja-Ri"->Disable
73 "TR_m7_HO_MeneviaBoat_Act"->Disable
74 endif
75endif
76
77if ( TR_Map == 7 )
78 return
79endif
80
81set TR_Map to 7
82
83end