Give Permanent Stat boost via book

Post » Fri Jan 18, 2013 12:46 pm

I want to Give the player a permanent boost to health/stamina/magicka/resist ect through reading a book, and then remove the book from the player's inventory. I suspect that this is really easy, and I'm just doing something stupid (Never written a script before): this the script I am trying to attach to the book:

Spoiler
Scriptname TomeoflifeScript extends ObjectReference


Actor Property Player Auto
Book Property MySelf auto

Event OnEquipped(Actor reader)

(Player).SetAV("Health", ((Player).getBaseAV("Health")+10)
(Player).RemoveItem(Myself, TomeofLife)

EndEvent

Simply put, it does not compile, I get an error about missing an rparen.... no Idea what that means.... It would be nice to add a visual/sound effect to the player after reading teh book But just getting it to work would make me happy....
User avatar
SWagg KId
 
Posts: 3488
Joined: Sat Nov 17, 2007 8:26 am

Return to V - Skyrim