NATION

PASSWORD

RMB Dice Roller?

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
TheOrc
Civil Servant
 
Posts: 7
Founded: Sep 10, 2016
New York Times Democracy

RMB Dice Roller?

Postby TheOrc » Mon Oct 02, 2017 10:04 am

Hi

I tried to find if this topic was raised before. Probably but I couldn't see anything? (sorry)

I wonder if it is possible to integrate a RMB Dice Roller for roleplays?

A simple example would be:
[roll]1d6[/roll] codes for rolling a 6 sided die and can result in the values 1,2,3,4,5,or 6.

Also more complicated operations like 4d6kh3 which would be four rolls of a six sided die, while 'kh3' means 'keep highest three' and dump lowest result. etc

There are many examples on forums with Dungeons and Dragons roleplay.

Thanks
Orc

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 27796
Founded: Dec 16, 2003
Capitalizt

Postby Frisbeeteria » Mon Oct 02, 2017 10:40 am

There are far more people non-roleplay RMB users than roleplayers, so such an addition would serve no purpose on the vast majority of RMBs. Besides, NS roleplay is more about storytelling than dice rolling. If you need dice, there are plenty of sites and apps that can give you random numbers.

Given that this has come up only once before since these forums were created in 2009, I'm not seeing a ton of demand.

User avatar
Tessen
Spokesperson
 
Posts: 151
Founded: Aug 21, 2004
Inoffensive Centrist Democracy

Postby Tessen » Mon Oct 02, 2017 12:13 pm

You know, actually.... this isn't a bad idea. Yes. it would only appeal to the roleplayers, however, as NS has become a hotspot for national roleplaying, it seems like a fair option. Those who don't use NS to roleplay can just ignor the feature.

It would be nice too, to have a forum-official record of the dice roll as well. That removes the opportunity to cheat the dice rolls.

As the director of a multi-region roleplaying story here on NS, I support this suggestion.

Director of the American Union and American Independent States roleplay regions.

User avatar
TheOrc
Civil Servant
 
Posts: 7
Founded: Sep 10, 2016
New York Times Democracy

Postby TheOrc » Wed Oct 04, 2017 10:49 am

I see the point that almost nobody was asking for. But I myself just learned like a month ago that those things are possible at all... Maybe other players are just not aware, too. Or maybe they switch to other game sites, where it is possible (I kind of did the latter).

I would strongly assume, if you offer it to the people, some would start using it. I haven't checked how many people really wanted to have this [sub] and [sup] formatting but now it is used... in like 0.0001% of the posts, I guess. but that's already cool. It makes a few players happy.

Maybe it would be a huge programming effort etc? But if not, just consider to donate it to the players interested. Maybe new kind of roleplays will enrich NationStates RMBs. It won't harm at all.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Oct 04, 2017 2:01 pm

What do you do about people who edit their post when they don't get the dice roll they wanted?

User avatar
Canton Empire
Senator
 
Posts: 4667
Founded: Mar 24, 2014
Civil Rights Lovefest

Postby Canton Empire » Wed Oct 04, 2017 2:05 pm

[violet] wrote:What do you do about people who edit their post when they don't get the dice roll they wanted?

Make it impossible to do?
President of the Republic of Saint Osmund
Offically Called a Silly boy by the real Donald Johnson

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Oct 04, 2017 2:32 pm

How? You mean like if you try to edit/delete a post, it scans for any dice roll macros, and if there are any, you're not allowed to proceed?

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Wed Oct 04, 2017 7:15 pm

[violet] wrote:How? You mean like if you try to edit/delete a post, it scans for any dice roll macros, and if there are any, you're not allowed to proceed?

Clearly the solution would be that the seed to the roll is the post ID number :P
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Oct 04, 2017 10:35 pm

Does that help? E.g. I post "If I roll a 6, I win," then post "[1d6]", don't like the rolled result, so delete the post or change it to something innocuous ("Here it comes..."), repeat until I get a 6.

Or I edit my first post to, "If I roll a <whatever actually came up>, I win."

User avatar
Reploid Productions
Director of Moderation
 
Posts: 30511
Founded: Antiquity
Democratic Socialists

Postby Reploid Productions » Wed Oct 04, 2017 10:52 pm

