TR_m3_q_A9_relicboxscript
TR_Mainland.esm
Variables
1
Local Variables
doOnce
Source
1Begin TR_m3_q_A9_relicboxscript
2
3short doOnce
4
5if ( doOnce < 3 )
6
7; disable relinquary if the quest isn't far enough yet
8If ( doOnce == 0 )
9 If ( GetJournalIndex "TR_m3_Stranded" < 30 )
10 Disable
11 set doOnce to 1
12 Endif
13Endif
14
15; enable it back when the time is right
16If ( doOnce == 1 )
17 If ( GetJournalIndex "TR_m3_Stranded" >= 30 )
18 Enable
19 set doOnce to 2
20 Endif
21Endif
22
23; progress the quest when player picks the relic
24if ( player->getitemcount "TR_m3_Sa_relic" >= 1 )
25 Journal TR_m3_Stranded 40
26 ; short-circuit this script once the relic is picked
27 set doOnce to 3
28Endif
29
30endif
31
32
33End