Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I am trying to get a correct tracking for an item power's child. I am trying to add a power to an ammo stack of 50. All is fine, but I noticed when the ammo (with a normal stack of 50) is added as a custom magic weapon, it seems to default the stack to 1. Is there a way around that?
Render 5500 container.parent.field[trkMax].value = container.child[gCustMagic].field[trkMax].value Last edited by Frodie; October 24th, 2017 at 05:58 AM. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You're changing a field's value in the render phase? That's really late - won't everything be done by then?
|
#2 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I was thinking it was the timing, but when I was looking at the timing, I saw the trk field on the ammo in the custom magic was only 0. Which is different when you just get the normal ammo under weapons.
Last edited by Frodie; October 24th, 2017 at 07:33 AM. |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
I'm sorry, but I don't understand what your last post is trying to say.
Have you seen the new debug tools for timing issues - you can now see when individual fields changed. So, when is trkMax being set on the pick you want to look up? Try setting your timing close behind that. |
#4 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I attached a screenshot. The "Ammo, 45 cal" normally has a quantity of 50, but when you add it as a Custom Magic Item, the quantity drop to 1.
|
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Take a look at arrows in the editor - see two different versions, one for use as normal ammo, and the other for use as magic ammo? You've done the same for your new ammo, and used the same settings?
|
#6 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
ah, cool. I'll give it a look. Thank you.
I see, you have to have two different types, one non-magical and the other magical. But your choice of magical lot size in only 1 or 50. Not a big deal, I can just change all the lot sizes to 50 and it will work out. Thanks again! Last edited by Frodie; October 24th, 2017 at 08:51 AM. |
#7 |
|
|