javalent / fantasy-statblocks

Create Dungeons and Dragons style statblocks for Obsidian.md
MIT License
346 stars 72 forks source link

Unable to enter formulas into Dice Calbacks in the Statblock Layout #314

Closed Madmaxneo closed 7 months ago

Madmaxneo commented 9 months ago

Check for existing bug reports before submitting.

Expected Behavior

I am trying to enter this formula return [{ text: "1d%!5>=96+" + monster.Stamina}]; into the Dice Callback section of the Property Line in the Statblock Layout. I should be able to add the formula.

Current behaviour

I am unable to type anything in the Dice Callback or the Callback section as those sections act like they are protected fields and do not allow me to enter anything.

Reproduction

  1. Click on a layout for Statblock.
  2. Then click on add Property line.
  3. Click on the pencil symbol to edit the property line
  4. Add the name of the monster property you want to add in the "Link Monster Property" box.
  5. Scroll down to Dice Callbacks and try to enter anything in that box. It will not allow me to.
  6. I clicked on Render as Markdown but that doesn't help.

Which Operating Systems are you using?

Obsidian Version Check

1.4.16

Plugin Version

3.16.1

Confirmation

Possible solution

No response

valentine195 commented 9 months ago

I can't recreate this. Are there any errors in console?

Madmaxneo commented 9 months ago

No errors pertaining to Dice Roller or Fantasy Statblocks. The errors I do have are for missing links in Breadcrumbs and the map icons I added to Leaflet (the icons do still work though). Basically the block where you enter the formula for the dice callback will not let me enter anything, like it's set to not allow entries.

On Tue, Dec 5, 2023 at 6:55 PM Jeremy Valentine @.***> wrote:

I can't recreate this. Are there any errors in console?

— Reply to this email directly, view it on GitHub https://github.com/javalent/fantasy-statblocks/issues/314#issuecomment-1841898773, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLKBO4OW6I6L2E4TXQC7HDYH67A5AVCNFSM6AAAAABADXWL6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBRHA4TQNZXGM . You are receiving this because you authored the thread.Message ID: @.***>

Madmaxneo commented 9 months ago

Another thing is that the formulas in the Dice Callbacks I have from before show up at the bottom of the box instead of at the top (where they used to show up at). image

valentine195 commented 7 months ago

Unfortunately, I still can't recreate this.