News:

Join the Facebook Fan Page.

Main Menu

Dice Roller

Started by Colin, July 30, 2009, 09:52:06 PM

Previous topic - Next topic

Wesley.

Thanks a lot, Arkhan! Your update made it usable for my version! :laugh: :laugh:

pakri

#101
Modificacion para el español latino

Adjustment to Spanish Latino


no olvides vistar mi foro

jamccloud

Many thanks to the community for keeping this mod alive.  I have a question on functionality.  I plan on using this for the nWoD game system.  Is it possible to do the following:

1) remove the "total" from the output?
2) re-roll any result equal to or higher than 8, 9, or 10?
3) count the number of results higher than 7 and output them as "Successes: x"?

Colin

Updated for SMF 2.0.3
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Guim

Hola, soy español y me cuesta bastante escribir en inglés así que lo escribiré en español y luego intentaré traducirlo a medias, pero si hay algún hablante de español por favor, que me responda y si puede ser que corrija mis faltas al traducir.

Bueno, en mi foro existe esta herramienta de lanzar los dados (el roll) y me gustaría saber si tiene más funciones. En realidad solo busco una función, la de poder "banear" números para que no salgan, es decir yo lanzo un Roll de 6 y no quiero que me salgan ni el 4 ni el 5. No me refiero a que no salgan mayores de 4, sino que no salgan 2 en concreto ya que si saliera un 6 sí que me interesaría.
Muchas gracias por vuestra atención y espero respuestas lo antes posible.

Translation:
In my foro exists this mod to launch the dices (roll) and I will like to know if it has more functions. In reality I only search one function, I want to ban numbers in the dices. Namely, for exemple if I launch a Roll of 6 and I don't want the numbers 4 and 5 in the result. I don't mean any result necessary so that the dice rolls will greater than 4, because if it will leaves a 6 I need it.
Thank you very much for your attention.

Cereus

Quote from: Guim on January 02, 2013, 05:09:23 AM
Hola, soy español y me cuesta bastante escribir en inglés así que lo escribiré en español y luego intentaré traducirlo a medias, pero si hay algún hablante de español por favor, que me responda y si puede ser que corrija mis faltas al traducir.

Bueno, en mi foro existe esta herramienta de lanzar los dados (el roll) y me gustaría saber si tiene más funciones. En realidad solo busco una función, la de poder "banear" números para que no salgan, es decir yo lanzo un Roll de 6 y no quiero que me salgan ni el 4 ni el 5. No me refiero a que no salgan mayores de 4, sino que no salgan 2 en concreto ya que si saliera un 6 sí que me interesaría.
Muchas gracias por vuestra atención y espero respuestas lo antes posible.

Translation:
In my foro exists this mod to launch the dices (roll) and I will like to know if it has more functions. In reality I only search one function, I want to ban numbers in the dices. Namely, for exemple if I launch a Roll of 6 and I don't want the numbers 4 and 5 in the result. I don't mean any result necessary so that the dice rolls will greater than 4, because if it will leaves a 6 I need it.
Thank you very much for your attention.

Todas las funciones son DiceRoller página mod. Voy a preparar otro paquete con la traducción al español, si hay errores en la traducción que me haga saber después.

Pues bien, existe una función específica para bloquear un número. La forma de configurarlo para sus nuevos números y bloqueo de desplazamiento toda la serie limitándolos a aparecer.

Ejemplo: si quieres coger el 4 y 5, pero aún desea que aparezca 6, 1, 2 y 3, debe definir los dos primeros con los nuevos números antes de rodar y limitar su aparición.

Por lo tanto, en lugar de 4 y 5, se define lo que son en el libro 1 y 2, moviendo todos los otros números. Y genera el comando para salir si algo menor que 2 para desplazarse repetir hasta que salga un número mayor.

Solución rápida y fácil.

___________________
I've changed the old icon to a new, and I have a new icon to the alert of post edit too. ;)

It's for 2.0.x!!
Enjoy it!

Arantor

* Arantor hereby gives permission for derivative works of his mod to be created and distributed ;)

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Larathiel

Just tried out this mod on a brand new 2.0.4 installation and I'm noticing a critical problem: Every time I click the Preview button, ALL of the die rolls in my post are re-randomized.

