Sotha_Alma
Tribunal.esm
Variables
3
Local Variables
state
OnPCHitMe
timer
Source
1begin Sotha_Alma
2
3;script on Alamexia who appears and talks
4
5short state
6float timer
7short OnPCHitMe
8
9if ( menuMode == 1 )
10 return
11endif
12
13if ( OnDeath ==1 )
14 Journal TR_SothaSil 100
15endif
16
17if ( GetJournalIndex TR_SothaSil >= 70 )
18 return
19endif
20
21if ( "in_sotha_sil00".state == 0 )
22 disable
23 "sotha alma appear effect"->disable
24 return
25endif
26
27if ( state < 100 )
28 if ( OnPCHitMe == 1 )
29 StopCombat Player
30 set OnPCHitMe to 0
31 endif
32endif
33
34if ( state == 0 )
35 if ( GetDistance, Player < 240 )
36 DisablePlayerControls
37 enable
38 PlaySound "conjuration hit"
39 "sotha alma appear effect"->enable
40 set state to 10
41 endif
42
43elseif ( state == 10 )
44 if ( timer < 3 )
45 set timer to ( timer + getsecondspassed )
46 else
47 "sotha alma appear effect"->disable
48 if ( SayDone == 1)
49 Say "vo\misc\tr_almaend_1.mp3" , "Nerevarine. Here it ends. This Clockwork City was to be your death. You were to be my greatest martyr! The heroic Nerevarine, sacrificing all to protect Morrowind from the mad Sotha Sil. But you live! You live!"
50 endif
51 set timer to 0
52 SetHealth 3000
53 set state to 20
54 endif
55
56elseif ( state == 20 )
57 if ( SayDone == 1)
58 Say "vo\misc\tr_almaend_2.mp3" , " Fear not. I will tell the tale myself when this is done. I will tell my people how with your dying breath you proclaimed your devotion to me, the one true god. Your death will end this prophecy and unite my people again under one god, one faith, one rule by my divine law. The puppet king will lay down his arms and bow to my will. Those who do not yield will be destroyed."
59 SetHealth 3000
60 set state to 30
61 endif
62
63
64elseif ( state == 30 )
65 if ( SayDone == 1)
66 Say "vo\misc\tr_almaend_3.mp3" , "The Mazed Band has allowed me to travel to this place. Here, I slew Sotha Sil. Here, I summoned the Fabricants to attack Mournhold. I will be the savior of my people! I alone will be their salvation!"
67 SetHealth 3001
68 set state to 40
69 endif
70
71elseif ( state == 40 )
72 if ( SayDone == 1)
73
74 if ( GetDeadCount, vivec_god > 0 )
75 Say "vo\misc\tr_almaend_4a.mp3" , "But I smell the blood of gods on your hands, Nerevarine. Vivec was a fool. I'm sorry I wasn't there to see his death. But Sotha Sil...he always thought himself our better, shunning us, locking himself in this hole. He spoke not a word as he died. Not a whisper. Even in death, he mocked me with his silence! But I think you will scream, mortal. For now, you face the one true god."
76 else
77 Say "vo\misc\tr_almaend_4b.mp3" , "None may stand in my way. Not you, and certainly not Vivec. He is a poet, a fool. I will deal with him when I have finished with you. And Sotha Sil...he always thought himself our better, shunning us, locking himself in this hole. He spoke not a word as he died. Not a whisper. Even in death, he mocked me with his silence! But I think you will scream, mortal. For now, you face the one true god"
78 endif
79 SetHealth 3000
80 set state to 100
81
82 endif
83
84else ( state == 100 )
85 if ( SayDone == 1)
86 if ( timer < 1 )
87 set timer to ( timer + getsecondspassed )
88 else
89 EnablePlayerControls
90 SetHealth 3000
91 setfight 100
92 set timer to 0
93 set state to -1
94 Journal TR_SothaSil 70
95 endif
96 endif
97endif
98
99end