OvisScript
Tribunal.esm
Variables
6
Local Variables
lockout
enabled
distancecheck
nolore
doonce
timer
Source
1Begin OvisScript
2
3float timer
4short lockout
5short enabled
6short distancecheck
7short nolore
8short doonce
9
10if ( MenuMode == 1 )
11 Return
12endif
13
14if ( GetJournalIndex MS_Summoner >= 1 )
15 Return
16endif
17
18if ( "drathas reyas".change != 1 )
19 if ( doonce = 0 )
20 Disable
21 active_chimney_smoke02_ovis1->Disable
22 active_chimney_smoke02_ovis2->Disable
23 set doonce to 1
24 endif
25elseif ( "drathas reyas".change == 1 )
26 StopScript, VelasCellCheck
27
28 if ( GetDistance Player <= 750 )
29 if ( lockout == 0 )
30 set distancecheck to 1
31 set lockout to 1
32 endif
33 endif
34
35 if ( distancecheck == 1 )
36 if ( enabled == 0 )
37 Enable
38 active_chimney_smoke02_ovis1->Enable
39 active_chimney_smoke02_ovis2->Enable
40 PlaySound, steam
41 set enabled to 1
42 set distancecheck to 2
43 endif
44 endif
45
46 if ( enabled == 1 )
47 set timer to timer + GetSecondsPassed
48 if ( timer >= 2 )
49 active_chimney_smoke02_ovis1->Disable
50 active_chimney_smoke02_ovis2->Disable
51 if ( lockout == 1 )
52 ForceGreeting
53 StartCombat Player
54 SetFight 90
55 SetDisposition 0
56 set lockout to 2
57 set enabled to 2
58 endif
59 endif
60 endif
61endif
62
63if ( OnDeath == 1 )
64 Journal "MS_Summoner" 1
65endif
66
67End