reonZ / pf2e-dailies

8 stars 9 forks source link

API For Custom Dailies #58

Closed Axel-of-the-Key closed 7 months ago

Axel-of-the-Key commented 7 months ago

There is no mention here for the structure for custom dailies. I am attempting to create one along the lines of other choice-based daily preparations with my homebrew, but am unsure what each field requires as there is no tutorial on how to use it that I can locate.

reonZ commented 7 months ago

All the built-in dailies are made using the same method you would create a custom daily ,so just go and look at the source code. https://github.com/reonZ/pf2e-dailies/tree/master/src/data

Note that the createLoreSkillDaily, createComboSkillDaily, createLanguageDaily, createResistanceDaily and createScrollChainDaily functions used to create some of the built-in dailies are directly available in the custom daily context, so you could do

return createLoreSkillDaily("my-daily-key", "<uuid-of-the-feat>")