Jump to content

Book script not working


Biovex

Recommended Posts

Im trying to write a book script that, when the book is read, casts a spell, but only if the player has a certain perk.

The spell is supposed to add a constant magic effect to the player, but when I read the book nothing happens, no effect or anything. I've gone through and double checked the spell and magic effect a few times the only thing I can think of not working correctly is the script

 

So far this is what I have

 

Scriptname BioTSTest extends MagicEffect 

 

Perk Property HPerk Auto

Spell Property CastSpell Auto

 

Event OnRead()

       If    !Game.GetPlayer ().HasPerk(HPerk)

              CastSpell.Cast(Game.GetPlayer(), Game.GetPlayer())

       EndIf

EndEvent

 

Any help would be greatly appreciated

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use