What if a dice roll isn't attached to a regular RMB post, but shows up in the region's activity feed or something, "So-and-so rolled an X-side dice: result Y", where it couldn't be edited and reroll attempts would be obvious?
Forum mod since May 8, 2003 -- Game mod since May 19, 2003 -- Nation turned 20 on March 23, 2023!
Sunset's DoGA FAQ - For those using DoGA to make their NS military and such.
One Stop Rules Shop -- Reppy's Sig Workshop -- Getting Help Page
[violet] wrote:Maybe we could power our new search engine from the sexual tension between you two.
Char Aznable/Giant Meteor 2024! - Forcing humanity to move into space and progress whether we goddamn want to or not!

User avatar
TheOrc
Civil Servant
 
Posts: 7
Founded: Sep 10, 2016
New York Times Democracy

Postby TheOrc » Thu Oct 05, 2017 12:34 am

Personally I think a very simple version without any cheat prevention is a nice tool already.

Regarding Roleplay, the Roleplay master can define simple rules like: a post with a dice roll should never get edited. If a lot of edited posts appear before a roll, it is at least suspicious.

Cheat-proved would be better, of course.

I don't know how sophisticated that all can be, maybe a bit of trusting others is part of it.

I don't have the understanding for those things, but those other sites have a system that makes it at least not super easy to cheat.

Definitely the result of the dice roll doesn't automatically(!) change when quoted or when the post is edited. And each roll seems to have a ID number.

I hope it is okay to post links to forums with dice rollers? see spoiler


I can try to gather more info from there, how it actually works, but I don't have any coding background etc. (Also it might take long time until I'm back with it).

Thanks for consider the dice roller. Actually I have reached my aim already by making you think about its feasibility. Thanks! : )


EDIT:

A more direct link regarding cheat proof:


But I have overlooked Reploid Productions suggestion, which sound like THE solution but like a big thing to me. I just as ask not to ditch any simple dice roller plans, just because the cheat proved one is too much of a project.
Last edited by TheOrc on Thu Oct 05, 2017 7:50 am, edited 2 times in total.

User avatar
Tessen
Spokesperson
 
Posts: 151
Founded: Aug 21, 2004
Inoffensive Centrist Democracy

Postby Tessen » Thu Oct 05, 2017 9:20 am

I agree with the comment that a simple way to determine dice roll cheating is by whether the post was edited or not. Since RMB posts now automatically feature an edited tag, if the dice roll results post was edited, you'll know that someone may have been trying to cheat the roll.

Of course, if there's a way to prohibit editing altogether, that works too.

Director of the American Union and American Independent States roleplay regions.

User avatar
Tessen
Spokesperson
 
Posts: 151
Founded: Aug 21, 2004
Inoffensive Centrist Democracy

Postby Tessen » Thu Oct 05, 2017 9:23 am

Or, hey.... perhaps you could make the dice roll option on the RMB be something that only the region founder has, and he can grant that power to determine dice rolls to the WA delegate, or another regional officer. Then it becomes a limited control feature, and it's up to the region to determine who would be trustworthy enough to fill the position -- and it expands the RO feature a bit as well. :)

Director of the American Union and American Independent States roleplay regions.

User avatar
The Stalker
Ambassador
 
Posts: 1274
Founded: Jan 04, 2012
Father Knows Best State

Postby The Stalker » Thu Oct 05, 2017 10:14 am

Seems like a fun idea!

One way to have work around for the editing issue is to include it how the like feature is. So after posting the post, have the dice roll results noted next to the likes.

If you edit a post of yours that someone has liked it remains liked I believe. Same idea.
The Mad King of Hell
I am the "who" when you call, "Who's there?"
Hell's Bells: Ask not for whom the bell tolls, it tolls for thee.
This isn't Wall Street, this is Hell. We have a little something called integrity.
And I heard as it were the noise of thunder, One of the four beasts saying come and see and I saw, and behold...

User avatar
USS Monitor
Retired Moderator
 
Posts: 30747
Founded: Jul 01, 2015
Inoffensive Centrist Democracy

Postby USS Monitor » Thu Oct 05, 2017 11:26 am

What about having the dice roll results show up as a separate auto-generated RMB post that nobody can edit? Like you know how mod posts say they are from "NationStates Moderators" and it's in yellow instead of looking like a normal nation name? Dice rolls could generate something similar that says it's from "Die Roll," and then the body of the post would be "[Nation] rolled [dice] and got a [number]," e.g. "USS Monitor rolled 1d6 and got a 2." Maybe use a different color instead of the yellow that we use for "NationStates Moderators," like blue or something.

