Integrated dice rolling [message #18916] |
Wed, 16 June 2004 17:06 |
shorter
Messages: 1 Registered: June 2004
Karma: 0
|
Junior Member |
add to buddy list ignore all messages by this user
|
|
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
|
|
|
|
|
|
|