madcatprimary
Active member
I've got an eval script here I cribbed from an item in the community dataset that seems to work great to add an ammo tracker to an weapon that uses the Capacity field.
perform container.parent.assign[User.Tracker]
container.parent.field[trkMax].value = container.parent.field[wCapacity].value
I found it on the laser sight, and trimmed it down so that instead of using the container.parent it just adds directly to the weapon.
perform assign[User.Tracker]
field[trkMax].value = field[wCapacity].value
This works if the weapon is not a custom weapon. When adding weapons to the Custom Weapons section, the value for trkMax comes up empty, like it didn't run the script, although it did add the tracker (just with a value of 0). In the tasks, the difference between a custom and standard version seems to be that Eval script 1 (thing) isn't present on the Custom weapon at Post levels/10000 as it is on the standard weapon. I tried changing the order, but it just doesn't show up at all for the custom item.
As far as I can see, the eval script is not running on the custom item.
perform container.parent.assign[User.Tracker]
container.parent.field[trkMax].value = container.parent.field[wCapacity].value
I found it on the laser sight, and trimmed it down so that instead of using the container.parent it just adds directly to the weapon.
perform assign[User.Tracker]
field[trkMax].value = field[wCapacity].value
This works if the weapon is not a custom weapon. When adding weapons to the Custom Weapons section, the value for trkMax comes up empty, like it didn't run the script, although it did add the tracker (just with a value of 0). In the tasks, the difference between a custom and standard version seems to be that Eval script 1 (thing) isn't present on the Custom weapon at Post levels/10000 as it is on the standard weapon. I tried changing the order, but it just doesn't show up at all for the custom item.
As far as I can see, the eval script is not running on the custom item.