Problems with if conditions

Post » Sun May 24, 2015 9:16 pm

hey there,

I have some problems with my script, I wrote the following script:

Scriptname OnHitWApocAttScript extends ObjectReference
Projectile Property MEApocProjectile01 Auto
ObjectReference Property MAGINVAbsorb Auto
ObjectReference Property MAGINVAbsorbLight Auto
ObjectReference Property SKBloodBowl Auto
ObjectReference Property SKBloodBowl02 Auto
ObjectReference Property SKBloodBowl03 Auto
ObjectReference Property SKBloodBowlBlood Auto
ObjectReference Property SKLight Auto
ImageSpaceModifier Property HRImod Auto
Quest Property ShrineSarkousSideQST Auto
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
bool abBashAttack, bool abHitBlocked)
if (akProjectile == MEApocProjectile01) && (ShrineSarkousSideQST.GetStageDone(55)) && (ShrineSarkousSideQST.GetStageDone(56))
HRImod.apply()
MAGINVAbsorb.Enable()
MAGINVAbsorbLight.Enable()
SKBloodBowl.Enable()
SKBloodBowl02.Enable()
SKBloodBowl03.Enable()
SKBloodBowlBlood.Enable()
SKLight.Disable()
Endif
EndEvent

My problem now:

I saved the script, all seems to be okay, but ingame my script doesn't work. If I remove the if conditions ("&& (ShrineSarkousSideQST.GetStageDone(55)) && (ShrineSarkousSideQST.GetStageDone(56))") the script works.

I hope anyone can help.

Thanks! :smile:

User avatar
sally coker
 
Posts: 3349
Joined: Wed Jul 26, 2006 7:51 pm

Post » Mon May 25, 2015 8:25 am

Maybe it's me but I see two brackets too many:

if (akProjectile == MEApocProjectile01) && (ShrineSarkousSideQST.GetStageDone(55)) && (ShrineSarkousSideQST.GetStageDone(56))
User avatar
Arnold Wet
 
Posts: 3353
Joined: Fri Jul 07, 2006 10:32 am


Return to V - Skyrim