Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Plugin to derive an integer value from a "Dice Roll" string

Author
Message
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 8th Jul 2013 22:29 Edited at: 8th Jul 2013 22:32
Anyway, the subject line best describes the single command plugin attached.

returns an integer from the function Dice Roll String Value("[the dice roll string]")

I find it useful with my SQLite databases for RPGs.

It is pretty darn quick (see test project).

It can reach a (random dice roll each time) value for strings like:-

"4d12-9+5D9-4"

or "4000d512+200D9-1+2"

or even "-4+99+2d4+3D6-2d8+14D9-2" etc. etc.

It cannot handle multipliers like "9x3D12" or divisions or percentages.

Still, pretty handy. Hey?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...

Attachments

Login to view attachments
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 14th Jul 2013 01:28
Well, 130 odd people have viewed this posting and no-one has commented... I'll take that as positive...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 16th Jul 2013 09:09
Seems like you could build one yourself, since the expressions seem pretty simple.

here's a start (it's in PlayBASIC, but the code is fairly generic and about as simple as can be)

Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 17th Jul 2013 23:00
@ Kevin Picone,

The link is really interesting - lot's of useful code - thank you for the link...

But, having put the effort in to the plugin (which is damned fast btw) I am now lazy and will use the plugin...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...

Login to post a reply

Server time is: 2024-11-17 22:36:19
Your offset time is: 2024-11-17 22:36:19