Since my hope is to use this for a Pathfinder RPG Play-by-Post, I need for there to be some way to permanently fix die rolls so that they cannot be changed even if a post is previewed multiple times, canceled and restarted, or even edited to add or remove additional rolls. Even beyond cheat prevention, keeping the rolls static is necessary so that the person authoring a post (whether GM or player) can first make their rolls, preview the outcomes, and then narrate the resolution properly. If a failed attack or successful diplomacy check is suddenly reversed because the numbers changed when the user previews to ensure the formatting is OK, they'd have to scrap and rewrite their post. That's just not feasible.

Furthermore, the current output doesn't sum multiple rolls within a single roll statement. In instances where you need to roll extra damage dice (i.e. flaming weapons, sneak attacks, etc.) having the additional die rolls appear on subsequent lines is rather problematic. As GameMaster, it's not uncommon to need a half-dozen or more rolls at a time (i.e. Perception or Sense Motive checks for each character and NPC when a new room or encounter is entered).

If need be, I could probably record a short video demonstrating the desired behavior, but here are a few examples showing both usage and desired output...
Note: On the forums I'm linking to, users cannot modify the color of text. Out-of-Character text is always blue, and die rolls are always green. Given some of the prior discussion, locking down colors would be one way to verify that roll results were not forged.

Examples
Multiple Die Rolls in the same attack: http://paizo.com/campaigns/WardovesRumbleInTheJungle/gameplay&page=200#9963 [nofollow]
Multiple NPCs attacking in the same post: http://paizo.com/campaigns/WardovesRumbleInTheJungle/gameplay&page=200#9968 [nofollow]
Die Roll Syntax and Preview: http://wiki.worldsunknown.com/images/archive/e/e6/20130428040221%21Screenshot.png [nofollow]

Now I'm not saying the implementation on Paizo is perfect, in fact there are a few things it can't do such as dropping lowest from a set, taking the better of two rolls, or any other such logic-based conditions. One improvement I personally would desire would be the ability to label individual bonuses so that they appear in the actual roll instead of having to manually note them in the out of character text.

Example:
Current Syntax: [ooc]Longbow [dice]1d20+10 + 1 + 1d6 [/dice] point blank shot, mythic surge [/ooc]
Current Output: Longbow 1d20 + 10 + 1 + 1d6 ⇒ (13) + 10 + 1 + (4) = 28 point blank shot, mythic surge
Desired Syntax: [roll="Longbow"]1d20+10 + 1 {point blank shot} + 1d6 {mythic surge}[/roll]
Desired Output: Longbow 1d20 + 10 + 1 + 1d6 ⇒ (13) + 10 + 1 point blank shot + 4 mythic surge

Is there any chance of someone being willing/able to implement such changes in either this mod or perhaps a fork of it? I realize it might be asking a lot (particularly for the persistent die rolls), but it could benefit quite a few folks by the looks of it.

Arantor

QuoteJust tried out this mod on a brand new 2.0.4 installation and I'm noticing a critical problem: Every time I click the Preview button, ALL of the die rolls in my post are re-randomized.

That's *entirely* deliberate. That way users can preview the code as being correct in terms of formatting but it means they can't roll and reroll and reroll until they get numbers they like. I did it the way I did it for plenty of good reasons.

Once the post is saved, they can't then edit it without it looking suspicious.

I'm sorry that I decided performance and not hurting the server with (many) more database calls was more important than your users just having to make two posts instead of one.

This is one mod I wish I had never bothered to spend the time writing because of all the people that used it, I think I'm pretty much the only person actually satisfied by it doing what I made it to do :(

Larathiel

Arantor: Could it be that you're seeing different behavior than I am? From what I'm seeing, the current implementation does allow someone to reroll to their heart's content — everytime I click preview all of the rolls are re-rolled. Are you saying it's different on the SMF install on which you developed and tested it?

Edit: Sorry to hear that this mod has been a hassle. I've only just come back to SMF after 4 years of using another site for my RPGs, and whether it's this or another mod, I'm just trying to find one that does what I need. Should I create a brand new mod request instead of proposing such features in this one?

Arantor

