Jump to content

Abnormal number of charges of stacked items


temnix

Recommended Posts

There is an item with three abilities, all powered by charges. When the charges for an ability run out, the "item vanishes." The first ability has 1 maximum charge, the second has 10 and the third has 1 again. The item is added to stores with a simple action, #0 #0 #0 for charges, so that the maximums should be in place. When the item is bought and stacked, though, something weird happens: the number of charges for the first ability of the item stacks for some reason, though for the others not. If you have two pieces, you will see 2 10 1 in the "Use item" menu. What is more, if the third ability is used (really, any of them, but the third one is just the easiest to test for), the whole stack disappears as if depleted. Both the stacking of the charges for the first ability and this whole-stack depletion are strange. Is this familiar to someone? What can be done to avoid it?

Link to comment

There is no charge maximum (aside from the field size - 65535).  The charge value on an item ability indicates how many it will have after being recharged, but it can be spawned with any amount of charges.

Items are not designed to have both charges and stack sizes. The first ability charges and stack size share the same field in CRE/ARE files, with stack size taking priority.

Each item ability independently defines what happens when it's charges are depleted (remain, vanish, replace) - it doesn't matter what other abilities it has or how many charges they have remaining.

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...