Forien
Forien
LOELeague of Extraordinary FoundryVTT Developers
Created by Grimwood_Games on 9/13/2024 in #system-development
How do I make an @variable
that would be a getRollData() method on Actor Documents. https://foundryvtt.com/api/classes/client.Actor.html#getRollData
3 replies
LOELeague of Extraordinary FoundryVTT Developers
Created by webb.aidan on 9/3/2024 in #commissions
Macro to band-aid fix V12 lighting issue with overhead roof tiles and vision types
pm sent
2 replies
Handlebars looping through getters
foundry.js@7741, but it's best to just follow linking in your IDE if it supports it. Or just ctrl+f and search for the function's signature
4 replies
Handlebars looping through getters
Seems like you cannot pass options to renderTemplate itself, but it looks like you could easily make your own version and pass whatever options you want 😉 However, it also seems like something called allowProtoMethodsByDefault is set to true so it should work for you by default if I understand the docs you linked 🤔 I'm not that good with hbs, so that's about the extent of what I know
4 replies
LOELeague of Extraordinary FoundryVTT Developers
Created by Ashby Blackburn on 3/14/2024 in #system-development
Absolutely new to all of this, need help with a silly query.
I do not know about the method you showed, all I know is that Actor#getRollData() method should return an object of key-value pairs that will be used by rolls, where @something.is.here would be a something.is.here key/path in that object.
10 replies
LOELeague of Extraordinary FoundryVTT Developers
Created by Ashby Blackburn on 3/14/2024 in #system-development
Absolutely new to all of this, need help with a silly query.
I do not know too much about WIki. There is some information about it on Foundry's Knowledge Base. Otherwise you could take a look at DND 5e 3.0.0+, or at effect refactor branch of WFRP4e, as both systems switched/are switching to Data Models (other systems probably as well, but I'm not as familiar)
10 replies
LOELeague of Extraordinary FoundryVTT Developers
Created by Ashby Blackburn on 3/14/2024 in #system-development
Absolutely new to all of this, need help with a silly query.
Also I do not know what system you are making, but abilities is something that is more like dnd keyword, you should probably use term specific for your system (attribute, characteristic, stat etc.) to not confuse GMs and players
10 replies
LOELeague of Extraordinary FoundryVTT Developers
Created by Ashby Blackburn on 3/14/2024 in #system-development
Absolutely new to all of this, need help with a silly query.
you need to modify the Actor#getRollData() to properly handle Roll Data. Other things you have probably work because they were in the boilerplate already
10 replies
LOELeague of Extraordinary FoundryVTT Developers
Created by Ashby Blackburn on 3/14/2024 in #system-development
Absolutely new to all of this, need help with a silly query.
I might be wrong, but I think template is now deprecated in favor of Data Models, which is preferred. Not saying using templates is wrong, but its old way of doing it. Anyway, I do not see your entire template here, so not 100% sure on cause, but assuming fortitude is defined leave one question: have you added fortutide to Roll Data? 🤔
10 replies
Boilerplate.css file
if you changed your manifest file (like path to css), you need to restart foundry, otherwise it will not be seen. but that does not explain reappearing files
12 replies
Boilerplate.css file
then it should not reappear unless you pull from git again. if it does, then it's some weird voodoo going on
12 replies
Boilerplate.css file
and you deleted the scss file as well?
12 replies
Boilerplate.css file
You probably have some compiler that compiles boilerplate.css from boilerplate.scss that you are running. Probably good idea to study your IDE and/or npm, whatever you are using to build the system
12 replies
Trouble with Synthetic Actors (unlinked tokens)
anyway, I think you should try asking on Foundry discord in the #dev-support channel
24 replies
Trouble with Synthetic Actors (unlinked tokens)
hm, could be, but can't find it ;P
24 replies
Trouble with Synthetic Actors (unlinked tokens)
and socket.js is your system file?
24 replies
Trouble with Synthetic Actors (unlinked tokens)
what Foundry version are you using?
24 replies
Trouble with Synthetic Actors (unlinked tokens)
unlinked actor is still an Actor Document, so I just go actor.update() or token.actor?.update(). There really is no difference on higher level between linked and unlinked tokens and in most cases you should not need to care about distinction 🤔
24 replies
Trouble with Synthetic Actors (unlinked tokens)
It's hard to tell... errors definitely say that something tries to update embedded document called "actors"... maybe some _onUpdate() or _preUpdate() or some hook? I never encountered this before...
24 replies
Trouble with Synthetic Actors (unlinked tokens)
Seeing actual error that points to specific file and related code would definitely help
24 replies