TR_m3_q_5_ind_guard_script
TR_Mainland.esm
Variables
5
Local Variables
T_Local_NPC
NoLore
nohit
TR_Map
timer
Source
1begin TR_m3_q_5_ind_guard_script
2
3;island lookout's corpse for q-5
4
5float timer
6short T_Local_NPC
7short NoLore
8short nohit
9short TR_Map
10
11;make him look like he drowned
12if ( timer == 0 )
13 PlayGroup "SwimDeathknockdown", 1
14 set timer to 1
15elseif ( timer >= 1 )
16 if ( MenuMode == 0 )
17 ;weird animation glitches without the following. animation apparently needs to be played while the body is living.
18 set timer to ( timer + getsecondspassed )
19 if ( timer > 4 )
20 modhealth -1000
21 set timer to -1
22 endif
23 endif
24endif
25
26
27;update journal when player activates
28if ( OnActivate == 1 )
29 if ( GetJournalIndex "TR_m3_Go_Guard1" >= 60 )
30 activate
31 elseif ( GetJournalIndex "TR_m3_Go_Guard1" >= 10 )
32 Journal "TR_m3_Go_Guard1" 60
33 activate
34 else
35 addtopic "dead body"
36 Journal "TR_m3_Go_Guard1" 65
37 activate
38 endif
39endif
40
41end