TR_m3_O_Akindal_SCN
TR_Mainland.esm
Variables
4
Local Variables
trappedOnce
T_Local_NPC
TR_Map
NoLore
Source
1Begin TR_m3_O_Akindal_SCN
2
3; Script on NPC TR_m3_O_Akindal (the boss in Dulandos).
4
5short trappedOnce
6short T_Local_NPC
7short TR_Map
8short NoLore
9
10if ( TR_Map != 3 )
11 set TR_Map to 3
12endif
13
14if ( trappedOnce == 0 )
15 if ( Player->getpos x > 5300 )
16 if ( Player->getpos x < 7000 )
17 set trappedOnce to 1
18 TR_m3_O_Akindal->Startcombat, Player
19 set TR_m3_Dulandos_exitdoor1.trapped to 1
20 TR_m3_Dulandos_exitdoor1->lock, 50
21 set TR_m3_Dulandos_exitdoor2.trapped to 1
22 TR_m3_Dulandos_exitdoor2->lock, 50
23 set TR_m3_Dulandos_exitdoor3.trapped to 1
24 TR_m3_Dulandos_exitdoor3->lock, 50
25 set TR_m3_Dulandos_exitdoor4.trapped to 1
26 TR_m3_Dulandos_exitdoor4->lock, 50
27 TR_m3_Dulandos_exitdoor1->playsound3d "LockedDoor"
28 TR_m3_Dulandos_exitdoor2->playsound3d "LockedDoor"
29 endif
30 endif
31else
32 if ( TR_m3_Dulandos_exitdoor4.trapped == 1 )
33 if ( TR_m3_Dulandos_exitdoor3.trapped == 1 )
34 DisableTeleporting
35 Set T_Glob_GetTeleportingDisabled to 1
36 if ( ScriptRunning, "TR_m3_DulandosNoTeleport" )
37 else
38 player->Startscript "TR_m3_DulandosNoTeleport"
39 endif
40 endif
41 endif
42endif
43
44End