No clue how difficult it would be to code, but it would be a nice feature for people who like that style of RPG, and it would not have any effect on the rest of us.
Don't take life so serious... it isn't permanent... RIP Dyakovo and Ashmoria
19th century steamships may be harmful or fatal if swallowed. In case of accidental ingestion, please seek immediate medical assistance.
༄༅། །འགྲོ་བ་མི་རིགས་ག་ར་དབང་ཆ་འདྲ་མཉམ་འབད་སྒྱེཝ་ལས་ག་ར་གིས་གཅིག་གིས་གཅིག་ལུ་སྤུན་ཆའི་དམ་ཚིག་བསྟན་དགོས།

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Thu Oct 05, 2017 12:36 pm

If the dice roll idea requires a fundamental rewrite of how posting works, with changes to the editing system, permissions of who can modify what, and display changes, on top of the actual macro, I'm unlikely to implement it. That's too much work for a niche feature.

The simple dice-rolling macro looks fun and reasonably achievable, at least on gameside, but I've noticed that threads about dice rolling macros on other forums are two pages of "this is great" followed by 10-40 pages of "can this be improved to stop cheating," which makes me wary.
Last edited by [violet] on Thu Oct 05, 2017 12:40 pm, edited 1 time in total.

User avatar
Aclion
Negotiator
 
Posts: 6249
Founded: Apr 12, 2016
Ex-Nation

Postby Aclion » Thu Oct 05, 2017 1:44 pm

[violet] wrote:If the dice roll idea requires a fundamental rewrite of how posting works, with changes to the editing system, permissions of who can modify what, and display changes, on top of the actual macro, I'm unlikely to implement it. That's too much work for a niche feature.

The simple dice-rolling macro looks fun and reasonably achievable, at least on gameside, but I've noticed that threads about dice rolling macros on other forums are two pages of "this is great" followed by 10-40 pages of "can this be improved to stop cheating," which makes me wary.

The typical ways of cheating are doing shit like roll 6d1 instead of of 1d6 to get a 6 every time, or editing the post repeatedly to effectively reroll the die. It's pretty easy to detect both (edit cheating since we can see that a post is edited), so the answer, I think, is "don't play with people who cheat."
A popular Government, without popular information, or the means of acquiring it, is but a Prologue to a Farce or a Tragedy; or, perhaps both. - James Madison.

User avatar
TheOrc
Civil Servant
 
Posts: 7
Founded: Sep 10, 2016
New York Times Democracy

Postby TheOrc » Thu Oct 05, 2017 2:29 pm

Since NationStates is not a typical forum you might be able to do it better. And the RMB posting system doesn't have to be changed at all but the RMB is just for displaying the dice roll result, (similar to the way how now links to dispatches are displayed on the RMB).

How complicated is a nation specific dice roller with record and displaying its results as links on the RMB? I describe it in the spoiler below.

see spoiler:

Imagine each nation has its own dice roller and roll record. A little dice symbol on its nation page (instead or next to the challenge button) links to it (*)

When you click on the dice symbol, you reach the nation's 'dice roll record' site. If you are logged in the nation, your roll record page will also have a field to type ie. '1d6' with a button saying 'roll the dice!' next to it.

when the nation types '1d6' and clicks on 'roll the dice' the dice roll will be logged in its record with a time stamp, 1d6, and the result. Not modifiable of course.

Next to the new dice roll log it says: copy (dice roll) to RMB

When you click on 'copy to RMB' you will reach the RMB with a drafted message field containing just the link to your roll record. You either preview or directly lodge the message (or copy the link somewhere else).

If you lodge the message the link to the roll record will be shown as time stamp, 1d6, and result (or the link will show a snapshot of the dice roller record similar as links to dispatches display the upper part of a dispatch).

The Game Master and other players will now see the roll (or maybe the record of the last 5 if it is like the dispatch-link view) as link on the RMB stating time stamp, roll-type, result. Of course, clicking on the link will conveniently lead to the nation's dice roll record site if the roll history has to be checked more careful.

(see *above: Of course the dice symbol linking to the dice roller could either be located on a more hidden place or be even additionally accessible from the RMB itsef, according to demand... )


If typing [roll]1d6[/roll] on the RMB or a dispatch etc can already generate an entry in the roll log, and a link on the RMB, it would be perfect.
Last edited by TheOrc on Thu Oct 05, 2017 2:37 pm, edited 3 times in total.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Thu Oct 05, 2017 4:49 pm

