Jump to content

Book script not working


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())




Any help would be greatly appreciated

Link to comment


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

  • Recently Browsing   0 members

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