Re: Fabula Ultima
Posted: Mon Jul 28, 2025 1:00 am
Ah! Yeah, the age old problem that afflicts all forums, the extension mod and the developer who moves on...
This is a shame that there seems to be nothing currently up to version phpBB 3.3, however, I did find a mod that was upgraded to 3.2, unfortunately, that developer was Banned from the main site. He did leave a forwarding address, which I peeked at. I'm not sure how much an upgrade would cost, and I've never worked with phpBB before, otherwise, I'd be tempted to build a mod, but it wouldn't be very pretty.
I do know the basic bits of PHP code that would be needed:
That's a really basic function, but note that I haven't built anything in PHP in like a year, so I'm a tad rusty, this probably won't work out of the box. But, this is to demonstrate the core of a dice roller function. Now how to get this function to work with a BBCode within phpBB, I don't know. If this was SMF, I could figure it out in like a week (or actually, just send you the Dice Roller code that works for 2.1.4). I might be able to use something like DeepSeek and cheat a bit, however, I'd take anything that AI generates with a bag of salt, because well, it has a nasty habit of hallucination and spewing just random crap.
This is a shame that there seems to be nothing currently up to version phpBB 3.3, however, I did find a mod that was upgraded to 3.2, unfortunately, that developer was Banned from the main site. He did leave a forwarding address, which I peeked at. I'm not sure how much an upgrade would cost, and I've never worked with phpBB before, otherwise, I'd be tempted to build a mod, but it wouldn't be very pretty.
I do know the basic bits of PHP code that would be needed:
mt_rand(int $min, int $max): int
Code: Select all
RollDice (5,20); // Rolls 5d20.
function RollDice ($numDice = 1, $numSides = 6, )
{
$rollResults = new array();
for ($dieRoll = 0; $dieRoll < $numDice; $diRoll ++)
$rollResult[] = mt_rand(0, $dieMax);
echo 'You Rolled: ' . implode ('$rollResults, ', ');
return 0;
}