TR_m2_q_38_s_purebonemeal
TR_Mainland.esm
Variables
1
Local Variables
bon_controlvar
Source
1begin TR_m2_q_38_s_purebonemeal
2
3 ; governs the behavior of the noncontaminated bonemeal - disabling/enabling etc.
4
5 short bon_controlvar
6
7 ; NoPickUp
8 if ( OnActivate == 1 )
9 return
10 endif
11
12
13 if ( bon_controlvar == 0 )
14 ; disable to start
15 Disable
16 set bon_controlvar to 1
17 elseif ( bon_controlvar == 1 )
18 ; enable at appropriate point *if* the ritual has not been sabotaged
19 if ( TR_m2_q_38_status >= 6 )
20 if ( TR_m2_q_38_sabotage <= 2 )
21 Enable
22 set bon_controlvar to 2
23 else
24 set bon_controlvar to 3
25 endif
26 endif
27 elseif ( bon_controlvar == 2 )
28 if ( TR_m2_q_38_status >= 100 )
29 ; it hits status 100 when you leave the Temple
30 ; 140 when the ritual is over after you declined
31 Disable
32 set bon_controlvar to 3
33 return
34 endif
35 elseif ( bon_controlvar == 3 )
36 if ( GetDisabled == 1 )
37 SetDelete 1
38 return
39 endif
40 endif
41end