TR_m4_NPC_UshuDead
TR_Mainland.esm
Variables
1
Local Variables
disableOnce
Source
1Begin TR_m4_NPC_UshuDead
2
3;global TR_m4_FG_UshuFree
4
5short disableOnce
6
7if ( OnActivate == 1 )
8 MessageBox "This person appears to be dead -- but not quite."
9endif
10
11if ( disableOnce == 0 )
12 if ( GetDisabled == 0 )
13 disable
14 set disableOnce to 1
15 endif
16endif
17
18if ( disableOnce < 0 )
19 Return
20endif
21
22if ( disableOnce < 0 )
23 Return ; if the actual NPC died, skip the rest.
24endif
25
26if ( TR_m4_FG_UshuFree == 2 )
27 if ( GetDisabled == 1 )
28 enable
29 endif
30endif
31
32if ( TR_m4_FG_UshuFree >= 3 )
33 if ( GetDisabled == 0 )
34 disable
35 endif
36endif
37
38End