inherit
168679
0
Nov 18, 2012 17:03:07 GMT -8
Virgil Sovereign
Latet anguis in herba.
686
July 2011
syonidv
|
Post by Virgil Sovereign on Apr 14, 2013 8:40:09 GMT -8
Hi all. There have been some changes made to the Proboards editor that break several of my plugins. I'm presently crushed with work. You'll have to give me until the end of the month.
My apologies, but such is life.
|
|
arek
New Member
Posts: 72
inherit
183874
0
Feb 15, 2014 20:16:38 GMT -8
arek
72
October 2012
arek
|
Post by arek on Apr 14, 2013 9:16:07 GMT -8
I have VDice (Standard Die Edition) and VDice Advanced loaded (both the latest editions). Whilst I can get [ roll ] to work, nothing else seems to. Neither [roll=d6], [roll=2d6], [roll range="d6"], etc., work as stated. The post just shows the syntax (as per image below). It's not showing right in either Chrome, Firefox, IE or Opera (all latest versions). It's the same whether or not VDice Advanced is enabled. Any help would be appreciated. The way vDice works, you can have either the [roll] tag or the [roll range=] tag, but not both. In order for the [roll] tag to work, do nothing - it's already working. for [roll range=] to work, you need to change the range in setting to 1d6* (note the asterisk), and then any roll will work. Note that [roll=] is only supported when [roll range=] is supported, but not when [roll] is supported. --Arek
|
|
arek
New Member
Posts: 72
inherit
183874
0
Feb 15, 2014 20:16:38 GMT -8
arek
72
October 2012
arek
|
Post by arek on Apr 14, 2013 9:52:48 GMT -8
I was curious as to if you can set up specified ranges for the dice roll. Like, I know you can make it where you can edit the range and allow the users to roll different ranges, but I was wondering if you can use this system to make it where they can only do a few specific ranges? I know you can do it for one range under the range tab if you don't add the asterisk, but I'd like to know if it's possible to make multiple set ranges like that. I'd like to be able to set it up where they can roll only a few specific die, with ranges such as 1-100, 101-200, etc. I just don't want them to be able to roll ranges like 1-50 or 1-75 or something random like that. If it's not possible, that's cool. I'm just curious ^^ Or, another solution to help me out, would be to show the range used for the dice with an image? I know you can make it show the range, but only if it doesn't have a set image. Is there a way to show what range the user used to roll, but also have an image for the dice outcome? This is doable by abusing vDice advanced. The setup is rather complicated, but here's how it works: You'll need a "badroll" roll template (set this in advanced templates in vDice Advanced), which is a "catch all" template for bad/unsupported rolls. This template looks something like this: <div class="vdice-sum"><div class="vdice-md"><img class="vdice-image" src="badroll.png"></div></div> You'll need to provide a full url to a "bad roll" image for badroll.png if you use this directly. My sites use a blank d6 with a big red X superimposed on it. You can replace the image with any html you want (within reason, ofc). Once you have a badroll template, you'll need to go into "Advanced Graphics" in vDice Advanced, and set up something similar to the following: for 1-100: pattern=1-100, resource=1-100-$R.png for 101-200: pattern=101-200, resource=101-200-$R.png After all the patterns you support, add the following pattern: pattern=.*, roll template=badroll The above is only an example. $R gets replaced with the result of your roll. Note that you may not even be required to use images (if you want to try it without images, just leave resource blank). If you want to support dnd-style dice, while blocking cheating-type rolls, like I do, here is the pattern you'll want to use: pattern=([1-9]\d*)dN(?:\+\d+)?, condition=$1 <= 10, resource=dN-$R.png replace N with the number of sides you want to support for that particular roll (I use multiple entries for different dice, but it should also work with just one entry if you work on it a bit - the pattern is a "regular expression"). The image resource is optional, and should point to a set of images representing the dice you use. The condition is also optional, but I do recommend using it since the plugin itself treats all rolls of more than 10 dice as rolls of 10 dice (the badroll pattern will catch this and display the badroll template if you use the condition, the plugin will, however, happily roll 10d6 if 20d6 is requested, without saying anything if the condition isn't there). I hope this helps. --Arek
|
|
Dionon
New Member
Thoroughly enjoying v5.
Posts: 140
inherit
131985
0
Nov 26, 2018 8:04:48 GMT -8
Dionon
Thoroughly enjoying v5.
140
October 2008
dionon
|
Post by Dionon on Apr 25, 2013 17:04:15 GMT -8
I apologize if this is already covered, but after installing v1.07, I can't get the roller to work at all. It comes up with blank boxes no matter what variables I put in. My board is bleachd20.proboards.comEDIT: I think I may have found the problem. I'm trying to get the dice roller to roll any dice, not just one specific variable. I want NdS+F where N is replaceable with any number, S is replaceable with any number and F is replaceable with any number. It seems that whatever the range is I put into the Range section dictates what I can roll, and I'm limited to THAT specific range. Is there a way to override this and make the dice roller the way I want it to be? DOUBLE EDIT: I found a way to get what I want out of this dice roller... kinda. It still can't roll over 10 dice in a single roll, but it's still amazing. Thank you very much. And if you want to know what I did, I set the range to 100d100+1000* TRIPLE EDIT: Ok, it's not doing the full NdS+F if I only roll 1 dice. It'll do it for 2 or more dice, but not for 1. I think that's all I really need help on now. I know I've said alot, so thank you for your patience if you have any for me at this point.
|
|
arek
New Member
Posts: 72
inherit
183874
0
Feb 15, 2014 20:16:38 GMT -8
arek
72
October 2012
arek
|
Post by arek on Apr 29, 2013 16:00:52 GMT -8
What you want can be done with vDice Advanced, but the complexity depends on whether or not you're already using it for images (I'd assume not since you basically allow any roll). Assuming not, here's what you want in Advanced Graphics: pattern=.*\+.* template=sum pattern=.* template=sumzo This will make vDice always show the roll total, and smartly show +F depending on whether or not an offset is actually specified, assuming nobody does something like [roll=1d6+0] (which will use sum rather than sumzo and thus show the +0). --Arek
|
|
Dionon
New Member
Thoroughly enjoying v5.
Posts: 140
inherit
131985
0
Nov 26, 2018 8:04:48 GMT -8
Dionon
Thoroughly enjoying v5.
140
October 2008
dionon
|
Post by Dionon on Apr 29, 2013 20:27:49 GMT -8
I'm apparently doing something wrong. I've placed the patterns in the pattern section, but nothing's changed.
|
|
inherit
192436
0
Sept 2, 2014 21:04:43 GMT -8
mierin
3
April 2013
mierin
|
Post by mierin on Apr 30, 2013 17:10:34 GMT -8
Good evening, I'm having a bit of trouble with the dice roller. I have the range set up as 1-20* and it seems like most of the dice is all right. The issue is when anyone rolls a 3d6+5.. sometimes, it seems to add up correctly and other times, it doesn't. It's typically off by 1 or 2. I am also having trouble when I try to roll 1d20+N... it doesn't seem to do it. The forum where the rolls are being tested is here: dakotanightsong.proboards.com/thread/1096/forum-boards-update?page=2 Any help I can get would be greatly appreciated.
|
|
arek
New Member
Posts: 72
inherit
183874
0
Feb 15, 2014 20:16:38 GMT -8
arek
72
October 2012
arek
|
Post by arek on Apr 30, 2013 18:46:25 GMT -8
I'm apparently doing something wrong. I've placed the patterns in the pattern section, but nothing's changed. I just re-tested and it works the way I indicated for me on my forum. I did give you ambiguous instructions, tho....the template= item needs to go in Roll Template (leave the Die Template blank unless you're using it for something else). --Arek
|
|
Dionon
New Member
Thoroughly enjoying v5.
Posts: 140
inherit
131985
0
Nov 26, 2018 8:04:48 GMT -8
Dionon
Thoroughly enjoying v5.
140
October 2008
dionon
|
Post by Dionon on Apr 30, 2013 19:36:19 GMT -8
Do I remove the periods from the pattern section? Cause I've done all you've said, and nothing's changed. I still roll 1d20+3 (which has been my example roll thus far) and get just the 1d20 EDIT: I figured it out. I was putting the entire thing in the wrong place, and didn't delete the words Pattern= or Template= It's working great now. Thank you arek for your great advice.
|
|
inherit
gamer.karen.lynn@gmail.com
193598
0
May 2, 2013 16:57:24 GMT -8
cyberpunkgamer
6
May 2013
cyberpunkgamer
|
Post by cyberpunkgamer on May 1, 2013 16:49:11 GMT -8
Ok, I cannot seem to get this to work for variable inputs.
I'm running a Play-by-Post forum for tabletop games. I need to be able to roll just about anything to account for any system we can imagine. What I'm looking to get is basically XdY+/-Z.
I'd also prefer to be able to set rolls for text output, bypassing images entirely.
My form is rabbit-hole.boards.net, and I do not allow guests to enter. Gotta register.
|
|
Dionon
New Member
Thoroughly enjoying v5.
Posts: 140
inherit
131985
0
Nov 26, 2018 8:04:48 GMT -8
Dionon
Thoroughly enjoying v5.
140
October 2008
dionon
|
Post by Dionon on May 1, 2013 16:53:31 GMT -8
I had this problem as well. What I did to solve it was to set the range to 10d100+1000* (include the asterisk) And then, download the VDice (Advanced) and under Advanced Graphics you put .*\+.* in the first Pattern box .* in the second Pattern box sum in the first Roll Template box sumzo in the second Roll Template box Don't know how to bypass images though... It works perfectly on my forum bleachd20.proboards.com
|
|
inherit
gamer.karen.lynn@gmail.com
193598
0
May 2, 2013 16:57:24 GMT -8
cyberpunkgamer
6
May 2013
cyberpunkgamer
|
Post by cyberpunkgamer on May 1, 2013 18:27:56 GMT -8
Thanks again, friend! Saved me a lot of headache. I came to the idea that just making it a rule to spoiler tag all die rolls will help.
|
|
inherit
193226
0
May 22, 2013 22:07:12 GMT -8
oxym0r0n
17
April 2013
oxym0r0n
|
Post by oxym0r0n on May 1, 2013 18:42:17 GMT -8
I'm not too familiar with RegEx tokens. Could you help me out? I need to find a way to display a count of successes rolled on a set of 10 sided dice. 8s and 9s are one success, and 10s are two successes, everything else is worth 0. I want to be able to roll any amount of d10 and display the number of successes rolled.
Thank you for any help you can give!
|
|
inherit
gamer.karen.lynn@gmail.com
193598
0
May 2, 2013 16:57:24 GMT -8
cyberpunkgamer
6
May 2013
cyberpunkgamer
|
Post by cyberpunkgamer on May 1, 2013 18:47:00 GMT -8
I did nosum in the tweaks box, and just count them manually.
|
|
arek
New Member
Posts: 72
inherit
183874
0
Feb 15, 2014 20:16:38 GMT -8
arek
72
October 2012
arek
|
Post by arek on May 1, 2013 21:23:23 GMT -8
cyberpunkgamer: For threshold (success-type) rolls, nosum and manual counting is your best bet, since vDice doesn't support threshold rolls directly (and I'm not sure it should, given how the mechanics of such rolls work). BTW, If you still want to support "normal" rolls in addition to threshold rolls, you should disable the nosum tweak and use the following pattern in vDice advanced (put everything inside the quotes in the fields indicated on the advanced graphics tab): pattern="threshold:.*", roll template="nosum" Then, when rolling a success-type roll, use the following [roll=] syntax: [roll=threshold:3d10] 3d10 is just an example, any roll will work. You can replace the word "threshold" with any other word you want (even just a single letter, if desired). Rolls not using the threshold method would then be treated normally, tho I'm not sure what would happen if you forgot the threshold prefix in a roll and then added it back later. I hope this helps. --Arek P.S. Bypassing images is easy, btw...Just download the normal vDice plugin instead of the "standard die edition", so that the plugin doesn't contain a default d6 image.
|
|