Jump to content

Photo

Having issues with a papyrus script

papyrus creationkit creation_kit scripting

  • Please log in to reply
1 reply to this topic

#1
JigsawTheTechnophile

JigsawTheTechnophile

    Newbie

  • Members
  • Pip
  • 14 posts

I'm working on a thing to freeze enemies when they get hit with a certain spell. I've solved most of the compiling errors and I'm left with this one that I don't know what to do with.

 

(6,26): extraneous input ',' expecting ID

 

And here's my code. The referenced line is highlighted in yellow.

 

scriptname JGSW_PetrifyScript extends ActiveMagicEffect
 
Actor Property target Auto
Actor Property caster Auto
 
Event OnEffectStart(target, caster)
target.EnableAI(false)
 
OnEffectFinish(target, caster)
target.EnableAI(true)
EndEvent
 
The forums say this issue is caused by the script failing to pick up an ID, but I need to use GetTargetActor() to do that (as far as I'm aware), and that line just causes more errors.

Edited by JigsawTheTechnophile, 12 June 2019 - 04:17 AM.


#2
Rasikko

Rasikko

    The Arbiter of Time

  • Members
  • PipPipPipPip
  • 1,406 posts

You need to keep the parameter types in place, but I think you can change the parameter names(the ones I don't have in bold).

 

example: Event .... (Actor akTarget, Actor akCaster)

 

Actor is what needs to be included so the compiler/game knows what types target and caster are.


Edited by Rasikko, 12 June 2019 - 06:26 AM.






Also tagged with one or more of these keywords: papyrus, creationkit, creation_kit, scripting

IPB skins by Skinbox
Page loaded in: 1.084 seconds