Jump to content

OnRead trouble


Deleted3576383User

Recommended Posts

I attach this to a book, one time through the reference in the render window and the other time on the object itself. Nothing happens when I open the book. I've put different commands in there to test it (give gold etc) but nothing happens. It compiles successfully. Why is this?

 

Scriptname tinyangrytrollsscript2 extends ObjectReference 
Book property Book0ArtOfTrolling auto
Spell property SpellSummonMiniTrolls auto

Event OnRead()
if Game.GetPlayer().HasSpell(SpellSummonMiniTrolls) == false
Game.GetPlayer().AddSpell(SpellSummonMiniTrolls)
endif
EndEvent

Link to comment
Share on other sites

  • Recently Browsing   0 members

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