OminousVoice Posted February 12, 2012 Share 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. Link to comment Share on other sites More sharing options...
OminousVoice Posted February 12, 2012 Author Share 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. Link to comment Share on other sites More sharing options...
Deleted3576383User Posted February 13, 2012 Share Posted February 13, 2012 (edited) Edit: Excuse my reply, I realised you got help in another thread. Edited February 13, 2012 by Guest Link to comment Share on other sites More sharing options...
Recommended Posts