Dubbadizzo Posted July 22, 2017 Share Posted July 22, 2017 I'm trying to write a script that makes Serana use a Bat Cloak spell at the start of combat and it's failing to compile. Ideas? Scriptname SeranaBatCloakEnterCombat extends ObjectReference Event OnCombatStateChanged(Actor akTarget, int aeCombatState) If (aeCombatState == 1) GlomoroAbsorbCloak.Cast(Self) EndIfEndEvent That's all there is to it right? Why isn't this working? Link to comment Share on other sites More sharing options...
TheDungeonDweller Posted July 22, 2017 Share Posted July 22, 2017 (edited) The compiler has no idea what a GlomoroAbsorbCloak is and why Serana is trying to cast it on herself. You have to create a property pointing to the cloak, and the property type is Spell. Read this: http://www.creationkit.com/index.php?title=Bethesda_Tutorial_Papyrus_Hello_World and Read this: http://www.creationkit.com/index.php?title=Variables_and_Properties_(Papyrus) You are off to a good start thought! Edited July 22, 2017 by TheDungeonDweller Link to comment Share on other sites More sharing options...
Recommended Posts