• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Item Power trkMax container.child

Frodie

Well-known member
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:
You're changing a field's value in the render phase? That's really late - won't everything be done by then?
 
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:
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.
 
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.
 

Attachments

  • Untitled1.jpg
    Untitled1.jpg
    354 KB · Views: 5
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?
 
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:
Back
Top