Jump to content

Scroll issues? Advice from vets would be nice.


gungfuguru

Recommended Posts

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

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 == 1

set book to 1

endif

 

if book == 1 && player.getitemcount aaaSpellTome == 0

message " "

message " "

player.additem aaaSpellTome 1

endif

 

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 by slygothmog
Link to comment
Share on other sites

  • Recently Browsing   0 members

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