League of Extraordinary FoundryVTT Developers

LOE

League of Extraordinary FoundryVTT Developers

Join the community to ask questions about League of Extraordinary FoundryVTT Developers and get answers from other members.

Join

commissions

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

I think that this seems to be storing

I think that this seems to be storing the UUID of the item itself. If that is the case, you can get the object by calling UUID(<id>).

Hi, friends! I'd like to build a module

Hi, friends! I'd like to build a module and I could use a shove in the right part of the docs to go looking first. The goal is to modify the default roll dialog to add an additional button. Alongside "Advantage," "Disadvantage," and "Normal," I'd like to add a button to trigger the "Emphasis" roll, a mechanic which rolls 2d20 and takes the result farthest from 10. It's a mechanic my players really enjoy for high-risk situations. I have a macro working as a quick proof-of-concept which emulates the behaviour, but I'm not sure where to start in terms of modifying the built-in roll dialog so I can do it in a less hacky way. Any ideas?...
No description

Well now I'm downloading lancer

Well now I'm downloading lancer

Good call

It's more reliable to enter the directory.

MathJS

as a javascript dependency

Foundry VTT Module Making for Beginners ...

(https://hackmd.io/@akrigline/ByHFgUZ6u)
It is out of date due of v9 api's but would be nice to have it updated it for v10. I have encountered an error when reading a module and it is causing problem to the foundryvtt...

Here s an example No template data in

Here's an example. No template data in the actor object, but the object is associated with a template in templates.json
No description

ilthid stop drag

Actually, would it be possible to modify the core function that allows people to click and drag tokens in the first place?

new consumable types

Tried adding localization strings for some new consumable types, but keep getting this ("DND5E.Consumable[...]") no matter what. I'm 99% I have followed all guides on localization to the point. en.json in the module.json, etc etc, with all the needed strings inside.
No description

Overriding onDropItem & onSortItem

You'd override them in your sheet class.

dragdrop shennenegins

Right now, a user can drag a spell onto their character sheet. I store that in a 'spell' array and list it in the 'spell library'. They can prep the spell with the UI and that (for now) sets a flag which causes it to be displayed under the 'prepared spells' side as well. Ideally, I'd like a user to drag the spell from the library side to the prepped side and achieve the same thing. I don't need a solution and I haven't started trying to do this, but I'd really appreciate if someone could sim...
No description

expand arrays

Is there a way to expandObject except for an Array?

Dialog shennanegins

TIL the button callbacks for Dialog.prompt and Dialog.confirm can be asynchronous. ```js const foo = async () => { const response = await Dialog.prompt({...

Primary and Embedded Updates

TIL how to update embedded documents at the same time as parent documents. ``` game.actors.getName("Foo").update({ 'data.traits.size': 'sm',...

compendium shennanegins

TIL about CompendiumContent.getDocuments taking nedb queries.
game.packs.get('dnd5e.heroes').getDocuments({ 'data.abilities.con.value': {$gt: 14} });
game.packs.get('dnd5e.heroes').getDocuments({ 'data.abilities.con.value': {$gt: 14} });
More info about nedb queries: https://github.com/louischatriot/nedb#finding-documents...

devMode json changed warning

I checked the module repo and I honestly can't figure out where I would plug in my code. I'd be guessing I'd be adding entirely new file like how the anchor and disable template cache do, but the existing folders make no sense for what this would be about....

socket woes

not the socket firing

(If you want to see the animation, click the link --- its quite gory, be warned)

@ghost @carter_dc All set! Thanks @carter_dc for the one-on-one, I finally got a generic socket listener set up that I can fire hooks through: ```javascript Hooks.on("init", () => { game.alienrpgoverrides = {...

select in sheet

Also, is the data actually saved on the actor? You can inspect the data in the console opened with F12 by using game.actors.getName("My Actor").data.toObject()

ToDontThings

we should have threaded a long time ago I think, whoops
Next