Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsDiscussion Forum → request for game clock and dice script for forums
request for game clock and dice script for forums
2009-06-11, 8:08 PM #1
So I'm still interested in starting lots of new forum games on Massassi, regardless of the results of this request. However, I'd be very grateful if a game clock script and a dice script could be made for use on these forums, and I don't think it requires such to be embedded into the forum system itself. Here's part of a conversation I had about it with MZZT:
Quote:
TheMegaZZTer (10:30:46 PM): hmm so basicallt
TheMegaZZTer (10:31:06 PM): you want it where you can show a script a thread via url and it'll analyize for for keywords
TheMegaZZTer (10:31:21 PM): for like a dice roll or start/stop keywords for a chess thing
gebohq (10:33:39 PM): it doesn't even need to necessarily do that, though I suppose that's one way it could do it. I was thinking, like, you could show a script a thread and say "every time [poster 1] posts, stop clock for [poster 1] and start clock for [poster 2]." I suppose the keyword thing would give it some flexibility though so that the posters playing could post without taking effect on the script
gebohq (10:34:57 PM): *shrug*
gebohq (10:35:46 PM): whatever works :)
TheMegaZZTer (10:36:01 PM): well that concept is doable, except how does the script know who psoter1 and poster2 are?
TheMegaZZTer (10:36:04 PM): and the thread to track, even?
gebohq (10:37:04 PM): well the script would probably need to be told by someone. you know, "go to site, copy-paste link" thing
gebohq (10:38:05 PM): a similar thing would have to be done for assigning which posters will be the players too
TheMegaZZTer (10:38:59 PM): if you explain what this is for it might help me figure out how it should be done
gebohq (10:39:33 PM): I guess it'd be the equivalent of telling it which keywords to search for? or if you use something based on the subscription option on the forums or RSS or something, it could be a way to say "only pay attention to updates made by these posters" or something, I dunno
gebohq (10:39:52 PM): well ideally it'd be for a lot of future forum games on Massassi
TheMegaZZTer (10:41:22 PM): so someone would post like... "roll the dice"
TheMegaZZTer (10:41:34 PM): but you'd have to go to SEE the script's page to see anything
gebohq (10:42:41 PM): well that's why I said ideally it'd be nice for it to generate an image that could be posted on the first post on Massassi, but if that's not do-able, people could link to the script's page on the first post
gebohq (10:43:35 PM): but for especially the dice roll, the important thing would just be to have a method of rolling dice and having results that couldn't easily be altered
gebohq (10:43:49 PM): something tied into the "dice roll" post itself
gebohq (10:44:29 PM): the game clock is more for convinience as I can see it
TheMegaZZTer (10:44:36 PM): hmm an image
gebohq (10:46:16 PM): for dice rolls, you could probably just have 6 images (if using 1 six-sided die for example) that the script would point to, perhaps?
TheMegaZZTer (10:46:30 PM): well
TheMegaZZTer (10:47:07 PM): having the first post contain an image that points to the script could be interesting
TheMegaZZTer (10:47:35 PM): then the image would change based on the posts in the thread
TheMegaZZTer (10:48:22 PM): I'm afraid I have enough programming projects right now though, I'm not really interested in this. But there are other programmers in Massassi

For those of you who don't know what I mean by a game clock, of which any or all of the types of time control would be useful:
http://en.wikipedia.org/wiki/Game_clock

If there are any questions, comments, cynical comments, etc., please post them, and thanks to anyone who can help with this at all.
The Plothole: a home for amateur, inclusive, collaborative stories
http://forums.theplothole.net
2009-06-11, 8:42 PM #2
I would love some sort of Massassi DnD club or better yet, A star wars GURPS.
2009-06-12, 6:17 PM #3
I'm all for encouraging role-playing games on the ISB, but any RPGs that require dice won't be possible without some sort of script. Either way, people can certainly run free-form (which, yes, I consider different enough from interactive stories).
The Plothole: a home for amateur, inclusive, collaborative stories
http://forums.theplothole.net
2009-06-13, 8:37 AM #4
[roll]1244907153.23[/roll]

http://forums.massassi.net/vb3/dice/

I whipped that up in about an hour. Was about as easy as I can make it, short of adding another forum plugin. If there's any bugs, let me know. Also, I can change the dice limits, but I think that covers most needs. I'll clean up the font later I guess >.>
2009-06-13, 9:24 AM #5
thanks for telling us the tags and everything, cm
Holy soap opera Batman. - FGR
DARWIN WILL PREVENT THE DOWNFALL OF OUR RACE. - Rob
Free Jin!
2009-06-13, 9:34 AM #6
COOLMATTY CONTRIBUTED TO FUN

:o
Looks like we're not going down after all, so nevermind.
2009-06-13, 10:59 AM #7
Oh god yes, How long till we can get some games going with this?
2009-06-13, 11:33 AM #8
But that's stupid CM. People can just keep re-rolling until they get what they like and then post it...
2009-06-13, 11:54 AM #9
[roll]1244919182.58[/roll]

:( Fun!

Perhaps the game giver could provide a token that is spent to roll the die?

A ==troll== attacks you.

I use my 2d5 axe. *clicks troll link to roll die*
ᵗʰᵉᵇˢᵍ๒ᵍᵐᵃᶥᶫ∙ᶜᵒᵐ
ᴸᶥᵛᵉ ᴼᵑ ᴬᵈᵃᵐ
2009-06-13, 12:13 PM #10
Originally posted by Vin:
But that's stupid CM. People can just keep re-rolling until they get what they like and then post it...


Apologies for expecting people not to cheat?

Implementing directly in the forum would require db modifications, etc. Besides I can always check the logs.

It's a 1 hour job, jesus.

Another method is the gamemaster can provide the rolls.
2009-06-13, 12:39 PM #11
COOLMATTY IS PROVIDING A LOOPHOLE FOR PEOPLE TO KILL THE FUN!

(thanks coolmatty. This is cool.)

[roll]1244921938.14[/roll]
My Parkour blog
My Twitter. Follow me!
2009-06-13, 1:07 PM #12
[roll]1244923650.87[/roll]
2009-06-13, 2:41 PM #13
Originally posted by Cool Matty:
Apologies for expecting people not to cheat?

Implementing directly in the forum would require db modifications, etc. Besides I can always check the logs.

It's a 1 hour job, jesus.

Another method is the gamemaster can provide the rolls.


The way I'd do it is to make the script an [ img ] link (or a [dice] thing that translates into an img). Someone would simply embed it as an img and it would have a static value without any persistent storage for the script.

Here's how. The script would check the HTTP Referer and then load that page, and parse it looking for where it appears in the page. It then figures out the post number of the post where it was inserted, and then uses that to seed the random number generator and then calculates the random number (seeding with the same number before random number generation gives the same sequence of numbers every time).

Problem #1 is what if there are two scripts with the same URL (or, if we have a dedicated [dice], same # of sided dice) on the same page. Only way I can figure is to have each person put a unique ID somewhere in there, and in case of a conflict the script would print out an error since it can't figure out which post it's from.

Problem #2 is the Referer will only work if it's not reliant on cookie settings (posts per page etc).

However with a [dice] tag I suppose it's possible to pass the post # to the script directly, although then that opens it up for cheating by people manually [ img ]ing it with different random post numbers to get the value they want.

2009-06-13, 3:14 PM #14
In addition to the flaws you mentioned, your method would be ridiculously slow, especially if there are multiple calls on one page.

↑ Up to the top!