mfi
LOELeague of Extraordinary FoundryVTT Developers
•Created by mfi on 12/9/2023 in #system-development
Importing an npm package into a foundry system
import minimist from 'minimist';
That line alone when included in my module's hook file is resulting in the system breaking.
Do we need to include webpack/Vite/or something of the sort? Why isn't the software handling this automatically? Is there a tutorial we can follow?
13 replies
LOELeague of Extraordinary FoundryVTT Developers
•Created by mfi on 11/13/2023 in #system-development
Dialog Box Auto-Closing Upon Opening 2nd Time
I've been appending custom functionality to the simple worldbuilding system. At this time, I'm trying to loop over all actors and then use and their items to add things up and perform rolls. To add modifiers, I want to make a dialogue box pop up wherein I can type in additional modifiers/etc, such as +1att (give the attacker +1 advantage to their role under value)
The first time, it works! It prints verbose. That is the "building block" string for me to build additional logic on top of.
The 2nd time, the dialogue just instantly returns "" and then it doesn't print verbose.
Has anyone else had issues with Dialogues behaving so oddly? Why is my new Dailog instantly closing with no value?
9 replies