Skip to content

Commit f4f2249

Browse files
Merge pull request #731 from absol89/dev
Updated Vilkas script to be more compatible with general magic effects
2 parents 23e5d40 + f5d2b63 commit f4f2249

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed
-411 Bytes
Binary file not shown.

GameFiles/Skyrim/scripts/source/C00TrainerScript.psc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ int numHits = 0
44

55
Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)
66
; Debug.Trace("C00: Vilkas hit by magic.")
7-
if (Game.GetPlayer() == akCaster)
8-
GetOwningQuest().SetStage(100)
9-
endif
7+
; if (Game.GetPlayer() == akCaster)
8+
; GetOwningQuest().SetStage(100)
9+
; endif
1010
EndEvent
1111

1212
Event OnEnterBleedout()
@@ -24,30 +24,30 @@ Function BleedoutChecks()
2424
GetOwningQuest().SetStage(125)
2525
endif
2626
EndFunction
27-
27+
; Change for SkyrimTogetherReborn 1.6.7+animation is to allow more mods by not magic checking the hit which can have combat or perk overhaul hidden effects
2828
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
2929
; Debug.Trace("C00: Vilkas was hit.")
3030
; Debug.Trace("C00: Vilkas hit datums -- " + akAggressor + " " + akSource + " " + akProjectile + " " + abPowerAttack + " " + abSneakAttack + " " + abBashAttack + " " + abHitBlocked)
31-
if (akSource as Spell)
31+
; if (akSource as Spell)
3232
; Debug.Trace("C00: Vilkas hit by spell; bailing out and handling it in the magic effect handler.")
33-
return
34-
elseif (akSource as Explosion)
33+
; return
34+
; elseif (akSource as Explosion)
3535
; Debug.Trace("C00: Vilkas hit by explosion; bailing out and handling it in the other handlers.")
36-
return
37-
endif
38-
; if (Game.GetPlayer() == akAggressor) ; The original script didn't account for remote STR bystanders not hitting
39-
if ((akSource as Spell) != None)
40-
GetOwningQuest().SetStage(100)
41-
return
42-
endif
36+
; return
37+
; endif
38+
; if (Game.GetPlayer() == akAggressor)
39+
; if ((akSource as Spell) != None)
40+
; GetOwningQuest().SetStage(100)
41+
; return
42+
; endif
4343
numHits += 1
4444
if (numHits >= 3)
4545
GetOwningQuest().SetStage(150)
4646
endif
47-
; else; Removing this part lets STR remote or pacifist players get the same quest stage and stopcombat at 3 hits
47+
; else
4848
; ; someone else hit him, stop the quest and have him berate you
4949
; GetOwningQuest().SetStage(110)
50-
; endif; No STR methods needed to reach stopcombat solution suggested in tiltedphoques/TiltedEvolution/issues/598
50+
; endif
5151
EndEvent
5252

5353
Function ResetHits()

0 commit comments

Comments
 (0)