TR_m1_Q59_PR_script_1
TR_Mainland.esm
Variables
1
Local Variables
state
Source
1Begin TR_m1_Q59_PR_script_1
2
3short state
4
5if ( GetJournalIndex TR_m1_PT_PackRats < 190 )
6 if ( GetHealth <= 0 )
7 if ( GetJournalIndex TR_m1_PT_PackRats > 10 )
8 Journal TR_m1_PT_PackRats 190
9 endif
10 endif
11endif
12
13if ( state == -1 )
14 Return
15elseif ( state == 0 )
16 if ( GetJournalIndex TR_m1_PT_PackRats > 10 )
17 AddSpell "witbane"
18 set state to 1
19 endif
20 return
21elseif ( state == 1 )
22 if ( GetCommonDisease == 0 )
23 if ( GetJournalIndex TR_m1_PT_PackRats < 25 )
24 Journal TR_m1_PT_PackRats 25
25 set state to -1
26 endif
27 endif
28endif
29
30End