Please forgive my code. It is... a mess to say the least
Scriptname SAWDOnHit extends ObjectReference
{SAWD OnHit Damage Calculation}
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
bool abBashAttack, bool abHitBlocked)
Keyword property CutR1 auto
Keyword property CutR2 auto
Keyword property CutR3 auto
Keyword property CutR4 auto
Keyword property CutR5 auto
Keyword property CutR6 auto
Keyword property Cut1 auto
Keyword property Cut2 auto
Keyword property Cut3 auto
Keyword property Cut4 auto
Keyword property Cut5 auto
Keyword property Cut6 auto
int ResistCut = 0
int ResistCon = 0
int ResistPen = 0
int Cut = 0
int Con = 0
int Pen = 0
If ( GetActorRef().WornHasKeyword(CutR1) )
ResistCut = 1
ElseIf ( GetActorRef().WornHasKeyword(CutR2) )
ResistCut = 2
ElseIf( GetActorRef().WornHasKeyword(CutR3) )
ResistCut = 3
ElseIf( GetActorRef().WornHasKeyword(CutR4) )
ResistCut = 4
ElseIf ( GetActorRef().WornHasKeyword(CutR5) )
ResistCut = 5
ElseIf( GetActorRef().WornHasKeyword(CutR6) )
ResistCut = 6
Else
ResistCut = 0
EndIf
if akSource.HasKeyword(Cut1)
Cut = 1
ElseIf akSource.HasKeyword(Cut2)
Cut = 2
ElseIf akSource.HasKeyword(Cut3)
Cut = 3
ElseIf akSource.HasKeyword(Cut4)
Cut = 4
ElseIf akSource.HasKeyword(Cut5)
Cut = 5
ElseIf akSource.HasKeyword(Cut6)
Cut = 6
Else
Cut = 0
EndIf
Debug.MessageBox("Hit by cut" + cut)
EndEvent
{SAWD OnHit Damage Calculation}
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
bool abBashAttack, bool abHitBlocked)
Keyword property CutR1 auto
Keyword property CutR2 auto
Keyword property CutR3 auto
Keyword property CutR4 auto
Keyword property CutR5 auto
Keyword property CutR6 auto
Keyword property Cut1 auto
Keyword property Cut2 auto
Keyword property Cut3 auto
Keyword property Cut4 auto
Keyword property Cut5 auto
Keyword property Cut6 auto
int ResistCut = 0
int ResistCon = 0
int ResistPen = 0
int Cut = 0
int Con = 0
int Pen = 0
If ( GetActorRef().WornHasKeyword(CutR1) )
ResistCut = 1
ElseIf ( GetActorRef().WornHasKeyword(CutR2) )
ResistCut = 2
ElseIf( GetActorRef().WornHasKeyword(CutR3) )
ResistCut = 3
ElseIf( GetActorRef().WornHasKeyword(CutR4) )
ResistCut = 4
ElseIf ( GetActorRef().WornHasKeyword(CutR5) )
ResistCut = 5
ElseIf( GetActorRef().WornHasKeyword(CutR6) )
ResistCut = 6
Else
ResistCut = 0
EndIf
if akSource.HasKeyword(Cut1)
Cut = 1
ElseIf akSource.HasKeyword(Cut2)
Cut = 2
ElseIf akSource.HasKeyword(Cut3)
Cut = 3
ElseIf akSource.HasKeyword(Cut4)
Cut = 4
ElseIf akSource.HasKeyword(Cut5)
Cut = 5
ElseIf akSource.HasKeyword(Cut6)
Cut = 6
Else
Cut = 0
EndIf
Debug.MessageBox("Hit by cut" + cut)
EndEvent
However, these are the errors I'm getting...
Starting 1 compile threads for 1 files...
Compiling "SAWDOnHit"...
F:\Skyrim\Data\Scripts\Source\temp\SAWDOnHit.psc(7,8): no viable alternative at input 'property'
F:\Skyrim\Data\Scripts\Source\temp\SAWDOnHit.psc(27,1): missing EOF at 'If'
No output generated for SAWDOnHit, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on SAWDOnHit
Compiling "SAWDOnHit"...
F:\Skyrim\Data\Scripts\Source\temp\SAWDOnHit.psc(7,8): no viable alternative at input 'property'
F:\Skyrim\Data\Scripts\Source\temp\SAWDOnHit.psc(27,1): missing EOF at 'If'
No output generated for SAWDOnHit, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on SAWDOnHit
Any help for a newbie would be much appreciated
Thank you!
NOTE: I have not created the keyword in the mod yet, so I don't know if that would cause the errors.
EDIT: I do have the if statements indented, but it didn't copy/paste it here.
EDIT #2: I did try "If ( GetActorRef().WornHasKeyword(CutR1) == 1 )" and "If ( GetActorRef().WornHasKeyword(CutR1) == True )" but neither made the error change.

