With regards to the 3d dice shown when making a dice roll: Is there a way for a d3 roll to show as a d6 rather than a Fudge die?
Printable View
With regards to the 3d dice shown when making a dice roll: Is there a way for a d3 roll to show as a d6 rather than a Fudge die?
Edit this file: \common\funky_dice.xml
ChangetoCode:<customdie name="d3">
<model>dF</model>
<menuicon>icond3</menuicon>
<script>
function onValue(result)
return math.random(3);
end
</script>
</customdie>
Code:<customdie name="d3">
<model>d6</model>
<menuicon>icond3</menuicon>
<script>
function onValue(result)
return math.random(3);
end
</script>
</customdie>
To that end, would you prefer I post my findings on this thread or somewhere in the Unity Thread? The main thing I found so far is that the /myinit roll triggers a console error referencing a null field. I am currently at work but will give you the specifics once I am able to reproduce it from my home PC.
Thanks!
More or less, the target number is your Skill Total, modified by the difficulty, but it's all in fractions. I'll copy the table from the book:
Difficulty --- Skill Modifier
Very Easy --- Double the skill value
Easy --- Add half again to the skill value
Standard --- No adjustment.
Hard --- Reduce the skill value by one third
Formidable --- Reduce the skill value by half
Herculean --- Reduce the skill value to one tenth
Everything is rounded up.
You can probably skip this part and let the users do the calculations manually.
Here is the output from unity when trying to use the /myinit roll:
[1/9/2020 8:44:17 PM] [WARNING] template: Could not find template (visible) in class (cli_rolls)
[1/9/2020 8:44:17 PM] [WARNING] template: Could not find template (visible) in class (cli_rolls)
[1/9/2020 8:44:17 PM] [WARNING] template: Could not find template (visible) in class (cli_rolls)
[1/9/2020 8:44:18 PM] [NOTICE] s'performAction: ' | nil | { s'sType' = s'pc', s'sCreatureNode' = s'charsheet.id-00001', s'sCTNode' = s'', s'sName' = s'Dragon AGE Template' } | s'3d6+0 Initiative'
[1/9/2020 8:44:18 PM] [NOTICE] s'who am i?: ' | s'charsheet.id-00001'
[1/9/2020 8:44:18 PM] [NOTICE] s'performAction: ' | nil | { s'sType' = s'pc', s'sCreatureNode' = s'charsheet.id-00001', s'sCTNode' = s'', s'sName' = s'Dragon AGE Template' } | { s'aDice' = { #1 = s'd6', #2 = s'd6', #3 = s'd6' }, s'nMod' = #0, s'sWho' = s'charsheet.id-00001', s'sType' = s'myinit', s'sDesc' = s'Initiative (3d6+0)' }
[1/9/2020 8:44:22 PM] [NOTICE] s'onLanded: ' | { s'sType' = s'pc', s'sCreatureNode' = s'charsheet.id-00001', s'sCTNode' = s'', s'sName' = s'Dragon AGE Template' } | nil | { s'aDice' = { #1 = { s'value' = #1, s'type' = s'd6', s'result' = #1 }, #2 = { s'value' = #1, s'type' = s'd6', s'result' = #1 }, #3 = { s'value' = #4, s'type' = s'd6', s'result' = #4 }, s'expr' = s'3d6' }, s'nMod' = #0, s'sWho' = s'charsheet.id-00001', s'sType' = s'myinit', s'bSecret' = bFALSE, s'sDesc' = s'Initiative (3d6+0)' }
[1/9/2020 8:44:22 PM] [NOTICE] s'nTotal: ' | #0
[1/9/2020 8:44:22 PM] [<color="red">ERROR</color>] Script execution error: [string "scripts/manager_custom_init.lua"]:87: attempt to perform arithmetic on field 'result' (a nil value)
I also get the following when starting a game with the MoreCore ruleset:
[1/9/2020 9:10:38 PM] [NOTICE] Launcher scene starting.
[1/9/2020 9:11:01 PM] [NOTICE] Spawning private server.
[1/9/2020 9:11:01 PM] [NOTICE] Connected to game server.
[1/9/2020 9:11:02 PM] [NOTICE] Launcher scene exiting.
[1/9/2020 9:11:02 PM] [NOTICE] Tabletop scene starting.
[1/9/2020 9:11:13 PM] [<color="red">ERROR</color>] font: Missing TTF tag for font (smallheadertext). [MoreCore] [graphics/graphics_fonts_mc.xml]
[1/9/2020 9:11:17 PM] [NOTICE] s'aMajor: ' | { s'CoreRPG' = #4, s'MoreCore' = #1 } | s' aMinor: ' | { s'CoreRPG' = #0, s'MoreCore' = #51 }
[1/9/2020 9:11:17 PM] [NOTICE] s'onInit: registerResultHandler'