TR_m2_q_29_2_guardscript
TR_Mainland.esm
Variables
4
Local Variables
control
TR_Map
T_Local_NPC
nolore
Source
1begin TR_m2_q_29_2_guardscript
2
3short control
4short TR_Map
5short T_Local_NPC
6short nolore
7
8if ( TR_Map != 2 )
9 set TR_Map to 2
10endif
11
12if ( MenuMode == 1 )
13 return
14endif
15
16if ( control == 0 )
17 if ( GetDistance, player <= 256 )
18 ForceGreeting
19 set control to 1
20 Return
21 endif
22elseif ( control == 2 ) ;go to jail
23 FadeOut 0.1
24 set control to 3
25 PlaySoundVP, "Door Metal Close", 0.4, 1.0
26 StartScript, "TR_m2_q_29_2_jailtime"
27 player->positioncell -523 123 -100 180 "Akamora, Guard Tower" ;TR_m2_MARK_FGIrano2
28 return
29elseif ( control == 3 )
30 if ( GetDisabled == 0 )
31 Disable
32 else
33 SetDelete 1
34 endif
35endif
36
37end