Guides discussion thread

Be sure to read and follow the guidelines for our forums.

load previous
Dec 15, 2022 2:00 am
Is there a way to make it give the Tarot upright or reversed like with real cards?
Dec 15, 2022 6:29 am
Verrain says:
Is there a way to make it give the Tarot upright or reversed like with real cards?
Not with that code.

https://i.imgur.com/NaxKmL1.png

I've just updated the code to support that. In doing so, I had to change the RNG - this means any cards you've already drawn will change. Hopefully, nobody was using it live yet!
[ +- ] Reversible deck JSON example
Last edited December 15, 2022 9:57 am
Dec 16, 2022 3:24 am
These look really great. I'm having fun envisioning how to use these. Oh, Ravenloft and Tarot... mwa haha
Dec 24, 2022 10:55 pm
Adam says:
Verrain says:
Is there a way to make it give the Tarot upright or reversed like with real cards?
Not with that code.

(Snip images/spoiler)

I've just updated the code to support that. In doing so, I had to change the RNG - this means any cards you've already drawn will change. Hopefully, nobody was using it live yet!

Love the ability to create custom decks. :)

Where would I put the below in my game info to use it with the Decks script? I try just pasting it in the advanced rules definitions, and I get a message about it being invalid JSON...
[ +- ] SWADE Adventure Deck
Dec 24, 2022 11:59 pm
You would need an extra curly bracket before and after.
Dec 25, 2022 10:14 am
@Knighthawke this is the code.
[ +- ] code
You need a comma "," at the last line if there's more code following. Likewise, your previous piece of code should have a comma before this follows.
[ +- ] before and after code should look like this
Dec 25, 2022 4:58 pm
Qralloq, Antiproduct - Thank you both very much! It's working like a charm. :)

In case anyone else wants to use it, here's the code. Anyone running a SWADE game is welcome to use it.
[ +- ] SWADE Adventure Deck for the DECKS script
Last edited December 25, 2022 5:00 pm
Dec 29, 2022 10:58 pm
Ok, quick question about the die roller:
https://i.imgur.com/JDSSlfe.gif

I'm using the die code below in the test game.
[ +- ] Die Code in game
Any idea why it's doubling the contentAppend messages for each die?

Also, would these be valid rules?
{"rolled": "d","reason": "DC: ##","total": ">=##","contentAppend": "SUCCESS","highlight": "success bold"},
{"rolled": "d","reason": "DC: ##","total": ">=(##+4)","contentAppend": "RAISE","highlight": "info bold"},

Any help/advice would be appreciated. :)
Dec 30, 2022 1:30 am
Ok, I got this working, somewhat.. The issue I have is it only displays success or failure if "DC: ##" is in the reason. If I try to do it without the reason, (just use default 4/8/12/16/20) and I include the DC, then I get double success/fail/etc…

Thoughts?
[ +- ] Savage Worlds Rules - DC in Reason
Dec 31, 2022 10:36 am
Knighthawke says:
Any idea why it's doubling the contentAppend messages for each die?
For your first rules, I think it's because you were rolling two dice in the same roll. If you roll them separately, the result messages don't get doubled.
[ +- ] These were my testing results
Must be an issue with how the code appends stuff. Which somehow gets fixed by having the reason?.. Maybe you can try to experiment with having an empty reason. Or just make sure to roll the Wild Die separately.
Last edited December 31, 2022 10:38 am
Mar 17, 2023 5:55 pm
OK, I'm not sure if it's as easy as modifying the web address on one of the other scripts(Edit:Tried it, it wasn't) but would someone please make DDB import scripts for these?


https://www.dndbeyond.com/feats

https://www.dndbeyond.com/equipment

https://www.dndbeyond.com/magic-items

https://www.dndbeyond.com/vehicles

https://www.dndbeyond.com/backgrounds

https://www.dndbeyond.com/races



I'd be happy to learn how and go from there. But, I'd need someone to explain and show me how, then hold my hand through one, then double check the 3rd, 4th, etc. until I pull one off correctly with maybe a stupid mistake here and there.
Maybe the best way is give me a good book to get and learn from
Jan 12, 2024 1:46 am
Hey I'm looking for a way to do two things simultaneously.
Firstly I want to be able to say "roll #D#, And highlight all above #"
Aka 3D6 DC5, but not the DC as total, DC as each die.

And also set it up to reroll aces.
Jan 12, 2024 5:35 pm
@PhoenixScientist, for rerolling aces, go to your game settings, find "Advanced Rules Definitions" and mark off the checkmark under "Reroll aces by default". It will automatically add the correct code. You can also add it by hand: just add "diceDefaults": {"rerollAces": true} into the code.

For the DC highlights, unfortunately the code that checks singular dice doesn't seem to support expressions* (you need to use specific numbers), but if you don't have too many possible rolls you can do something like this:

"diceRules":[
{"rolled":"d","reason":"DC1","natural":">1","highlight": "bold success"},
{"rolled":"d","reason":"DC2","natural":">2","highlight": "bold success"},
{"rolled":"d","reason":"DC3","natural":">3","highlight": "bold success"},
{"rolled":"d","reason":"DC4","natural":">4","highlight": "bold success"},
{"rolled":"d","reason":"DC5","natural":">5","highlight": "bold success"}
]

*It says that "natural" does support expressions in the original guide, but none of my testing right now worked. If it did support them, this would be the code:
{"rolled": "d","reason": "DC##","natural": ">##","highlight": "bold success"}
It works if you use "total" instead of "natural", so seems to be a problem with "natural".
Last edited January 12, 2024 5:41 pm
Jan 16, 2024 4:16 am
@FlyingSucculent, I got this to work.
[ +- ] Spoiler
Jan 16, 2024 7:56 am
@PhoenixScientist, glad you figured it out! :D

You do not have permission to post in this thread.