Page 1 of 3

How to make a book as a box or bag?

Posted: Wed Sep 04, 2013 5:20 pm
by maneus
Hello everyone,
I need some help from the more experienced people here.

I want to make a book with a few "notes" in it like a box ar a bag.
My problem is, that only "notes" should be put in the book and nothing else.

When I define a book as a box, you con put into it whatever you want like a shield or a weapon or something other, that should not be in a book.

I want the "notes" as sheets of the book and if you put a new "note" in the book, it is like you write new text into it.

Is it possible to make a script or so, that allowed the player to take only "notes" out of the book or put only "notes" into it?

I hope someone can help me by my little problem.

Greetings...maneus

Re: How to make a book as a box or bag?

Posted: Wed Sep 04, 2013 6:38 pm
by Komag
With the regular items in Grimrock this is not possible to limit what goes into a container. You could use advanced GUI scripting to approximate the effect I suspect, but it's way beyond me.

Re: How to make a book as a box or bag?

Posted: Wed Sep 04, 2013 7:09 pm
by Dr.Disaster
Komag wrote:With the regular items in Grimrock this is not possible to limit what goes into a container. You could use advanced GUI scripting to approximate the effect I suspect, but it's way beyond me.
hmm .. one way i see is to use an onEquipItem hook to check where an item is to be placed, if it should go inside a specific container or elsewhere. Yet that would require to add that hook to every single item in the game so that's not a really comfortable idea.

The onInsertItem hook would be far more usefull here but that works only for the alcove class, not items.

On the other hand .. you could add an onUseItem hook (or a timed function) to your container which checks it's content. If the hook (or function) finds something unacceptable it's dropped to the floor.

Re: How to make a book as a box or bag?

Posted: Wed Sep 04, 2013 10:18 pm
by JohnWordsworth
You know, an onDrawGui solution could be really neat. Assuming none of your notes have any special scripting associated with them you could have it so that when you add a page to the book it could add it 'kindle style' to a Skyrim-esque book and then have a 'tear out note' button for when you want to take it out again

Re: How to make a book as a box or bag?

Posted: Wed Sep 04, 2013 11:43 pm
by msyblade
You can use the LoG Journal from the nexus as a template if you would like to go the route that Wordsy suggests. If you have the ability, I think it would be the best (and neatest) way to do what you want. I'm sure many people could find a use for it (myself included).

Re: How to make a book as a box or bag?

Posted: Thu Sep 05, 2013 3:21 am
by JohnWordsworth
Am half way through a solution. Will hopefully have something to test in the next day or two!

Re: How to make a book as a box or bag?

Posted: Thu Sep 05, 2013 4:11 am
by msyblade
Confirmed! Wordsworth drew up a rough draft GUI notebook, while sitting in the airport executive lounge waiting for a flight across the Atlantic ocean. He is in flight right now, headed to the U.K.. Once he gets home and settles in, we will likely have a new toy to play with! Huzzah for J.W.!

Re: How to make a book as a box or bag?

Posted: Thu Sep 05, 2013 6:14 am
by Komag
Sounds very cool :)

Re: How to make a book as a box or bag?

Posted: Thu Sep 05, 2013 9:35 am
by maneus
Hey guys, I have to thank you all for your tips and help.

Unfortunately I´m not fit in making a GUI or something like that. So if you could help (Mr. John W.), it would be superb.

At the moment my "container book" looks like this:
SpoilerShow
Image
Every single sheet is a note, as it should be. But as I´ve wrote on top, you can put everything into it, And that´s not good:
SpoilerShow
Image
So a GUI should be the best way to solve this problem.
And if other people here could have a use for it, even better.

I wish you success John by creating this fine tool.

Re: How to make a book as a box or bag?

Posted: Thu Sep 05, 2013 12:46 pm
by bongobeat
hi,
wowww, I m not enoug skilled to help you, but this helmet looks very nice! are you doing some mods with warhammer 40k stuffs? I like it!!! :D