Kalltern
LOELeague of Extraordinary FoundryVTT Developers
•Created by Kalltern on 11/3/2024 in #system-development
Check box not linked to the property
I only introduced the equipped boolean later because the check box would not want to stay checked
7 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by Kalltern on 11/3/2024 in #system-development
Check box not linked to the property
Aha! I do not really seek to update the item specifically. the whole idea was to apply the items effects for the character if it is equipped
7 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by Kalltern on 11/3/2024 in #system-development
Check box not linked to the property
With the item name, and checked I had this for the first time
{weapon.equipped} but then I realised the whole thing is inside {{#each weapon as |item id|}}
So i tried to use item but it also did not work
7 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by Kalltern on 11/3/2024 in #system-development
Check box not linked to the property
Thanks for the reply.
I was only using a listener, not getData()
When I used {{log this}} it actually did retrieve information about the object. that the status is equipped false. it also randomly switched to true but that status does not change no matter if I check or uncheck the box
With the name, no I am not sure :D. I used previously only item.equipped but it did not do anything so I started to try everything.
Yes it is an item type weapon. The structure is following
"Item": {
"types": [......"weapon"],
"htmlFields": ["description"],
"weapon": {
.
..
"equipped": false,
7 replies