Integrated dice rolling [message #18916] |
Wed, 16 June 2004 21:06 |
shorter
Messages: 1 Registered: June 2004
Karma: 0
|
Junior Member |
|
|
I'm considering using the forum for gaming purposes, and I'm curious if it would be possible to add commands to the forum posting capabilities. Suppose the game were AD&D (for a fairly commonly understood example) I'm imagining a command syntax something like:
Player X posts:
I swing to hit the Bandersnatch: [ roll ]1d20[/roll]
And the server actually calculates the desired roll and saves the message as:
I swing to hit the Bandersnatch: [[ 1d20 rolled: result = 17 ]]
The [[ xx ]] format would be used to indicate a server generated roll. To keep players from cheating and just posting the latter (i.e. make it look like the server rolled when it didn't), the server would also have to detect and reject the players from spoofing like that.
Obviously, this is fairly specialized functionality... is it something that could be manually added by someone with a decent PHP knowledge (I'd don't have that, but would be willing to learn)? Would it be possible? Would it be hard?
Thanks,
Scott
|
|
|
Re: Integrated dice rolling [message #18918 is a reply to message #18916] |
Thu, 17 June 2004 00:03 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If you are reasonably well familiar with PHP you should be able to make this customization by editing post_proc.inc.t
FUDforum Core Developer
|
|
|
|
|
|