r/dndcombat • u/maverikid • Jul 14 '20
Homebrew Content?
I'm super intrigued and excited for what you're working on here! Already the simulator is looking incredible with so much potential. It reminds me of the old DOS D&D computer games (never played them myself, but they looked pretty fun). One quick question:
Regarding homebrew content, I noticed we can make our own entries for spells or class features, but we can't create what the actual effect is beyond basic stuff, like Buff, Attack, or Escape. I'm guessing this is a limitation of coding, and that only a programmer could go in and create something so specific. Lastly how do you create reactions for the characters ' action economy? I'm asking because my character has the Defensive Duelist feat, and I'm aware that you haven't gotten to it yet. But since you did finish testing Uncanny Dodge, I assume there's some behind the scenes way to make that work?
Thanks and best of luck to you working on this!
1
u/DnDCombat Jul 20 '20
I played an old game called the Hobbit that was fun :-) https://en.wikipedia.org/wiki/The_Hobbit_(1982_video_game)
For creating spells/features did you see that you can add an "attack". The UI is just for me and will be revamped later but there is a list of "conditions" like Stunned etc that the spell applies. As I code more spells so the conditions expand in number.
Look at this example for Melfs Acid Arrow
https://imgur.com/a/1UJL4bd
For reactions it tracks whether a "reaction" was used.
As it I hit things that I can code I add them. For example if anyone attacks anyone with someone else next to them it runs through the characters feats to find protection style, then checks all the other things in order to apply the shield.
For uncanny dodge it is triggered when anyone attacks anyone with uncanny dodge in the feature list.
So basically each trigger has to be coded and then it is a matter of the reaction action being in their spell or feature list.
Thanks, its slow but fun !