How to make a book as a box or bag?
How to make a book as a box or bag?
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
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?
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.
Finished Dungeons - complete mods to play
- Dr.Disaster
- Posts: 2876
- Joined: Wed Aug 15, 2012 11:48 am
Re: How to make a book as a box or bag?
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.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.
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.
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: How to make a book as a box or bag?
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
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Re: How to make a book as a box or bag?
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).
Currently conspiring with many modders on the "Legends of the Northern Realms"project.
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: How to make a book as a box or bag?
Am half way through a solution. Will hopefully have something to test in the next day or two!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Re: How to make a book as a box or bag?
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.!
Currently conspiring with many modders on the "Legends of the Northern Realms"project.
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Re: How to make a book as a box or bag?
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:
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:
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.
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

SpoilerShow

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?
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!!!
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!!!
