TR_m3_FelmsVelk_sc
TR_Mainland.esm
Variables
3
Local Variables
crimelevel
OnPCHitMe
crimetime
Source
1Begin TR_m3_FelmsVelk_sc
2
3;makes attacking the velk a crime
4
5float crimetime
6short crimelevel
7short OnPCHitMe
8
9if ( OnPCHitMe )
10 set OnPCHitMe to 0
11 if ( GetTarget, player )
12 else ;not already in combat
13 if ( crimetime < 10 )
14 set crimelevel to GetPCCrimeLevel
15 set crimetime to 1
16 endif
17 "TR_m3_FelmsVelk_crime"->explodespell "open"
18 StartCombat, player
19 ;not SetFight 90
20 endif
21endif
22
23If ( OnDeath )
24 set crimelevel to GetPCCrimeLevel
25 "TR_m3_FelmsVelk_crime"->explodespell "open"
26 ;triggers crime if detected
27 set crimetime to 10
28Endif
29
30If ( crimetime >= 10 )
31 set crimetime to ( crimetime + getsecondspassed )
32 if ( crimetime >= 10.3 )
33 set crimetime to 0
34 "TR_m3_FelmsVelk_crime"->Lock 100
35 if ( GetPCCrimeLevel > crimelevel )
36 ;if crime was detected, top off bounty
37 ModPCCrimeLevel 445
38 if ( GetPCRank "T_Mw_HouseIndoril" > 2 )
39 else
40 if ( "TR_m3_Gols_Llarvys"->saydone )
41 if ( "TR_m3_Gols_Llarvys"->GetFight < 55 )
42 "TR_m3_Gols_Llarvys"->Say, "vo\d\m\Hlo_DM027.mp3", "Filthy s'wit!"
43 endif
44 endif
45 "TR_m3_Gols_Llarvys"->ModFight 15
46 "TR_m3_Gols_Llarvys"->ModDisposition -20
47 "TR_m3_Volyn Drothril"->ModDisposition -15
48 endif
49 endif
50 endif
51elseIf ( crimetime >= 1 )
52 set crimetime to ( crimetime + getsecondspassed )
53 if ( crimetime >= 1.3 )
54 set crimetime to 0
55 "TR_m3_FelmsVelk_crime"->Lock 100
56 if ( GetPCCrimeLevel > crimelevel )
57 ;if crime was detected, top off bounty
58 ModPCCrimeLevel 45
59 if ( GetPCRank "T_Mw_HouseIndoril" > 2 )
60 else
61 if ( "TR_m3_Gols_Llarvys"->saydone )
62 if ( "TR_m3_Gols_Llarvys"->GetFight < 35 )
63 "TR_m3_Gols_Llarvys"->Say, "vo\d\m\Fle_DM006.mp3", "No! Get away!"
64 endif
65 endif
66 "TR_m3_Gols_Llarvys"->ModFight 5
67 "TR_m3_Gols_Llarvys"->ModDisposition -10
68 endif
69 endif
70 endif
71endif
72
73End