tnu Posted August 3, 2008 Share Posted August 3, 2008 i was wondering if anyone could give me a script to apply to a book thats similer to Spell Tomes book scripts but with some extras. checks to see if you already have the spells provided by the script. and for it to loop so it initiates every time you opent he book Link to comment Share on other sites More sharing options...
tyreil829 Posted August 3, 2008 Share Posted August 3, 2008 still looking for a fix for it? LTD might know if he is around Col John Sheppard Link to comment Share on other sites More sharing options...
tnu Posted August 3, 2008 Author Share Posted August 3, 2008 right if anyone can help me with that fix the main post is actually about a page down Link to comment Share on other sites More sharing options...
LoginToDownload Posted August 4, 2008 Share Posted August 4, 2008 I never downloaded Spell Tomes, but basically you open a book and a spell is given, right? Any particular reason why you want a check for if the player already has the spell, or just clean scripting? AddSpell doesn't actually do anything if the player already has the spell. Link to comment Share on other sites More sharing options...
tnu Posted August 4, 2008 Author Share Posted August 4, 2008 yeah i just want the powers added to the player whenever he reads the book. i'm just looking for a way to fix the bug of the vanishing spells in the older Toaster Says Share and Recruit Link to comment Share on other sites More sharing options...
LoginToDownload Posted August 4, 2008 Share Posted August 4, 2008 In that case, the script should go... scn MySpellbookScript Begin OnActivate AddSpell MySpell ;Repeat for other spells if necessary end Begin OnEquip AddSpell MySpell ;Repeat for other spells if necessary end OnActivate runs when the book is activated in the world, and OnEquip when you select the book in your inventory. Link to comment Share on other sites More sharing options...
tnu Posted August 4, 2008 Author Share Posted August 4, 2008 ok thanks a bunch but how do i attatch the script to the book? and does addspell work on powers too? EDIT: Oh and do i use the spells Base or Ref ID? EDIT: i tried it and it said nested sotmhign blocks arnt allowd what did i do wrong? Link to comment Share on other sites More sharing options...
darkninjaproductions Posted August 4, 2008 Share Posted August 4, 2008 you use the spell Ref ID.you find the book you want in the CS and then open up its properties and click drop down menu and select the script.http://i201.photobucket.com/albums/aa309/darkninja462/book1.jpg there is the window that should pop up.what do you mean by powers ?cus if you mean skills then yes player.ModActorValue "(Replace with skill)"and this will boost your skill. so in theory you will have something like this. scn MySpellbookScript Begin OnActivate AddSpell MySpell player.ModActorValue "skill" ;Repeat for other spells/skills if necessary end Begin OnEquip AddSpell MySpell player.modactorvalue "skill" ;Repeat for other spells/skills if necessary end Link to comment Share on other sites More sharing options...
tnu Posted August 4, 2008 Author Share Posted August 4, 2008 no by powers i mean greater and Lesser powers that are also present int he spellbook but not considerd spells EDIT still what did they mean "Nested Begin/end blocks are not allowd"? Link to comment Share on other sites More sharing options...
darkninjaproductions Posted August 4, 2008 Share Posted August 4, 2008 just make shore there is a gap between begin and wat follows and between end and whatever is b4 it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.