Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Working with Tables #366

Open
3 of 7 tasks
HippyCraig opened this issue Jan 1, 2025 · 1 comment
Open
3 of 7 tasks

🐞 Working with Tables #366

HippyCraig opened this issue Jan 1, 2025 · 1 comment

Comments

@HippyCraig
Copy link

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

so just for simplicity I created a table and I want the user to click on the dice on the text line: Rool from Table 3, which works ok but Im not sure why some things are nessesary and how to add additional flags.

| d6  | Encounter       |
| --- | --------------- |
| 1   | Damaged Walls   |
| 2   | Treasure        |
| 3   | Pit Trap        |
| 4   | Troglodytes     |
| 5   | Skeletons       |
| 6   | The Lost Knight |
^blockid003

Roll from Table 3: `dice: [[TTRPTables^blockid003]]|Encounter`

For starters since the table is in the same MD doc Im not sure why I have to mention it here, what if I decided later to change the name of the page then all my rolls would break.

Second is that I tried to add the |none flag but that doesnt seem to work correctly. I even have it set globaly to not have a value on page load but it still runs the dice formula. I even tried adding it inline with the formula but there isnt anything in the documentation that I saw that disucsed how to add mutiple flags. Some examples gave me some clues but no of it worked

Roll from Table 3: `dice: [[TTRPTables^blockid003]]|Encounter, none`
Roll from Table 3: `dice: [[TTRPTables^blockid003]]|Encounter|none`

Utimatly I would just like to have the ID of the table if its in the same page and to be able to add mutiple options together

Current behaviour

The current behavor based on what I tried above was just displaying the formula on on the rendered page and doesnt function as anything but text.

image

Reproduction

image

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.7.7

Plugin Version

11.4.1

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

No response

@HippyCraig
Copy link
Author

I was doing some more testing and in the above example the none is actually displaying the middle value instead of empty. I found this out by just using none on a random roll of the dice and that does show empty.

So in the above example it always pick Pit Trap when the page is loaded. Hope this helps explain it a little more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant