Spell script not working

Post » Sun Nov 18, 2012 1:05 am

Scriptname TargetFinder extends activemagiceffect  Actor Property RojokFind  Auto  Activator Property ActivatorProp  Auto  EffectShader Property RCFireDagonFX  Auto  ShaderParticleGeometry Property RCParticleEffect  AutoFloat Property posX AutoFloat Property posY AutoFloat Property posZ AutoFloat Property realY AutoVisualEffect Property VFXRCTest  Auto  SPELL Property Firestorm Auto  Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \  bool abBashAttack, bool abHitBlocked)  Debug.Trace("We were hit by " + akAggressor)  posX = RojokFind.GetPositionX()posY = RojokFind.GetPositionY()posZ = RojokFind.GetPositionZ()Debug.Trace ("Rojok is at" +posX +posY +posZ)realY = posY + 1.5CastRojokSpell()endEventFunction CastRojokSpell() nativeActivatorProp.SetPosition (posX, realY, posZ)Debug.Trace ("Activator placed at" +posX +realY +posZ)Firestorm.Cast(ActivatorProp)endFunction

No matter what I do, I keep getting this error:
D:\Program Files (x86)\The Elder Scrolls V Skyrim\Data\Scripts\Source\temp\TargetFinder.psc(41,13): no viable alternative at input '.' 
It refers at the Firestorm.Cast, but I don't know what to do.

Thank you!
User avatar
Ricky Rayner
 
Posts: 3339
Joined: Fri Jul 13, 2007 2:13 am

Post » Sun Nov 18, 2012 9:13 am

Line 41 actually refers to
ActivatorProp.SetPosition (posX, realY, posZ) 
but that's not the problem line. You need to remove "native" from line 40.
User avatar
Taylor Thompson
 
Posts: 3350
Joined: Fri Nov 16, 2007 5:19 am


Return to V - Skyrim