inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Dec 10, 2014 8:16:40 GMT -8
That would work! What I was looking for is how to set up an alias so that each time a dice was rolled in a thread (if possible) the chances of failure would increase as the odds would 'narrow'. Mainly so that if people decided to take risks each risk would be uh riskier XD I was also looking for a way of doing two different dice colours beyond the standard white one but I'm not sure how to do that either (mainly how to host them, where to put them etc). So risk could be a red d10 and chance could be a blue d10. Risk is the only one that needs increasing failure chance Boy_Wonder: For hosting the images, you can go into the Build mode of the plugin and upload them right into the plugin itself. Proboards will host them on its image server. You can then either use the URLs provided, or reference the graphics by their resource name, which is the code (usually the filename minus the stub) that appears next to the graphic in the plugin builder. What I gather is that you want different sets of "risk dice" such that a user who continues to roll failing rolls is required to roll dice with increasing risk penalties on subsequent attempts. Each set of dice would come with its own alias, probability distribution, and set of images (and/or layouts). For example: [roll=attack] (white dice)
If this fails, then
[roll=attack-] (slightly red dice)
If this fails, then
[roll=attack--] (red dice)
...and so on and so forth. Such a setup would be easily configurable in VDA. I could send you a prototype, but I would need to know how many levels of "penalty" you require as well as an idea of what you wanted the alias syntax to be. As for forcing specific users to use specific roll aliases by (for example) refusing to submit a post that contained dice at an incorrect risk level, this is possible but would require keeping track of a user's posts in multiple threads, which in turn would require user keys and significant modifications to the plugin. Unfortunately I don't presently have time to add a feature of this degree of sophistication. If you're a Javascript programmer, I could give you a rundown of what specific modifications would be required to the source to make this kind of feature a reality. I could cope without forcing them as if need be I'd monitor this myself (I'm pretty sure if someone succeeded) but yes with Risk I'd want it to get harder each time they threw a risky roll. If you could provide me with an out the box solution to that at least I'd be glad! I'm willing to provide dice if you want so I can get the d10-ness
|
|
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 16, 2014 19:50:12 GMT -8
Boy_Wonder: I'll get it to you sometime before the end of the month. It's a busy time of year.
|
|
inherit
214852
0
Feb 4, 2016 21:20:58 GMT -8
Shinobi
767
October 2014
martinengo
|
Post by Shinobi on Jan 23, 2015 12:17:03 GMT -8
I'm having troubles with this plugin, since when I make similar post, the result is always the same, and I really need to fix this: phrpg.freeforums.net/board/25/ruta-1As you can notice, on all the threads, the results are the same, like the result is based on where the code is located. I need to do something for this. Check all the threads and you'll see the same result This is made for capturing pokemons, so is basically like a form, and I'll use the dice for many other things as well Thank you
|
|
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 23, 2015 14:32:03 GMT -8
Shinobi: The trouble is that you appear to be generating each page using a template, and you've hard-coded the random number generator seed in the template. You can fix this by replacing the string " pGa2K1qc" (the hard-coded seed) in your template code with something guaranteed to be unique for each page you build. For example, replacing the seed with $[input.value-1]$[input.value-2] should work since these two form inputs appear to change from page to page. Let me know if this takes care of the problem.
|
|
inherit
214852
0
Feb 4, 2016 21:20:58 GMT -8
Shinobi
767
October 2014
martinengo
|
Post by Shinobi on Jan 23, 2015 14:42:41 GMT -8
Shinobi: The trouble is that you appear to be generating each page using a template, and you've hard-coded the random number generator seed in the template. You can fix this by replacing the string " pGa2K1qc" (the hard-coded seed) in your template code with something guaranteed to be unique for each page you build. For example, replacing the seed with $[input.value-1]$[input.value-2] should work since these two form inputs appear to change from page to page. Let me know if this takes care of the problem. Hi,thank you for your quick answer! First, I want to apologize because my knowledge of what you are saying is really hard to understand, since english is not my native language and there are many concepts I don't understand. I tried before without the custom templates and it's the same, actually, I just deactivated it (the plugin custom templates), and I created two more topics without the custom templates, and it's the same. I'm following this form, since I'll ask users to copy this and paste it: (in case they don't have javascript activiated, I'll use the custom templates) Once again, thank you for your reply!
|
|
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 23, 2015 15:32:29 GMT -8
In your template, the code that reads [font color="1d1ce1"]pGa2K1qc[/font] is a special string VDice uses to determine the random values of the dice. Specifically, the letters pGa2K1qc are what is called a "seed". The seed is what determines which random values go into the dice.
The main requirement for a seed is that it be different for each instance of the template, since random values are based on it. For example, if you replaced the letters pGa2K1qc with pokemon123, the dice would have different values. Generally speaking, there is no predictable way to tell which values a given seed will generate.
If you're doing a simple copy and paste, the solution is simple: just eliminate the code [font color="1d1ce1"]pGa2K1qc[/font] from your template. This will cause VDice to automatically generate a new seed when the template is posted.
If you're using a form-filled template, deleting the above code might work depending on how the template works. You can certainly try it out.
If it doesn't work, one solution that is guaranteed to work is to replace the seed (namely, pGa2K1qc) with something that changes every time the template is used. I'm not entirely sure how your template plugin works, but looking at the source code suggests that you use tokens like $[input.value-1] and $[input.value-2] as placeholders for the data entered by the user. (If this isn't the case, then use whatever placeholders the plugin does accept.)
It appears that the placeholder $[input.value-1] corresponds to the "Habbo Nombre" field on your form, and $[input.value-2] corresponds to the "Método" field, and that both of these fields change every time the form is used. If so, then we can also use these as the seed for the dice, since they're guaranteed to be different for each page. We do this by replacing pGa2K1qc in the template with $[input.value-1]$[input.value-2], which should produce a unique seed in each case.
Hopefully this makes my earlier response clearer.
|
|
inherit
214852
0
Feb 4, 2016 21:20:58 GMT -8
Shinobi
767
October 2014
martinengo
|
Post by Shinobi on Jan 23, 2015 15:39:44 GMT -8
Thanks to you, now I understand what is wrong with it.
I'll try to explain myself so probably you could help me with this:
The problem was that I copied the code inside the CODE tags, and that code is automatically with that "seed" (I think this is the seed, the numbers that you told me about), so I copied that one on the template instead of the regular code:
[roll=1d6] (or something like this)
The problem is, people who doesn't have javascript activated, won't get the templates, so for those who don't have javascript activated, I made a form on a thread, so they can copy it and paste it (and I paste that on the template as I said), so what I'm looking to do now, is, how can I paste the form inside code tags, so user copy it and paste it without that "seed/string"?
I mean: if I create a post with the dices code, even if I put it inside , automatically generates the numbers (string/seed I don't know how to call it), so, what do you think I could do so users copy something and paste it without copying the string, but the actual dice code?
I hope this is understandable, haha.
Once again, thank you for everything, I already understood!
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jan 24, 2015 8:03:53 GMT -8
Boy_Wonder: For hosting the images, you can go into the Build mode of the plugin and upload them right into the plugin itself. Proboards will host them on its image server. You can then either use the URLs provided, or reference the graphics by their resource name, which is the code (usually the filename minus the stub) that appears next to the graphic in the plugin builder. What I gather is that you want different sets of "risk dice" such that a user who continues to roll failing rolls is required to roll dice with increasing risk penalties on subsequent attempts. Each set of dice would come with its own alias, probability distribution, and set of images (and/or layouts). For example: [roll=attack] (white dice)
If this fails, then
[roll=attack-] (slightly red dice)
If this fails, then
[roll=attack--] (red dice)
...and so on and so forth. Such a setup would be easily configurable in VDA. I could send you a prototype, but I would need to know how many levels of "penalty" you require as well as an idea of what you wanted the alias syntax to be. As for forcing specific users to use specific roll aliases by (for example) refusing to submit a post that contained dice at an incorrect risk level, this is possible but would require keeping track of a user's posts in multiple threads, which in turn would require user keys and significant modifications to the plugin. Unfortunately I don't presently have time to add a feature of this degree of sophistication. If you're a Javascript programmer, I could give you a rundown of what specific modifications would be required to the source to make this kind of feature a reality. I could cope without forcing them as if need be I'd monitor this myself (I'm pretty sure if someone succeeded) but yes with Risk I'd want it to get harder each time they threw a risky roll. If you could provide me with an out the box solution to that at least I'd be glad! I'm willing to provide dice if you want so I can get the d10-ness Did you get round to this Virgil?
|
|
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 24, 2015 17:03:33 GMT -8
I could cope without forcing them as if need be I'd monitor this myself (I'm pretty sure if someone succeeded) but yes with Risk I'd want it to get harder each time they threw a risky roll. If you could provide me with an out the box solution to that at least I'd be glad! I'm willing to provide dice if you want so I can get the d10-ness Did you get round to this Virgil? Ah yes. It is on my list. I'll have some time tomorrow and the following Sunday.
|
|
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 24, 2015 17:19:53 GMT -8
Thanks to you, now I understand what is wrong with it. I'll try to explain myself so probably you could help me with this: The problem was that I copied the code inside the CODE tags, and that code is automatically with that "seed" (I think this is the seed, the numbers that you told me about), so I copied that one on the template instead of the regular code: [roll=1d6] (or something like this) The problem is, people who doesn't have javascript activated, won't get the templates, so for those who don't have javascript activated, I made a form on a thread, so they can copy it and paste it (and I paste that on the template as I said), so what I'm looking to do now, is, how can I paste the form inside code tags, so user copy it and paste it without that "seed/string"? I mean: if I create a post with the dices code, even if I put it inside , automatically generates the numbers (string/seed I don't know how to call it), so, what do you think I could do so users copy something and paste it without copying the string, but the actual dice code?
I hope this is understandable, haha.
Once again, thank you for everything, I already understood![/quote]
I'm a bit unclear on the question, but perhaps the following two notes will be of use: - I did notice that you're using the translated font tag versions of the dice rather than the roll versions. VDice converts the dice to bona fide HTML elements before posting them for efficiency reasons. Doing this yourself is harmless, but unnecessary as long as Javascript is enabled.
- If Javascript isn't enabled, what you'll need is a copy/paste template that looks something like this:
Para ver la lista de pokémon de esta ruta, da click en este vínculo:
[font color="1d1ce1"](please enter your Pokemon's name here)[/font] [b]Habbo Nombre:[/b]
[b]Interpretación previa:[/b] (una interpretación de su personaje rondando por la zona)
[b]Pantallazo:[/b] (un screenshot/pantallazo de tu habbo en la sala correspondiente a la sección)
[b]Método:[/b] (el método de captura a utilizar)
[b]Método Especial:[/b] (el método especial es independiente al método común, especificar cual es)
... Notice that we've instructed the reader to insert the Pokemon's (presumably unique) name into the place where the dice seed would ordinarily go. This should result in proper, unique random values being generated for each Pokemon.
Generally speaking, VDice doesn't work without Javascript. Even when members post the above, they won't be able to view dice if they don't have Javascript enabled. Generally speaking, nearly all modern websites assume the ability to run scripts. If users have scripting disabled in their browser, that's their prerogative, but they forfeit the right to enjoy interactive content on the sites they visit.
|
|
inherit
214852
0
Feb 4, 2016 21:20:58 GMT -8
Shinobi
767
October 2014
martinengo
|
Post by Shinobi on Feb 11, 2015 22:26:33 GMT -8
How could I make use of the $[input.value-1] of the Custom Templates plugin. I'm making a custom template that let the user choose the lvl of a pokémon, and the other one, and what I basically want is 30+Level of your pokemon-Level of opponent pokemon So I'm making this: [roll range="30+$[input.value-2]-$[input.value-3]"] and I get this result: i.gyazo.com/ecc80f7cbb109590034a7b63f96dd3d8.pngBut if I do it just with one input value, like this: [roll range="30+$[input.value-2]"] and I get a result like this: i.gyazo.com/b546a2287f505543e97bb89e002f6006.pngAs a final question, how can I make a substraction between three (in case not possible, two) random values. For example: [roll range="1d30-1d40"] (a result between two random numbers) So my question is, how can I make first an addition, and then a substraction. And also, how can I make it to get 30 as a result, with no random, like it's always 30 because the formule is 30. I hope you can help me, thank you.
|
|
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 12, 2015 9:36:42 GMT -8
Shinobi: Although the dice range looks somewhat like a mathematical expression, it isn't actually one. Only the ranges that are listed in the table on the first post in this thread (and your own custom syntaxes) are supported. I suppose I could add support for "expression-style" ranges such as [roll range="{1-6}+30+10*{2d18}"], where the {} bracketed entities would be treated as standard rolls or roll aliases and would evaluate to the corresponding random values, and where the range as a whole would be evaluated as a mathematical expression, but this would have to wait until mid-March. Until then, you'll need to contact the creator of your form template plugin and ask them about the best way to convert a series of input fields into a single number according to a mathematical operation. If you can do this, then the range syntax e.g. [roll range="30-30"] is guaranteed to always produce the value 30, hence you need only replace " 30" with the appropriate value.
|
|
inherit
214852
0
Feb 4, 2016 21:20:58 GMT -8
Shinobi
767
October 2014
martinengo
|
Post by Shinobi on Feb 12, 2015 11:34:33 GMT -8
Shinobi: Although the dice range looks somewhat like a mathematical expression, it isn't actually one. Only the ranges that are listed in the table on the first post in this thread (and your own custom syntaxes) are supported. I suppose I could add support for "expression-style" ranges such as [roll range="{1-6}+30+10*{2d18}"], where the {} bracketed entities would be treated as standard rolls or roll aliases and would evaluate to the corresponding random values, and where the range as a whole would be evaluated as a mathematical expression, but this would have to wait until mid-March. Until then, you'll need to contact the creator of your form template plugin and ask them about the best way to convert a series of input fields into a single number according to a mathematical operation. If you can do this, then the range syntax e.g. [roll range="30-30"] is guaranteed to always produce the value 30, hence you need only replace " 30" with the appropriate value. Actually both input values are numbers, but because is an operation of three amounts instead of two, I think that's why it doesn't work unless you add the expresision-style ranges, which would be awesome! Thank you for your answer.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Feb 15, 2015 3:03:40 GMT -8
Did you get round to this Virgil? Ah yes. It is on my list. I'll have some time tomorrow and the following Sunday. Nudge nudge?
|
|
ginsu
New Member
Posts: 1
inherit
219036
0
Feb 22, 2015 19:02:30 GMT -8
ginsu
1
February 2015
ginsu
|
Post by ginsu on Feb 22, 2015 19:00:21 GMT -8
Is it possible to use images uploaded to the VDice Advanced plugin for the Advanced Graphics resource? If so, what is the proper way to reference the file? Thank you!
|
|