League of Extraordinary FoundryVTT Developers
Join the League of Extraordinary FoundryVTT Developers server to ask questions!
JoinLeague of Extraordinary FoundryVTT Developers
Join the community to ask questions about League of Extraordinary FoundryVTT Developers and get answers from other members.
Joincommissions
package-development
system-development
other-topics
workgroups
development
package-ideas
package-compatibility
pixijs-canvas-shaders
progress-reports
dev-guides-and-docs
ui-ux-sheets-forms
hooks
development-basics
manifest-plus
tools-and-workflow
active-effects
wiki
dnd5e-dev
package-stewardship
swade-dev
typescript
starfinder-dev
lancer-dev
pathfinder1e-dev
foundryvtt-v10-research
coc7-dev
a5e-dev
v10-updatathon
svnsea2e-dev
package-jam-2022
blackflag-dev
api-announcements
hook conventions
pre...
hooks are executed on the machine that initiated the action? Ie, if a user updated an actor, it would call preUpdateActor
only on their machine, and then updateActor
on everyone elses?API doc topics
item to actors script
compendium errors upgrading to v9
Blind Chat Messages
with just a parent class and the class name, is there a way to instantiate a new class?
createEmbeddedDocuments issue
Compendium loading
DocumentData shennanegins
update
an Actor or Item's data.data
with arbitrary information that isn't defined in the system template. This data survives database compaction.flag shenannegins
flags
key on a document to whatever you want to (e.g. a string). This is a sure fire way to completely ruin someone else's day, or your own day when another module un-does this by setting a flag 'correctly'.
```js
game.actors.getName('A Character').update({
['flags']: 'A value'...S3 File Picker Settings
Tagger Code Review
mergeObject
mergeObject
is a beast of a function which lets you smash two objects together and that options argument lets you control how exactly you want to merge things.
Argument 1: Source Object --> What we are merging into (this is going to be mutated by default)
Argument 2: Mod Object --> What we are applying to the Source
...custom hud element
draggable
class which at least changes the cursor, but no dragging can actually happen yet (assuming I need a handler somewhere but don't want to reinvent the wheel.)Dynamically get Object property from user input
myactor
) and I'd like to have an input box which the user can use to refer to any of its properties, by typing in a path (i.e. @data.abilities.str.proficiency
).
How can I get that property within my script after they type in the box?...Scroll Into View troubles
Element.scrollIntoViewIfNeeded()
is working, but Element.scrollIntoView()
isn't?
The IfNeeded version is apparently "Non-Standard" https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoViewIfNeeded
Not sure what I should do here...
Could someone test which works best on your Foundry instance?...Overlay hiding stars
Temporary Documents