I need help scripting this tome, what happens with the script is, all is fine if you pick up the book, choose yes, and close the book. But if you choose to take the book it will not activate
I'm new and still learning
The spell script works ok
Script attached to the book
scn 000TomeScriptshort doonceshort buttonpressedint buttonbegin onActivate Activate if doOnce == 0 MessageBox "Would you like to learn the lost mystical tome Spell of Grief?", "Yes please", "No, maybe later" set doonce to 1 set buttonpressed to 1 else Message "You have already learned the lost mystical secrets of the tome" endifendbegin GameMode if buttonpressed == 1 set button to GetButtonPressed if button == 1 set doonce to 0 set buttonpressed to 0 Message "Ok - Maybe you can learn later" elseif button == 0 set buttonpressed to 0 player.AddSpell 000TomeGrief Message "You have learned the lost mystical secrets of the tome" endif endifend
Spell script
scriptname 000TomeGriefBegin ScriptEffectStart Some effect hereEndBegin ScriptEffectFinish Message "Thief's pure ownage"End