rigmorScript
Bloodmoon.esm
Variables
6
Local Variables
wolfchosen
exilechosen
rigmormove
nolore
timer
timer2
Source
1Begin rigmorScript
2
3short wolfchosen
4short exilechosen
5short rigmormove
6float timer
7float timer2
8short nolore
9
10;BM_Trial 90 means exile portion of script will run
11;BM_Trial 95 means sacrifice portion of script will run
12;Rigmor will be on follow package until the player speaks with Heart-Fang
13;He will then either stand there until time delay and cell change, or he will walk to the wolf pen and get eaten. i hope
14
15if ( MenuMode == 1 )
16 return
17endif
18
19if ( GetJournalIndex BM_Trial < 70 )
20 return
21endif
22
23if ( GetJournalIndex BM_Trial == 100 )
24 set exilechosen to 1
25endif
26
27if ( GetPCCell "Skaal Village, The GreatHall" == 1 )
28 return
29endif
30
31if ( GetJournalIndex BM_Trial == 105 )
32 set wolfchosen to 1
33endif
34
35if ( OnDeath == 1 )
36 "BM_wolf_caenlorn1"->AiWander 128 0 0 30 10 60
37 "BM_wolf_caenlorn2"->AiWander 128 0 0 60 30 10
38 "BM_wolf_caenlorn3"->AiWander 128 0 0 10 60 30
39endif
40
41set timer2 to ( timer2 + GetSecondsPassed )
42
43if ( timer2 < 2 )
44 return
45endif
46
47;this part will move him to the pen, send him in, and make wolves attack him
48if ( wolfchosen == 1 )
49 if ( rigmormove == 0 )
50 AiTravel -159112 209704 2976 180
51 ;MessageBox "DOING FIRST TRAVEL"
52 set rigmormove to 1
53
54 elseif ( rigmormove == 1 )
55 if ( GetAiPackageDone == 1 )
56 if ( GetDistance common_ring_05_BM_UNI < 128 )
57 set rigmormove to 2
58 endif
59 endif
60
61 elseif ( rigmormove == 2 )
62 AiTravel -159960 209424 2965 0
63 ;"BM_wolf_caenlorn1"->AiWander 0 0 0 0 0 0
64 ;"BM_wolf_caenlorn2"->AiWander 0 0 0 0 0 0
65 ;"BM_wolf_caenlorn3"->AiWander 0 0 0 0 0 0
66 ;MessageBox "DOING SECOND TRAVEL"
67 set rigmormove to 3
68
69 elseif ( rigmormove == 3 )
70 if ( GetDistance active_BM_rigmor <= 100 )
71 ;MessageBox "SECOND TRAVEL DONE"
72 set rigmormove to 4
73 endif
74
75 elseif ( rigmormove == 4 )
76 set timer to ( timer + getsecondspassed )
77 if ( timer >= 2 )
78 ;ex_S_fence_gate_uni->Activate
79 ;Player->Say "Vo\Misc\rigmorattack.wav" "Arrrrgh!"
80 "BM_wolf_caenlorn1"->StartCombat "rigmor halfhand"
81 "BM_wolf_caenlorn2"->StartCombat "rigmor halfhand"
82 "BM_wolf_caenlorn3"->StartCombat "rigmor halfhand"
83 set rigmormove to 5
84 ;set wolfchosen to 2
85 endif
86
87 elseif ( rigmormove == 5 )
88 if ( GetAIPackageDone == 1 )
89 set wolfchosen to 2
90 endif
91 endif
92
93endif
94
95
96
97
98
99
100
101
102End rigmorScript