TR_m3_NPC_OE_Caros_Cocceius
TR_Mainland.esm
Variables
8
Local Variables
greetonce
TR_Map
control
controlQ
T_Local_NPC
NoLore
T_Local_NoLore
timer
Source
1Begin TR_m3_NPC_OE_Caros_Cocceius
2
3; Script on NPC "TR_m3_Caros Cocceius" for quest TR_m3_OE_CourtWizard.
4
5short greetonce
6float timer
7
8short TR_Map
9short control
10short controlQ
11short T_Local_NPC
12short NoLore
13short T_Local_NoLore
14
15if ( MenuMode )
16 return
17endif
18
19if ( OnDeath )
20 if ( GetJournalIndex TR_m3_OE_CourtWizard >= 30 )
21 if ( GetJournalIndex TR_m3_OE_CourtWizard < 100 )
22 Journal TR_m3_OE_CourtWizard 310
23 StartScript TR_m3_OE_MageChallenge_End
24 endif
25 endif
26endif
27
28; greeting for each challenge
29; greetonce is set in "N-th challenge" topics
30if ( greetonce == 1 )
31 set timer to ( timer + GetSecondsPassed )
32 if ( timer >= 2 )
33 set greetonce to 0
34 set timer to 0
35 ForceGreeting
36 endif
37endif
38
39if ( TR_Map )
40 return
41endif
42
43set TR_Map to 3
44
45end