Creating Custom (Weed) Containers Using NWN Toolset
Moderator: Event DM
- Buddha
- Head of Development
- Posts: 3243
- Joined: Tue Mar 15, 2005 11:06 pm
- Timezone: GMT-4 (EST)
- Location: Sitting Down
- Contact:
Creating Custom (Weed) Containers Using NWN Toolset
Ok, all you smart people. I have this idea itching at the back of my brain, but am not entirely sure where to start. I'm curious what it would take to make a custom container using any current pallette item, and restricting it to holding only one type of item. In order to explain, let me give a theoretical (and whimsical) example. Picture Rob Schneider from SNL saying, "And you can put your weeeeed in there!":
Task: Make a weed container
Pallette Item: Empty Powder Keg (chosen since it is NOT a current container)
Item Type Restriction: Holds only mellowsmoke weed
Is this achieveable? Some questions:
1) Can you make a keg (or any other non-container) function as a container?
2) Can you restrict it to hold only a specific item?
3) How do you restrict it to hold only a class of items (like the gem pouch, which only holds gems)?
Any good web tutorials on doing this? I've messed with it a bit in the toolset and have had no luck, and I've searched here and also NWN vault. I just haven't stumbled across what I need.
Task: Make a weed container
Pallette Item: Empty Powder Keg (chosen since it is NOT a current container)
Item Type Restriction: Holds only mellowsmoke weed
Is this achieveable? Some questions:
1) Can you make a keg (or any other non-container) function as a container?
2) Can you restrict it to hold only a specific item?
3) How do you restrict it to hold only a class of items (like the gem pouch, which only holds gems)?
Any good web tutorials on doing this? I've messed with it a bit in the toolset and have had no luck, and I've searched here and also NWN vault. I just haven't stumbled across what I need.
This probably belongs here unless for some reason you do not have access.
Hovering around the edges of polite society
Not possible without using funky unique properties and such.
Playing as: Sir Douglas Hope of Gorethar, old school paladin | Krator Blackfist, gold mage | Warren, half nymph barbarian
- mortzestus
- Team Member; Retired with Honors
- Posts: 3964
- Joined: Wed Sep 17, 2003 4:34 pm
- Location: Madrid, Spain (GMT +1)
The gem bags came with CEP and you can put whatever you want inside, from diamonds to greatswords.Buddha wrote:*ignores Fifty*
So how did someone make the gem bag? It's not in the standard game, as it shows up under "Custom Items" in the toolset. I guess I need to extract it and have a look at it.Krator wrote:Not possible without using funky unique properties and such.
- Buddha
- Head of Development
- Posts: 3243
- Joined: Tue Mar 15, 2005 11:06 pm
- Timezone: GMT-4 (EST)
- Location: Sitting Down
- Contact:
Well, I'll be damned. I just logged in and tried it, and sure enough, it holds anything. Odd, I thought it was restricted to only gems. Perhaps I was thinking of the time that I tried to drop a gem bag into a regular bag...mortzestus wrote:The gem bags came with CEP and you can put whatever you want inside, from diamonds to greatswords.
- Buddha
- Head of Development
- Posts: 3243
- Joined: Tue Mar 15, 2005 11:06 pm
- Timezone: GMT-4 (EST)
- Location: Sitting Down
- Contact:
Yep, but what I was refering to above was the time that I tried to drop a gem bag into a regular bag. I thought it gave some kind of message about "You can't put this type of item into the bag," but I just logged on and tried it.Fifty wrote:Gems can go in regular bags.
No message, it just didn't let me do it. I'm sure it's something that is hardcoded into the game. Now if I could just figure out how to replicate that hardcode with scripting, I might have an idea. Krator, what kind of "funky unique properties" are we talking about, exactly?
You would have to make an item with a unique property, which you can target on another item or something.
Not worth the effort.
Not worth the effort.
Playing as: Sir Douglas Hope of Gorethar, old school paladin | Krator Blackfist, gold mage | Warren, half nymph barbarian
I misread your post. I thought you wrote that gems can't go in regular bags, which would be rather daftBuddha wrote:Yep, but what I was refering to above was the time that I tried to drop a gem bag into a regular bag. I thought it gave some kind of message about "You can't put this type of item into the bag," but I just logged on and tried it.Fifty wrote:Gems can go in regular bags.
No message, it just didn't let me do it. I'm sure it's something that is hardcoded into the game. Now if I could just figure out how to replicate that hardcode with scripting, I might have an idea. Krator, what kind of "funky unique properties" are we talking about, exactly?

