TR_m3_TT_JalorIndoPowderScript
TR_Mainland.esm
Variables
1
Local Variables
messageOnce
Source
1begin TR_m3_TT_JalorIndoPowderScript
2
3short messageOnce
4
5if ( MenuMode )
6 return
7endif
8
9if ( GetJournalIndex "TR_m3_TT_Lloris1" >= 30 )
10 if ( GetDisabled == 0 )
11 disable
12 endif
13elseif ( GetJournalIndex "TR_m3_TT_Lloris1" >= 20 )
14 if ( GetDisabled )
15 enable
16 endif
17elseif ( GetDisabled == 0 )
18 disable
19endif
20
21if ( GetDisabled == 0 )
22 if ( GetDistance player <= 256 )
23 if ( messageOnce == 0 )
24 MessageBox "You are feeling a little nauseous."
25 set messageOnce to 1
26 endif
27 endif
28endif
29
30if ( OnActivate == 1 )
31 Journal "TR_m3_TT_Lloris1" 30
32 player->additem "TR_m3_TT_JalorPowder02" 1
33 disable
34endif
35
36end