PDA

View Full Version : Button dice rolling!



Visvalor
December 14th, 2009, 23:17
Ok my next little project involves putting a generic control on the front page (4 to be exact) and having each one roll a dice when you click it, the dice would have to be selectable, and the modifier to go with it would go off of a stat determined inside the charsheet, (Also if possible the die selected could be set by a variable too)

On top of that though when the button is clicked it'll have to not only roll the dice, add the modifer but also put a little /emote statement for like

/e swings his sword for a total of 33

The thing is it'd have to look in several places for that info heh...

/e AttackType their WeaponType for a total of Damage damage!

Also wondering if it is possible to make a local shared table so that people can target "monsters" and attack them in turns and have the monsters table automatically reduce damage from defense, dodge etc.

Ok first thing first. How does one make a command to throw dice? And how do I attach a /e to it with variables?

Moon Wizard
December 15th, 2009, 07:56
Your goal sounds like it will take some time to implement, and you will need to come to grips with many aspects of ruleset building.

Your best bet is to look at other rulesets that already handle double-click rolling of fields on a character sheet, which sounds most like what you are working on. You can try looking at the d20_JPG or 4E_JPG rulesets.

d20_JPG Link (https://www.fouruglymonsters.com/community/community/groups/viewgroup/62-DD+3rd+Edition+FG+Development)
4E_JPG Link (https://fantasygrounds.wikia.com/wiki/4E_JPG)

Cheers,
JPG

Visvalor
December 17th, 2009, 01:25
I don't have either of those but I do have Savage Worlds which has something like it :P

Still can't understand it but I'm looking into it XD!

Moon Wizard
December 17th, 2009, 07:45
Both those rulesets are community rulesets that you can download for free.

Cheers,
JPG