inherit
227380
0
Dec 10, 2015 16:06:46 GMT -8
tristancwb
1
December 2015
tristancwb
|
Post by tristancwb on Dec 10, 2015 15:17:48 GMT -8
I currently have the 'norangetampering' tweak added on, but it seems that it's still able to be removed and added again from the post. Is there something I missed while making it like that?
|
|
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 Dec 14, 2015 13:31:09 GMT -8
I currently have the 'norangetampering' tweak added on, but it seems that it's still able to be removed and added again from the post. Is there something I missed while making it like that? tristancwb : The no range tampering tweak allows rolls to be deleted and then re-inserted as long as they have the same range, meaning dice will have the same values as before. Suppose you have six rolls in a post. Order these from 1 to 6 in reading order. A roll's number in this order is called its position. The plugin "remembers" the roll range associated with each position. For example, if you have three rolls with ranges [roll=1d6], [roll=1d10], and [roll=2d20], the plugin remembers a range of " 1d6" for position 1, " 1d10" for position 2, and " 2d20" for position 3 when the post is committed. The way the norangetampering tweak works is by making sure that if a post is edited, any rolls in the post have ranges that match up with what the plugin remembers for their positions. For example, if you were to delete the third roll out of the post, the plugin would accept the edit because the ranges for positions 1 and 2 match up and there's no third roll to match with the third position. If you then edited the post again and added in a new third roll, the plugin would complain only if the range for that new roll wasn't " 2d20", because that's what it has saved for position 3. I did this deliberately so that posters could add new rolls or delete rolls off the end of their posts without the plugin complaining. The tweak prevents exploiting the dice because any roll in the same position is guaranteed to have the same range, even if it's deleted and reinserted later. If this isn't happening, it's a bug, hence let me know.
|
|
kaima
New Member
Posts: 38
inherit
226842
0
Aug 22, 2016 10:53:35 GMT -8
kaima
38
November 2015
kaima
|
Post by kaima on Dec 28, 2015 10:45:06 GMT -8
Hello guys, thank you for the great plugin. I have a question though. Let's say I would like to use the following dices in my forum: 1d2 1d3 1d10 3d6 Is it possible I can customize each of them? Is there any way I can give each of them a different name and set them up with different images? Lets say I use dice 1d2 but I would like it to appear as dice "chance" to my users with images displaying 50% success and 50% fail Is it possible to set up dice 1d10 in a familiar way, with a separate name and images for each outcome? Can I set up a second 1d2 dice which I can name in a different way? Dices are in great use as they are currently. But I was wondering what is the best I could get out of them
|
|
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 Dec 29, 2015 16:13:58 GMT -8
kaima: All of the features you're talking about are possible with the added plugin "VDice Advanced". It's documented here. Unfortunately, many people find it daunting to use. If you're familiar with regular expressions, HTML templates, etc., it should be no problem for you. If not, you can give me descriptions of the various types of dice you want, including their names (such as "chance", which can be rolled using [roll=chance], for example) and the images representing their outcomes, and I can give you a preconfigured version of VDice Advanced with the dice already set up. If you want to add new dice, you can take a look at the plugin settings and hopefully make sense of what's going on.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Jan 22, 2016 9:24:56 GMT -8
Virgil Sovereign, Do you have a version out that uses plain text that can be used in the shoutbox? Allow me to explain our scenario: We run 2 RP groups (MRPG and AD&D) and not everyone has dice. There are times when the Judge (MRPG) or DM (AD&D) needs to see a roll. All we really need is something that can be done via shoutbox (so we don't have to keep checking for replies in posts) and just text based. Something like this entered in the shoutbox: MSG: /roll 3d6 (this is user MSG entering a roll command) VDice: MSG rolled 3 + 2 + 5 = 10 (this would be VDice's results of who rolled and what their results were) The values would not need to be saved anywhere - just the results outputted to see (no need for localStorage or key use). We only use 7 types of die: d4, d6, d8, d10, d12, d20 and d100. The NdS format you use would be perfect. For our use, we would not need to roll a large number at a time, so the 256 character limit of a shoutbox post isn't a concern. Is this possible? If not, no worries - just thought I'd ask.
|
|
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 Jan 25, 2016 20:30:36 GMT -8
Lynx: I've never looked at the shoutbox API. Until recently I thought the shoutboxes were iframes hosting third-party code. I now realize that isn't the case. Give me a few weeks to look into it. I'm finishing off another project now, but this seems doable. As you say, there aren't nearly as many complications as with regular posts.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Jan 28, 2016 13:42:45 GMT -8
Thank you very much for the reply, Virgil Sovereign. There's definitely no rush, as we haven't gotten into set RP nights yet - we're just scheduling when a Judge / DM has a chance to run one. I look forward to this if it's possible. I've bookmarked this thread to watch for updates. If you start a new thread, please let me know. Thank you very much in advance! MSG
|
|
Malo
New Member
Posts: 4
inherit
228769
0
Nov 7, 2020 15:52:31 GMT -8
Malo
4
January 2016
malo
|
Post by Malo on Jan 31, 2016 14:29:47 GMT -8
Thank you for VDice! I have 2 questions/requests: - Is it possible to set permissions such that only the forum moderator can see/utilize the preview dice option?
- Can a dice roll be modified with a -nosum modifier on a case-by-case basis? I want most of the rolls on my forums to show the sums, but every once in a while, I'd like to just show the dice results with no sum after.
Thanks in advance, Malo
|
|
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 Feb 1, 2016 8:54:24 GMT -8
Malo : This is a somewhat unorthodox solution, but you can achieve previewable rolls for staff only by: - opening up the VDice plugin under the "Build" tab
- clicking on the "Components" tab
- pasting the code
if( !pb.data('user').is_staff ) { $V.Dice.oSet['pretag'] = ''; } just above the line that reads
$V.Dice.init(); which is the very last line of the "Javascript" component - clicking "Save Changes"
As for conditionally suppressing the sum:
- remove the "nosum" tweak from VDice settings, if you have it
- install sister plugin "VDice Advanced", which you'll find in the Proboards Plugin Library
- in the settings for VDice Advanced, click on the "Advanced Graphics" tab
- add a new rule to "Resource Specifications" with the following values:
- set "Pattern" to !.*
- set "Roll Template" to nosum
- leave everything else blank
- click "Save Changes" (also, ensure the plugin is enabled)
This will make it so that if you put an exclamation mark ( !) in front of a roll range, it will suppress the sum. Hence a roll such as [roll=!5d20] won't show the sum calculation, while a roll such as [roll=5d20] will continue to show the roll with the sum as usual. Let me know if you have any trouble.
|
|
Malo
New Member
Posts: 4
inherit
228769
0
Nov 7, 2020 15:52:31 GMT -8
Malo
4
January 2016
malo
|
Post by Malo on Feb 7, 2016 16:54:07 GMT -8
Virgil, that worked great. Thank you.
The reason that I asked for the limitation on previewable rolls was to have the option to "fudge" dice rolls in my role as GM. I might not do it, and go completely with out-in-the-open rolls instead, but I wanted to see if it could be done. Again, thank you.
I have a follow-up question regarding the previewable rolls restriction: will non-staff, who now do not have access to the previewable rolls button or function, be able to see that I have previewed rolls in my posts? Will they see the little greyed-out eye image next to the sum?
|
|
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 Feb 8, 2016 6:26:44 GMT -8
Malo: Yes they will, unless you remove the previewable roll wrapper.
|
|
Malo
New Member
Posts: 4
inherit
228769
0
Nov 7, 2020 15:52:31 GMT -8
Malo
4
January 2016
malo
|
Post by Malo on Feb 10, 2016 0:10:51 GMT -8
|
|
inherit
229784
0
Apr 30, 2016 14:20:30 GMT -8
kittytessapuppy
2
March 2016
kittytessapuppy
|
Post by kittytessapuppy on Mar 5, 2016 13:07:43 GMT -8
how do I create a roll to allow such things as 4d6 drop lowest roll? This is the standard way to roll ability stats in D&D and Pathfinder, and I can't figure out how to do that with this plugin. Any help is appreciated.
|
|
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 Mar 5, 2016 19:46:54 GMT -8
how do I create a roll to allow such things as 4d6 drop lowest roll? This is the standard way to roll ability stats in D&D and Pathfinder, and I can't figure out how to do that with this plugin. Any help is appreciated. If all you care about is a value and you don't need to see the values of individual dice, you can use the weighted roll range (I would recommend aliasing it to something simpler using VDice Advanced): 0,0,1,4,10,21,38,62,91,122,148,167,172,160,131,94,54,21If you do need to see the values of individual dice, this type of roll isn't currently supported, but it shouldn't be too difficult to add support for it, and VDice is due for a major upgrade anyway. Is there a typical syntax for rolls of this kind? For example, I was thinking perhaps (.+++)d6, where: - the d6 represents the type of die being rolled
- the number of dice being rolled is the number of .'s and +'s in between the brackets (four, in this case)
- the dice are sorted from lowest to highest value, and the roll value is the sum of the dice marked + (in this case, the three highest values are summed and the lowest value is dropped)
This would also allow for rolls such as (.+++.)d10+6, which would mean "roll 5 ten-sided dice, drop the highest and lowest values, and compute the sum of the remaining values plus 6". You could alias this to something simpler if desired. The other issue is: how would the roll appear? Would all four dice be shown with one crossed out? Would only three dice appear?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Mar 6, 2016 21:20:21 GMT -8
Virgil Sovereign, Just curious if the shoutbox one I asked about is going to be a part of the major upgrade you spoke of above, or if it's going to be a separate entity? I'm simply curious, is all. We're waiting for the time to run out on our old website before our group goes full steam ahead on our PB forum. That puts us at around the end of May (about the 28-ish) before we'll need it. Thank you as always for your time.
|
|