Tracking which books have been read.

Post » Tue Jun 19, 2012 1:57 pm

Thanks for the help, I think I have a working solution now.


Scriptname _TestScript extends ObjectReference  FormList Property BookTracking AutoBook Property Book1 AutoEvent OnRead()Debug.Trace(Self)  If !BookTracking.HasForm(Book1)	BookTracking.AddForm(Book1)  EndIfEndEvent

This seems to work out if I point the Book1 variable to the book I'm attaching the script to in the editor.

By setting a variable to whatever the book is that I'm checking for, I don't run into the issues of trying to grab the base object from the inventory. It's a little bit more work setting things up in the editor, but so far, this seems to be a fine solution for what I'm after, thanks for the input that lead me to the solution!

:) I loves it when stuff is sorted

So, a book has no idea what book it is, unless you tell it what book it is while you are reading it!! Brilliant ;)
User avatar
Alisia Lisha
 
Posts: 3480
Joined: Tue Dec 05, 2006 8:52 pm

Previous

Return to V - Skyrim