Guides discussion thread

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

May 8, 2022 10:41 am
This thread is for discussing the "Advanced Rules Definitions for GMs" and Dice roller guide.
Last edited May 8, 2022 1:47 pm
May 8, 2022 2:10 pm
Thank you for providing these guides! I e got a coupon games I'm planning on running and I'll admit I've been pretty lost on how to implement some of the features.
May 8, 2022 5:28 pm
I'll provide some details for Feng Shui. I'm likely to run a game soon, so it's worth adding that to your excellent documentation.
May 8, 2022 6:25 pm
witchdoctor says:
Thank you for providing these guides! I e got a coupon games I'm planning on running and I'll admit I've been pretty lost on how to implement some of the features.
Cheers. Any difficulties then add a thread to the Questions and Help forum. I hope that forum will become a sort of a knowledge base for implementing some of the more complex and niche functionality.
May 23, 2022 10:25 am
I really enjoys the BBCode editor syntax colouring script
May 23, 2022 11:35 am
runekyndig says:
I really enjoys the BBCode editor syntax colouring script
Yes, that's my favourite too. If you take a look at the script, you'll see there's surprisingly little code. It's all CSS and regexes.
May 23, 2022 5:43 pm
Wow, that color coding really does enhance readability on code-intensive custom character sheets, as well as editing posts.
May 23, 2022 6:20 pm
Qralloq says:
Wow, that color coding really does enhance readability on code-intensive custom character sheets, as well as editing posts.
Thanks. I'm quite pleased with how it turned out for a first version. The chaps helped with styling and testing.

I'm a little disappointed that the italics didn't work, but the bold more than made up for it (even if it is slightly fuzzy).

It seems a good point to evolve from anyway.

----
Edit: It gets wicked slow on HUGE posts though (like this). I'll need to optimize it a bit.
Last edited May 23, 2022 7:28 pm
Jun 15, 2022 6:41 am
I've added a new feature for people using the Homepage games highlighting script.

Here is my list of bookmarked games, highlighting those where I wasn't the last to post.
https://i.imgur.com/1Njo5Hv.png

If I click the hourglass, then the highlighting stops until someone next posts in that thread.
https://i.imgur.com/4Ehn8XK.png
Jun 15, 2022 7:30 am
Adam says:
I've added a new feature for people using the Homepage games highlighting script.

Here is my list of bookmarked games, highlighting those where I wasn't the last to post.
https://i.imgur.com/1Njo5Hv.png

If I click the hourglass, then the highlighting stops until someone next posts in that thread.
https://i.imgur.com/4Ehn8XK.png
https://c.tenor.com/rmBpvOXB_EEAAAAM/chubstr-bed.gif
Aug 30, 2022 8:36 am
The DNDbeyond import script is flipping awesome @adam! I really look forward to playing around with it
Aug 30, 2022 8:52 am
@runekyndig Cheers buddy. With the DnDB code copy/pasted to a tamper monkey script, I think the chrome extension is now deprecated and should be removed.

It's only code and I like to think people will find ways to improve it.

Any bug fixes/improvements to the script can be pushed to GitHub or distributed as your own script (and maybe get one of the admins to update the install script location).
Dec 11, 2022 1:53 pm
Adam says:
Print helper

This script tidies up some of the full-thread printing and allows you to choose what to print.

1. Navigate to your thread and choose the "full page" option.
[ +- ] Screenshot
2. There will now be a "Print options" on the header bar.
[ +- ] Screenshot
3. Open that up and choose what you'd like included in the print and whether spoilers should be opened.
[ +- ] Screenshot
4. Print the page and save to PDF.
[ +- ] Screenshot
5. If you need to edit the PDF or convert it to MS Word then that's not my problem. Try Google.

📜 Install script
đŸ˜” Amazing tool set, thanks
Dec 14, 2022 7:51 pm
Dr_B says:
đŸ˜” Amazing tool set, thanks
You're welcome.

I'd be interested to know in this thread if people try out the new cards script too.

https://i.imgur.com/sHF8caq.png
Dec 14, 2022 8:15 pm
@Adam, you mad genius you. I'm going to try the Tarot setup tonight.
Dec 14, 2022 9:17 pm
Aight, who's setting up an exploding kittens deck?
Dec 14, 2022 9:25 pm
Makes me wonder if there's some way to get Harrow cards working with that system for Pathfinder games.
Dec 14, 2022 9:35 pm
It was @Chalrytharendir's idea. I just scripted it.
Dec 14, 2022 9:53 pm
Love the Tarot card feature.
Dec 14, 2022 10:05 pm
Windyridge says:
Love the Tarot card feature.
It's any card decks. If you have images or just text, it should work for those too.

The major downside is, as a script, you'd need everyone in the game to use that script or it can't translate the [draw BBCode.
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
Jul 21, 2024 11:04 pm
I am bad at coding. I normally just copy paste and edit.
I am trying to make a "Card against Humanity" style Deck.
2 Decks, Response & Prompt.

I copied the code and it says the JSON is not valid...

Help Please.
[ +- ] Cards For DND insanity.
Jul 21, 2024 11:21 pm
Smiley says:
I am bad at coding. I normally just copy paste and edit.
I am trying to make a "Card against Humanity" style Deck.
2 Decks, Response & Prompt.

I copied the code and it says the JSON is not valid...

Help Please.
I don't know if this is 100% but I fixed the obvious problems I saw.
[ +- ] Fixed Code
Jul 21, 2024 11:48 pm
@Smiley
Here is the fixed version of the code! You had extra commas - don't leave commas before closing brackets! - and a problem with the first card of the second deck - specifically, the quotation mark within the card ("A dragon's favorite pickup line: "________"); I suggest you replace it with «».
[ +- ] Code
If you're adding it in blank advanced rules, also add {} around it. Like {"decks" at the beginning and }} at the end.

Edit: oops, ninja'ed. Well, you have two versions if one doesn't work. XD

PS: You don't really need "cards" part if you're not doing extra things like reversible cards, but if you'd like things uniform, here is a version with the second deck formatted alike:
[ +- ] Code
Last edited July 22, 2024 12:05 am
Jul 22, 2024 12:09 am
That Worked!!!
Thank you
Aug 26, 2024 5:56 pm
Is there a way with the Dice Rules to count a particular result twice in the countTotal? For example, with most of the 2d20 games from Modiphius a 1 on the roll counts as two successes. I've got this working for the d20 roll portion, but It's still only counting a 1 as a single success (even though I have it listed twice).
[ +- ] 2d20 from Modiphius
I also tried TN ## and "natural","<=##" in the above but that didn't seem to work at all.
Aug 26, 2024 9:22 pm
@Knighthawke
## doesn't work with the "natural" rule, I believe. At least it never did for me.

As for doubling successes, I tried a few things, but I don't think there is a way to achieve it automatically. If you do multiple "countTotal" rules, each later one will replace the previous, so you can't add them together. (And "content" didn't let me make 1s into 1,1s either.)

I think your best bet is to make 1s *really* noticeable, so players remember to add extra successes themselves? Something like:
https://drive.google.com/thumbnail?id=1pSUXKYcEHl0rpJEBch9YqS_9Thue5RHo&sz=w700
The actual result here is 14. :D
[ +- ] Code
Last edited August 26, 2024 9:23 pm

You do not have permission to post in this thread.