-
March 10th, 2018, 02:04 #11
I'd like to replace this functional but less elegant solution with a single roll that can figure out what to roll and then roll it.
boonbane.png
-
March 10th, 2018, 02:07 #12
I am sure there are ways to do it mozmonar
I look forward to seeing what you come up with!
-
March 10th, 2018, 02:35 #13
-
March 10th, 2018, 02:50 #14
-
March 10th, 2018, 03:31 #15
Yes.
Find it all here: https://www.fantasygrounds.com/forum...(dice-rolling)Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 10th, 2018, 04:29 #16
That is all very helpful. Is there documentation about what a roll table (rRoll) should contain? I did not see it on https://www.fantasygrounds.com/refdoc/ and I am not 100% sure what is part of FG and what is part of MoreCore or other rulesets.
Originally Posted by damned
When outputting the contents of what a roll looked like before rolling, this is what came out (rRoll):
Code:{ s'sType' = s'orderresult', s'aDice' = { #1 = s'd6', #2 = s'd6', #3 = s'd6' }, s'nMod' = #0, s'sDesc' = s'Testing' }
Code:{ s'aDice' = { #1 = { s'result' = #1, s'type' = s'd6' }, #2 = { s'result' = #4, s'type' = s'd6' }, #3 = { s'result' = #6, s'type' = s'd6' } }, s'nMod' = #0, s'sType' = s'orderresult', s'bSecret' = bFALSE, s'sDesc' = s'Testing' }
mozmonar, for your situation could you just have a Boon +/- defined as /mod 1 and then Bane +/- as /mod -1 ? Then after you click all the boons and banes and do the /boonbane roll your createRoll can check if the Modifier (nMod in rRoll) is positive or negative or zero (in which case just send a message to chat saying nothing is rolled)? And then based on that it could set the correct number of dice in rRoll (table.insert(rRoll.aDice, "d100"..sSize); for banes), etc?
-
March 10th, 2018, 22:00 #17Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 10th, 2018, 22:15 #18
Typed in wrong window...ignore.
Last edited by mozmonar; March 10th, 2018 at 22:17. Reason: Wrong window
-
March 11th, 2018, 15:22 #19
- Join Date
- Jul 2007
- Posts
- 3
Thanks very much damned, delux, and Trenloe --- extremely helpful. If you or others have the time, I'd like to ask a few more questions:
1) About MoreCore specifically: is there already functionality to change the type of roll based on a flag of some kind? I'm thinking of something like the shadowrun karma mechanics, where normally you'd roll for number of successes with a bunch of d6, but occasionally you'd modify the roll with karma and make the same number of dice explode. Ideally you'd be able to add a karma flag to the character sheet, or modifier stack, or similar, so you didn't need two or more buttons for each skill.
2) Related --> does the modifier stack accept non-integer values, like the string "karma"?
Again, many, many thanks for your assistance. This appears to be a great online community!
Best,
JoeLast edited by altepeter; March 11th, 2018 at 15:36. Reason: Realized some questions were already answered elsewhere.
-
March 11th, 2018, 15:43 #20
1) The easiest way for MoreCore to handle this would be to have a different roll setup, or maybe a flag in the same roll. Either way, it will require the roll handler to be setup to handle it, and the relevant roll added to the character sheet. You'd end up with two separate rolls - one with karma and one without it.
2) Nope. The modifier box only takes numbers. You could maybe look at applying a "KARMA" effect to a character for one roll, then look for that effect in the dice roller.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks