TR_m7_Ns_MovingHouse_UhamSC
TR_Mainland.esm
Variables
2
Local Variables
doonce
control
Source
1begin TR_m7_Ns_MovingHouse_UhamSC
2
3short doonce
4short control
5
6if ( menumode )
7 return
8endif
9
10if ( CellChanged == 1 ) ; resurrect Uhammaku if player kills him before quest is started
11 if ( GetJournalIndex "TR_m7_Ns_MovingHouse" < 30 )
12 if ( GetHealth < 1 )
13 set control to 0 ; for if you interacted with his skull
14 Resurrect
15 endif
16 endif
17endif
18
19if ( getjournalindex "TR_m7_Ns_MovingHouse" == 32 )
20 if ( doonce == 0 )
21 placeatme "T_Glb_Var_SummonFX" 1 0 0
22 disable
23 set doonce to 1
24 endif
25endif
26
27if ( ondeath )
28 if ( getjournalindex "TR_m7_Ns_MovingHouse" >= 10 ) ; stops resurrection of Uhammaku and enables ondeath handling for edge case of player accepting quest and then killing Uhammaku
29 journal "TR_m7_Ns_MovingHouse" 34 ; if the player kills Uhammaku after starting the quest trigger banishing journal
30 endif
31endif
32
33end