Okay, so I've just written this script, but it comes up with this error message when I try to compile it:
Starting 1 compile threads for 1 files...
Compiling "defaultaddshoutonequipscript"...
D:\Downloaded Programs\Steam\Steam\steamapps\common\skyrim\Data\Scripts\Source\defaultaddshoutonequipscript.psc(22,13): HasShout is not a function or does not exist
D:\Downloaded Programs\Steam\Steam\steamapps\common\skyrim\Data\Scripts\Source\defaultaddshoutonequipscript.psc(28,13): HasShout is not a function or does not exist
D:\Downloaded Programs\Steam\Steam\steamapps\common\skyrim\Data\Scripts\Source\defaultaddshoutonequipscript.psc(34,13): HasShout is not a function or does not exist
No output generated for defaultaddshoutonequipscript, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on defaultaddshoutonequipscript
even though 'HasShout' seems to exist on the creation kit website?? http://www.creationkit.com/Category:Condition_Functions What should I put instead so it works? Thanks
Here's the script:
Scriptname defaultaddshoutonequipscript extends ObjectReference {Generic script that adds a shout to the actor when an item is equipped} Shout Property ShoutToAdd01 Auto Shout Property ShoutToAdd02 Auto Shout Property ShoutToAdd03 Auto Event OnEquipped(Actor akActor)if (ShoutToAdd01 != None)akActor.AddShout(ShoutToAdd01)EndIfif (ShoutToAdd02 != None)akActor.AddShout(ShoutToAdd02)EndIfif (ShoutToAdd03 != None)akActor.AddShout(ShoutToAdd03)EndIfEndEvent Event OnUnequipped(Actor akActor) if (ShoutToAdd01 != None)if akActor.HasShout(ShoutToAdd01)akActor.RemoveShout(ShoutToAdd01)endIfendif if (ShoutToAdd02 != None)if akActor.HasShout(ShoutToAdd02)akActor.RemoveShout(ShoutToAdd02)endIfendif if (ShoutToAdd03 != None)if akActor.HasShout(ShoutToAdd03)akActor.RemoveShout(ShoutToAdd03)endIfendif EndEvent