Library register

Post » Tue May 15, 2012 3:21 pm

Greetings

Being a semi-compulsive bookcollector I end up picking up (or stealing) almost every book I find. The bookshelves in Marcath are full with one copy of each book I have found and I may soon have to start a second library. By book I mean lorebook, not counting journals, letters and such.

So what I am thinking of doing is:
Create a book "My library register" which hold the name of every book in the game and if it is in one of my bookshelves. Also in witch house.
Ex:
The Lusty Argonian Maid, v1
Collected - Marcath
The Lusty Argonian Maid, v2
Not Collected

So for this to work I must be able to create a script which alters a variable when I put or remove a book from a bookshelf. Next I need "My library register" to get the values from this script and enter them into this book. I hope this would be possible since I have found notes with my character name in (so I can have dynamic content in the book) and some quests have me to put or remove items from containers. Or am I wrong? I may be as I never have done any scripting for TES games...

Also, I wonder a bit if this may slow down the game too much as I need to introduce 150+ variables (one for each book).

Comments, advice and suggestions are much appreciated.
User avatar
Tania Bunic
 
Posts: 3392
Joined: Sun Jun 18, 2006 9:26 am

Post » Tue May 15, 2012 4:16 pm

Also, I wonder a bit if this may slow down the game too much as I need to introduce 150+ variables (one for each book).
You could probably store the list of books and their locations in a single array variable--I don't know if the updated scripting language in Skyrim supports arrays by default, but if it doesn't, I'm sure the Script Extender team will add them. Using an array should also have the benefit of easing compatibility with books added by other mods, beyond those that are in the base game.

The other complementary bit of functionality you might think about including, which I think I saw mentioned in another thread (EDIT: yes, http://www.gamesas.com/index.php?/topic/1281535-req-youve-already-read-this-book/), is a way of indicating whether or not a given book is already owned when you hover the cursor over it. That way you don't have to keep manually checking the library register before taking a book. I'm not sure how that would best be done, though, or even if it's possible--again, we'll need to see what the scripting language supports.
User avatar
Caroline flitcroft
 
Posts: 3412
Joined: Sat Nov 25, 2006 7:05 am

Post » Tue May 15, 2012 5:42 pm

I don't know if the updated scripting language in Skyrim supports arrays by default,
It does.
User avatar
Darren
 
Posts: 3354
Joined: Wed Jun 06, 2007 2:33 pm

Post » Tue May 15, 2012 10:17 pm

You could probably store the list of books and their locations in a single array variable--I don't know if the updated scripting language in Skyrim supports arrays by default, but if it doesn't, I'm sure the Script Extender team will add them. Using an array should also have the benefit of easing compatibility with books added by other mods, beyond those that are in the base game.

The more I think about it I realize arrays may be needed. Especially if I want to be able to keep records of books in alla houses.

It does.

Sweet!

The other complementary bit of functionality you might think about including, which I think I saw mentioned in another thread (EDIT: yes, http://www.gamesas.com/index.php?/topic/1281535-req-youve-already-read-this-book/), is a way of indicating whether or not a given book is already owned when you hover the cursor over it. That way you don't have to keep manually checking the library register before taking a book. I'm not sure how that would best be done, though, or even if it's possible--again, we'll need to see what the scripting language supports.

I have thought of this, but I belive it depends on the UI. If it is possible to display more tags on the item tooltip. A possibility is to add something on the first page on each book. So if you start to read the book it will display "Collected" above of below the title. Or something like that. But that is for phase 2 of the mod.

Remember KISS - Keep It Simple Stupid
User avatar
TIhIsmc L Griot
 
Posts: 3405
Joined: Fri Aug 03, 2007 6:59 pm

Post » Tue May 15, 2012 6:06 pm

-snip-
The other complementary bit of functionality you might think about including, which I think I saw mentioned in another thread (EDIT: yes, http://www.gamesas.com/index.php?/topic/1281535-req-youve-already-read-this-book/), is a way of indicating whether or not a given book is already owned when you hover the cursor over it. That way you don't have to keep manually checking the library register before taking a book. I'm not sure how that would best be done, though, or even if it's possible--again, we'll need to see what the scripting language supports.
This. ^^^^^^
User avatar
Sammykins
 
Posts: 3330
Joined: Fri Jun 23, 2006 10:48 am


Return to V - Skyrim