TR_m4_NPC_Saylenus_Ramaril
TR_Mainland.esm
Variables
8
Local Variables
disableOnce
control
controlQ
NoLore
TR_Map
T_Local_NPC
T_Local_NoLore
checkonce
Source
1Begin TR_m4_NPC_Saylenus_Ramaril
2
3short disableOnce
4short control
5short controlQ
6short NoLore
7short TR_Map
8short T_Local_NPC
9short T_Local_NoLore
10short checkonce
11
12; This truly wonderful piece of code is a result of trying to account for both supported engines that have completely
13; different issues with this particular quest. I would like to thank Todd Howard for making this possible by implementing
14; a compiler that for some reason decides that X, in fact, does not equal X
15if ( disableOnce == 0 )
16 if ( GetJournalIndex "TR_m4_wil_SkeletonWizard" < 5 )
17 set checkonce to ( player->GetArmorType 0 )
18 if ( ( player -> GetArmorType 0 ) != checkonce )
19 Disable
20 set disableOnce to 1
21 return;Vanilla
22 else
23 PositionCell 0 0 0 0 SaylenusHoldingCell
24 AIWander 0 0 0 0
25 set disableOnce to 2
26 return;Openmw
27 endif
28 endif
29elseif ( disableOnce == 1 )
30 if ( GetJournalIndex TR_m4_wil_SkeletonWizardC != 100 )
31 if ( CellChanged )
32 Enable
33 Disable
34 endif
35 else
36 set disableOnce to 3
37 endif
38endif
39
40
41if ( TR_Map )
42 return
43endif
44
45set TR_Map to 4
46
47end