Jump to content

New to modding. Script failing to compile.


Recommended Posts

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)
EndIf
EndEvent
That's all there is to it right? Why isn't this working?
Link to comment
Share on other sites

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 by TheDungeonDweller
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...