Biovex Posted December 6, 2017 Share Posted December 6, 2017 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.