bluegreymouse
LOELeague of Extraordinary FoundryVTT Developers
•Created by bluegreymouse on 6/28/2024 in #system-development
Accessing data in active effects via @ symbol
I noticed other systems are able to expose certain bits of data and access it in active effects eg: attribute: system.armor.ac mode: add value: @str.value
However I can't seem to get the same functionality in my system.
I have an actor data model module>data>actor.mjs file that just exports an actor class that extends
foundry.abstract.TypeDataModel
I have an actor document module>documets>actor.mjs that extends the actor data model
in module>documents>actor.mjs I expose the abilities to the top level via getRollData()
However when I try and use this in an effect the value of the attribute I'm changing returns NaN
I know my attribute is correct because if I change the @str.value
to simply 1
I get the expected output4 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by bluegreymouse on 5/21/2024 in #system-development
effect in "add" mode continually re-applied to actor/sheet
I have a datamodel value of type
new fields.ArrayField(new fields.BooleanField(), {
initial: [false],
})
And I have an effect in "add" mode that adds another false
to the array. Which seems to work. however, when i close and re-open the character sheet I see that the array is now 3 [false, false, false]
. Other datamodal attributes eg: number don't behave this way.
Am I interpretting the ArrayField
incorrectly?5 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by bluegreymouse on 5/14/2024 in #system-development
SchemaField with increasable max?
I'm trying to understand the new schema fields and have a situation where I sometimes want to increase the "max" value of a field. Is that possible?
I have this
but it seems I cannot increase the max value via
carryLoad.max += 10
for example3 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by bluegreymouse on 5/13/2024 in #system-development
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?4 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by bluegreymouse on 3/30/2024 in #package-development
hook preCreateToken update token name
I'm trying to update the token name when dropping a token on a scene.
I basically have something like this
I'm trying to follow the operation described here
https://foundryvtt.com/article/v11-actor-delta/
but getting an error related to
id
and embeddedCollection
how should I update a token in the preCreateToken
hook18 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by bluegreymouse on 3/29/2024 in #system-development
empty pack
3 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by bluegreymouse on 3/27/2024 in #package-development
Error on package install
15 replies