Server Totals
Wilderness - (2)
Le'Or - (0)
Ferrell - (0)
Elysia - (0)
M'Chek - (0)
Deglos - (0)
Visimontium - (0)
Underdark - (0)
Mikona - (0)
Total players: 2
Gallery

Links Menu

How does one make something 'stackable'?

Moderators: Nighthawk4, Dungeon Masters

How does one make something 'stackable'?

PostAuthor: Tigg » Tue Jun 06, 2006 7:15 pm

How does one make a previously unstackable item stackable? I love this so much that if I'm capable I'm interested in advancing from no-clue status on it and getting some practice.. who knows maybe I could subcontract on it some day. :shock:

Also doesn't it help with lag? I've heard that player inventories with lots and lots of items, repeated over many players, increases lag. Also I've noticed that when some players who have a ton of items on them log on/off there's often a short burst of lag.
Ua mau ke ea o ka ina i ka pono.
User avatar
Tigg
Elder Sage
 
Posts: 3491
Joined: Wed Feb 09, 2005 11:18 pm
Location: Into the sunset/Hyboria

PostAuthor: spool32 » Tue Jun 06, 2006 7:19 pm

I believe Deider wrote the code for the sugar stacking... possibly some other items as well.

Is the Gnome-inator around?

-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
User avatar
spool32
Team Member; Retired with Honors
 
Posts: 13283
Joined: Sun Dec 12, 2004 6:12 pm
Location: Austin, TX
Timezone: GMT -6

PostAuthor: Krator » Tue Jun 06, 2006 7:19 pm

Re-create the item using a base item type that allows stacking. For example: Item named "Xeo's stamp of awesomeness" is a Misc. Small item that looks like a gem. Xeo wants to make it stackable, and thus has to delete the item (record all it's properties, tags, etc), and create a new item with the same properties, but with another base item type, for example, Gem, which allows stacking up to 10 items.
User avatar
Krator
Elder Sage
 
Posts: 4947
Joined: Thu Jun 10, 2004 6:44 pm
Location: Amsterdam
Timezone: GMT

PostAuthor: Xeo » Mon Jun 12, 2006 11:13 am

Krator wrote:Re-create the item using a base item type that allows stacking. For example: Item named "Xeo's stamp of awesomeness" is a Misc. Small item that looks like a gem. Xeo wants to make it stackable, and thus has to delete the item (record all it's properties, tags, etc), and create a new item with the same properties, but with another base item type, for example, Gem, which allows stacking up to 10 items.


I have the urge to start stacking things now. Hmmm.
Silk wrote:I don't know, I think flinging poo in a catapult could be pretty damn effective.
I know if I was on the battlefield and I got hit by a pile of shit... I'd probably go home.
User avatar
Xeo
Master Sage
 
Posts: 6368
Images: 0
Joined: Mon Nov 03, 2003 11:56 am
Location: Pirate Cave
Timezone: UK

PostAuthor: dougnoel » Mon Jun 12, 2006 3:53 pm

There are two ways to do this. The first is, as already mentioned, to use an existing base item type. The second is to change the base item 2da file and make a base item stackable, or copy an existing one and make it stackable. the problem with the latter solution is the item is not CoPaP friendly.

BTW, I am not sure making craftable items actually contributes to less lag. However, theoretically it could.

dougnoel
Team Member; Retired with Honors
 
Posts: 6265
Joined: Fri May 14, 2004 4:59 pm
Location: VA (GMT -4)


Return to NWN Scripting

Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]