TheOrc wrote:How complicated is a nation specific dice roller with record and displaying its results as links on the RMB? I describe it in the spoiler below.

That's quite a lot more complicated than I'm willing to do. There are about five different brand new features in there, plus UI work, and that's before we get into questions like how you view the dice roll history of a nation that no longer exists.

What might be doable is a simple macro with no edit/cheat protection, but I'm not sure whether that's very useful, or would just lead to lots of complaints about dice roll cheating.

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Thu Oct 05, 2017 7:00 pm

Likewise.

What I'd be possibly interested in implementing some day (not tomorrow!!) would be the ability to use randomness in 3 places:

1. The ordering of poll options.
2. The ability to roll dice in nscode (dispatches and RMB posts).
3. The ability to randomize the order in which defined pieces of a dispatch appear on the page.
4. The ability for some issues (at the discretion of the editing team) to have their options appear in a random order.

For reference :ugeek:

If another admin works on this of course, they will almost certainly do something else.
Last edited by Eluvatar on Thu Oct 05, 2017 7:00 pm, edited 1 time in total.
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
TheOrc
Civil Servant
 
Posts: 7
Founded: Sep 10, 2016
New York Times Democracy

Postby TheOrc » Thu Oct 05, 2017 7:17 pm

[violet] wrote:That's quite a lot more complicated than I'm willing to do.

Sure no worries.

[violet] wrote:What might be doable is a simple macro with no edit/cheat protection, but I'm not sure whether that's very useful, or would just lead to lots of complaints about dice roll cheating.


My humble estimation is, that it will be very useful for many, and it will lead to many complaints too, even from those who never missed it when it wasn't there at all. :p

I still think it is worth it. See the other forums that also don't have a perfect system.


Aclion wrote:The typical ways of cheating are doing shit like roll 6d1 instead of of 1d6 to get a 6 every time, or editing the post repeatedly to effectively reroll the die. It's pretty easy to detect both (edit cheating since we can see that a post is edited), so the answer, I think, is "don't play with people who cheat."


Aclion confirms my simple approach: when it is about roll results, participants should no edit their posts as defined by the guy running the game.

Ya, people might try to cheat but things will sort out eventually. (I mean, even raiding and 'destroying' whole regions is possible here).

A semi cheat protection is not worth it, I guess. Just keep it very simple, and make clear from the start that there will never ever be any cheat protection implemented. (The roll result shouldn't change automatically when quoted etc, of course.. ).

I thank all for their support, ideas and consideration.
Last edited by TheOrc on Thu Oct 05, 2017 8:13 pm, edited 2 times in total.

User avatar
Argentinstan
Minister
 
Posts: 3131
Founded: Feb 26, 2017
Ex-Nation

Postby Argentinstan » Wed Oct 11, 2017 7:42 am

Just use an offsite dice roller or random.com...saves a lot of time with coding it in.
A United Nations of Earthlings member state. Former Prime Minister.
Embassy Program l Bank of the Atlantic l Air Argentine l Argentinstan City Int'l Airport l Guide to Storefronts l Issues l City/County/State/Territory Websites
Telegram Me

Argentinstan is a constitutional monarchy representative democracy led by King Menem III and President Elijah Turner.

User avatar
Vlandia1
Lobbyist
 
Posts: 15
Founded: May 26, 2017
Ex-Nation

Postby Vlandia1 » Wed Oct 11, 2017 3:13 pm

TheOrc wrote:Hi

I tried to find if this topic was raised before. Probably but I couldn't see anything? (sorry)

I wonder if it is possible to integrate a RMB Dice Roller for roleplays?

A simple example would be:
[roll]1d6[/roll] codes for rolling a 6 sided die and can result in the values 1,2,3,4,5,or 6.

Also more complicated operations like 4d6kh3 which would be four rolls of a six sided die, while 'kh3' means 'keep highest three' and dump lowest result. etc

There are many examples on forums with Dungeons and Dragons roleplay.

Thanks
Orc

Sounds great
Lindon Uriel of the Fascist Westphalian Kingdom of Westphalia.
Proud regional development officer of Westphalia.
You can call me Vlan or Vland though.


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Betashock, Bisofeyr, Countriopia, Madrocea, Porfloxonne, Ron Pauldom, Skalliad, Tinhampton

Advertisement

Remove ads