No, I'm saying that is *exactly* how I wrote it, and with extremely good reason. Performance aside, there is no good way in SMF to do what you are asking without the user having some way to taint it. I spent hours on this the first time around.

The data is not stored or saved anywhere until the post is saved, but that's brcause the only way to do itis to get into messing around with one-time codes which gets expensive to handle in the database, which is why I deliberately opted for the route I did.

You can ask, but unless you're paying, no-one will bother because everyone wants something different and that's that.

RustyBarnacle

I'm quite happy with this mod as is.  Sorry it's been a hassle.  :(

Larathiel

#113
Quote from: Arantor on April 28, 2013, 12:54:42 AM...there is no good way in SMF to do what you are asking without the user having some way to taint it.

Gotcha. I know it was quite a hurdle for Paizo to implement this on their site and perhaps that's part of the reason their proprietary forums are just so painfully slow. :-\

Quote from: Arantor on April 28, 2013, 12:54:42 AMYou can ask, but unless you're paying, no-one will bother because everyone wants something different and that's that.

I'm by no means well-off, but whether it's paying a friend for leather-work, an artist for a character portrait, or a coder for a useful app, I'm a firm believer in compensating others for their time. I have no idea what the going rates are for coding projects such as this, but perhaps that would be the best way of going about it. My apologies if I struck a raw nerve about this mod — you've been more than helpful in the other threads I've posted in today and for that I'm grateful.

In the meantime, forummatrix.org [nofollow] suggests that FUD and MyBB are other forum packages matching the feature sets that I need. I'll shelve my progress on SMF for now, and if I turn up empty-handed there as well then I'll put together a requirements document and see who bites. Take care.

david090366

#114
I have used this mod on a play by post forum for some time, and it performs quite well. And yes, we play Pathfinder and D&D 3.5, and several other d20 games there.  You don't need to see what your die roll is before you post. All you have to do is simply state what you are trying to do and put your die roll at the end of it. The GM then comes along later and determines whether or not it was a successful attempt. The only person who has to make two posts, on my forum, is the GM during combat for the monsters' turns. State which creature is attacking which character and make their rolls in that post then a second post to say who got hit. Arantor, do not despair that you created this mod. Some of us are very thankful for it and quite happy with it the way it is.

There are two things you can do to easily reduce the possibility of cheating ( or catch cheaters) with this mod if you don't want to stop regular members from being able to edit their posts.

1) Make sure posts show the last edit time. That way you can see people who are routinely editing posts with dice rolls in them.

2) It is possible with SMF to send all deleted posts to another area of the forum. Turn this on and send them to a board only admins and mods can see. That way you can see if people are deleting posts with die rolls.

Larathiel

David: Every GM and group run their game a different way. After about 14,000 PbP posts I think I've got a pretty good idea of what works well for a narrative-heavy game like mine.

In any event, I've moved development from SMF to MyBB and hired someone willing to code exactly what I need for a rather reasonable fee. With a bit of creativity, we've made it cheat-proof without incurring the expensive database operations Arantor rightfully warned me about.

loogie

First.. great work

Second... I'm new to php.. so i've skipped several steps.. but I've modified your script to support fudge dice.. right now it just captures #df in the roll and returns the results (with icons as the result values)...

for those who don't know, a fudge roll is 4 rolls of a six sided die, with 2 +1 face, 2 -1 faces, and 2 blank faces. add up the totals.

This is just a prelim. since i probably won't need the other dice rolls, i'll probably remove them, and i might add a bit more formatting so i can add a title, a mod, and some text for the mod... (pretty much gut your die roller, just keep the "this roll was faked" bit.

I've never tried an smf mod before, so it's interesting to work with... if anyone wants to see my code, i can send it over... i'll probably try to change the details so it can be seen as a separate mod than yours entirely.

Colin

Welcome to SMF Loogie,

I am glad that you were able to modify the mod to fit your liking. Unfortunately it will be hard to submit the mod to the mod site if it has any taken code from this one. You are absolutely welcome to, but make sure that it is all your own code :).

Best!
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

hither

This mod is what brought me back to SMF.

My forum is so small that everything else is much of a muchness, but SMF having a reliable in-line dice roller is effing fantastic!

Colin

Wahoo! Welcome back. Cheers to Arantor who developed the mod.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Advertisement: