update item attribute on actorsheet
I have an item type
rangedweapon
that has a property of consumes
And I want to allow the user to set the target value to another item id.
So on the character sheet I have something like
And this renders the option
's correctly with name and id as the value. And I can select it.
but when I close and re-open the the character sheet. the item.system.consumes.target.value
is still ""
any idea what i'm missing or how i might debug this more?3 Replies
name
doesn't work for embedded documents (like items), you'll need to use a change
event listener that's created in the actor sheets activateListeners
in order to process the data and update the correct item.ahh! okay that makes sense. Thanks, was starting to go crazy
Yeah, it's a tad confusing at first, but I'm glad I could help point ya in the right direction. :)