temnix Posted October 30, 2019 Posted October 30, 2019 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? Quote
kjeron Posted October 30, 2019 Posted October 30, 2019 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. Quote
Recommended Posts
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.