PDA

View Full Version : Dice Roller for D&D



kayden87
2011-03-08, 02:45 AM
Hey, I have an android phone samsung galaxy S. Was wondering If anyone knew a free or really cheap Dice rolling app for my phone?

I currently use Dice Bag. Its not bad but I want better lol

The reason why I use Dice bag is because you can make profiles, and set Dice amouts and have it so it can add + w/e damage you want.

So just wondering if a better version or a better dice roller is out there.

Kinda sucks Feudz Dice Roller isnt for androids.. Iphone only

Darkfire
2011-03-08, 06:37 AM
Assuming you can access locally stored files through your phone's browser, you can just write your own in HTML+Javascript. Feel free to adapt my source code:

<html>
<head>
<script type="text/javascript">
<!--
function roll() {
var sets = document.getElementById('sets').value;
var dice = document.getElementById('dice').value;
var sides = document.getElementById('sides').value;
var mod = document.getElementById('mod').value;
//document.getElementById('results').value = "Argument: roll "+sets+"#"+dice+"d"+sides+"+"+mod;
for (var i = sets; i > 0; i--) {
var out = dice + "d" + sides + "(";
var sum = 0;
for (var j = dice; j > 0; j--) {
var roll = Math.floor((Math.random() * sides)+1);
sum = sum + roll;
out = out + roll;
if (j==1) {
out = out + ")";
} else {
out = out + ", ";
}
}
sum = sum + 1*mod;
if (mod>=0) {
out = out + " + ";
}
out = out + mod + " = " + sum + "\n";
var results = document.getElementById('results');
results.value = out + results.value;
}

}

function resetForm() {
document.getElementById('sets').value = 1;
document.getElementById('dice').value = 1;
document.getElementById('sides').value = 20;
document.getElementById('mod').value = 0;
document.getElementById('results').value = "";
}
-->
</script>
</head>
<body>
<form id="roller">
<table>
<tr>
<th></th>
<th>Sets</th>
<th></th>
<th>Dice</th>
<th></th>
<th>Sides</th>
<th></th>
<th>Modifier</th>
</tr>
<tr>
<td>roll</td>
<td><input id="sets" size="3" value="1" type="text"></td>
<td>#</td>
<td><input id="dice" size="3" value="1" type="text"></td>
<td>d</td>
<td><input id="sides" size="3" value="20" type="text"></td>
<td>+</td>
<td><input id="mod" size="3" value="0" type="text"></td>
</tr>
</table>
<a href="javascript:void(null)" onclick="roll()">Roll</a><br>
<a href="javascript:void(null)" onclick="resetForm()">Reset</a><br>
<textarea id="results" cols="30" rows="19" readonly="readonly">
</textarea>
</form>
</body>
</html>

kayden87
2011-03-08, 11:40 AM
Not gunna lie, I dont know what that is :P

kayden87
2011-03-08, 06:29 PM
anybody else know at all?

Ohmnibus
2012-07-09, 05:41 PM
I recently released a new dice roller for Android called Quick Dice Roller (https://play.google.com/store/apps/details?id=ohm.quickdice).

It's definietly cheap since is free :smallbiggrin:

QDR is also organized in profiles (called "dice bags") and can handle virtually any combination of dice.

Plus, using particular "functions", it can handle complex game systems like the ones using dice pool, exploding dice, roll&keep and so on.

In its actual form it cover the large majority of the systems, and if needed I can add new mechanics.

https://play.google.com/store/apps/details?id=ohm.quickdice