Hovering around the edges of polite society
- Buddha
- Head of Development
- Posts: 3243
- Joined: Tue Mar 15, 2005 11:06 pm
- Timezone: GMT-4 (EST)
- Location: Sitting Down
- Contact:
Drat. Here's what I was thinking. Perhaps there's another way.Krator wrote:You would have to make an item with a unique property, which you can target on another item or something.
Not worth the effort.
I remember reading something posted by Zach about having so many keys, and needing a keyring. I recently picked up another key myself (actually 8), and began to think of it again. Here is the issue:
Keys for inn rooms, guilds, player housing, etc. are marked plot so that they always stay with you, even on DP. But when you begin to accumulate them, they can take up some space at 2 squares each -- and you can't put them in bags, because then they won't go with you to DP, and become subject to looting.
So, I thought, "Wouldn't it be nice if I could take the palette item for iron rings, and make it into a container?" Then, make that container plot, so that it (and by default) all of your keys go with you to DP? Of course, to avoid exploiting the keyring, you'd have to make sure that someone couldn't store their +5 Sword of Monkey Slaying and ten Potions of Uberness in it. So I was looking for a way to limit it to hold just keys.
Think that's achievable? I'd be willing to do the legwork, and of course, it would have to go CoPaP approval route. Another part of the "key plan" would be to adjust the keys so that they are only one inventory square, but that would be separate from this. Ideas?
Really, not worth the effort. If you start on it, don't say I didn't warn you 

Playing as: Sir Douglas Hope of Gorethar, old school paladin | Krator Blackfist, gold mage | Warren, half nymph barbarian
-
- Scholar
- Posts: 1206
- Joined: Fri Jan 14, 2005 6:10 pm
- Alexandru Stanicu
- Legacy DM
- Posts: 14074
- Joined: Sun Oct 20, 2002 10:59 pm
- Timezone: CST
- DM Avatar: The Hammer
- Location: Texas
Ok here we go.
You can make a container look like almost anything. Simply edit a chest in the toolset and change the appearance to what you want it to look like.
You cna make contianters only hold certain things, but it requires a script in the on_unaquire event that checks the tag of the container vs the item and rejects it if its not the right one. The problem is that this would create lag.
(if it fired correctly as some of the events dont work correctly all the time or at all)
so it would go something like this:
You can make a container look like almost anything. Simply edit a chest in the toolset and change the appearance to what you want it to look like.
You cna make contianters only hold certain things, but it requires a script in the on_unaquire event that checks the tag of the container vs the item and rejects it if its not the right one. The problem is that this would create lag.
(if it fired correctly as some of the events dont work correctly all the time or at all)
so it would go something like this:
Code: Select all
You move a item in to a bag (it would fire for all bags)
on_unaquire fires and gets the tag from the container and the item type from the item lost
then it checks the tag agaisnt the list (in the script or DB)
if the item tpye is not allowed for that container it takes it back out of the container and places it back in your inventory.
if the item type is allowed for that container the script does nothing
- terror2001
- Scholar
- Posts: 1149
- Joined: Wed Jun 22, 2005 1:48 am
- Location: Colorado
Similarly in concept are the crop production plants and other varieties. Like the cotton plant for instance, you can take cotton out, but you can't put cotton back in it. Same concept of you just need to modify what it will and won't accept.
Terror2001
Playing:
Vicky - Warrior Maiden of Dre'Ana
Delcina Le'te'te'fer - Verossa's Flame-thrower
Sally (Nadiya) Silverbreeze - Indeed
Brandon (Bobb) *grins*
Olivia Stonebridge - Holy imbiber of Mishlekh
Brittany Powers - You gonna die!
Playing:
Vicky - Warrior Maiden of Dre'Ana
Delcina Le'te'te'fer - Verossa's Flame-thrower
Sally (Nadiya) Silverbreeze - Indeed
Brandon (Bobb) *grins*
Olivia Stonebridge - Holy imbiber of Mishlekh
Brittany Powers - You gonna die!
- spool32
- Team Member; Retired with Honors
- Posts: 13280
- Joined: Sun Dec 12, 2004 6:12 pm
- Timezone: GMT -6
- Location: Austin, TX
A better idea would be to make an item that can absorb the properties of a key and destroy it, with a menu allowing you to remove the key (spawning one and removing the menu option) at some later date. This would allow you to carry all your keys on one ring, have that ring open everything you have access to, and allow you to remove and hand out keys as needed.
-spool32
-spool32
Success will be lovely, but you will have to go out and get it! Failure will invite itself in.
Your donation makes this sig possible!
Monthly donations help you Lose Weight Fast!
DM 101
Your donation makes this sig possible!
Monthly donations help you Lose Weight Fast!
DM 101