LoopyNoopy Posted September 22, 2016 Share Posted September 22, 2016 Heyas, I'm trying to write a script on a magic effect so when it finished it starts a scene I've created. But the Creation Kit throws this error at me:Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © ZeniMax Media. All rights reserved.Starting 1 compile threads for 1 files...Compiling "LoopyNoopysScripts:LNPiperCompanionTimerMEScript"...C:\Users\Daniel\AppData\Local\Temp\PapyrusTemp\LoopyNoopysScripts\LNPiperCompanionTimerMEScript.psc(5,0): the parameter types of function oneffectfinish in the empty state on script loopynoopysscripts:lnpipercompaniontimermescript do not match the original script activemagiceffectNo output generated for LoopyNoopysScripts:LNPiperCompanionTimerMEScript, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on LoopyNoopysScripts:LNPiperCompanionTimerMEScript This is the script: Scriptname LoopyNoopysScripts:LNPiperCompanionTimerMEScript extends activemagiceffect Conditional Actor Property LNPlayerREF Auto Conditional Event OnEffectFinish(Actor LNPlayerREF) LNPiperLeaveForMagScene.Start() EndEvent Scene Property LNPiperLeaveForMagScene Auto Conditional My question is why is this script giving me that error and how can I fix it? Link to comment Share on other sites More sharing options...
LoneRaptor Posted September 22, 2016 Share Posted September 22, 2016 The problem seems to be your event, Try it like this Event OnEffectFinish(Actor akTarget, Actor akCaster)If you only want it to trigger if the effect ends on the player then you can replace your LNPiper.... with: If(akTarget == LNPlayerREF) LNPiperLeaveForMagScene.Start() EndIf Link to comment Share on other sites More sharing options...
LoopyNoopy Posted September 22, 2016 Author Share Posted September 22, 2016 Thank you that compiled! Out of curiosity what was the problem with my event? Link to comment Share on other sites More sharing options...
LoneRaptor Posted September 22, 2016 Share Posted September 22, 2016 You can't assign the parameters of the event (akTarget and akCaster), They are used inside the event to get information about it. In this case who the target was(akTarget) and who casted the magic effect(akCaster). Link to comment Share on other sites More sharing options...
Recommended Posts