gungfuguru Posted November 5, 2010 Share Posted November 5, 2010 I set up an enchanted scroll to appear in-game as a book (I've always been a fan of the idea of magic books) and it works. I was interested in learning if there was a way to script it so that it wouldn't be used up, or at least appear so. Any advice for this newb? I am no dynamo when it comes to scripts (I have to use a lot of resources) but I can peice them together, usually. Link to comment Share on other sites More sharing options...
slygothmog Posted November 5, 2010 Share Posted November 5, 2010 (edited) Sure....a simple quest script should do it...you will need to give the scroll ( book ) a unique ID though.I will call the book aaaSpellTome scn aaaSpellTomeScript short book begin gamemode if player.getitemcount aaaSpellTome == 1set book to 1endif if book == 1 && player.getitemcount aaaSpellTome == 0message " "message " "player.additem aaaSpellTome 1endif end This script will see if the player has got the book, and once you have it, it will replace that book with an exact copy everytime the book is used up.The command message " " is to stop spam, so no message appears on screen every time a copy of the book is added.If you need help setting up the quest to attach the script to, let me know, it's very easy to do. I forgot to say...once the book has been placed in the players inventory, you will never get rid of it using this method. A duplicate will always be added to the player, even if you put it in a chest, or on a bookshelf. Edited November 5, 2010 by slygothmog Link to comment Share on other sites More sharing options...
Recommended Posts