OminousVoice Posted February 12, 2012 Posted February 12, 2012 I'm trying to write a script for a book so that it grants a perk when you read it. Now, I'm an utter noob when it comes to scripting, so I need all the help I can get. Here's what I have. What am I doing wrong? Scriptname AddThunderPerk extends ObjectReference SPELL Property ThunderReward Auto Perk property ThunderPerk auto Event OnRead if akActor== Game.GetPlayer() && Game.GetPlayer().HasPerk(ThunderPerk) == 0 Game.GetPlayer().AddPerk(ThunderPerk) Debug.Trace("Heart of Thunder added") endif EndEvent Any help would be greatly appreciated.
OminousVoice Posted February 12, 2012 Author Posted February 12, 2012 Having read through a few threads regarding this I know I've got some parts right, I just want to know where I'm going wrong here.
Deleted3576383User Posted February 13, 2012 Posted February 13, 2012 (edited) Edit: Excuse my reply, I realised you got help in another thread. Edited February 13, 2012 by Guest
Recommended Posts