Jump to content

Need Help Adding Book Script


OminousVoice

Recommended Posts

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

  • Recently Browsing   0 members

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