-
October 29th, 2019, 11:06 #1
onDoubleClick not working as expected
Ruleset: The One Ring
Issue: onDoubleClick action not working
The onDoubleClick action defined for the skill on the character sheet doesn't work. The onDragStart action does.
Code:function onDoubleClick(x,y) local dieLabel = ""; local dieMod = 0; if dieLabel and dieLabel ~= "" then dieLabel = dieLabel .. " + " .. window.athleticslabel.getValue(); else dieLabel = window.athleticslabel.getValue(); end local weary = window.conditionweary.getState(); if weary then ChatDice.wearyDiceCheck(getValue(), dieMod, dieLabel); else ChatDice.skillDiceCheck(getValue(), dieMod, dieLabel); end return true; end
Code:function skillDiceCheck(number, bonus, name) if Comm then local dice = {}; table.insert(dice, "d12"); for i = 1, number, 1 do table.insert(dice, "d6"); end Comm.throwDice("skilldice", dice, bonus, name); end end
Code:function onDoubleClick(x,y) local label = getName():gsub("^%l", string.upper); local woundState = window.getDatabaseNode().getChild("hpstate"); local penalty = window.getDatabaseNode().getChild("hppenalty"); local type = "dice"; if woundState.getValue() == "Severely Wounded" then type = "wounddice"; else type = "skilldice"; end local dice = {}; for i = 1, getValue(), 1 do table.insert(dice, "d10"); end Comm.throwDice(type, dice, penalty.getValue(), label); return true; end
Using Ultimate license - that means anyone can play.
Valarian's Fantasy Grounds Rulesets
-
October 31st, 2019, 00:40 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,558
Thanks for the report. Filed as FGU-598. I'll be circling back to you to get more detail once I get through the bug submission crush and memory issues.
Cheers,
JPG
-
April 2nd, 2020, 19:51 #3
I've checked over this issue and appears to be working correctly. Can you check to see if the ruleset is still producing an issue on your end? Also if it is still being replicated, can you provide me the steps in replicating on my end and what issues you may still be experiencing?
TheOneRing.PNGDominic Morta
Ruleset Developer
Smiteworks
How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it
How to provide an Unity Connection issue?-Connection Issues and What to Provide
Unity Updater issue?-Updater Issues
Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained
Comcast or Cox ISP User?-Comcast XFinity and Cox Users
Have a suggestion?-Feature Request
-
April 3rd, 2020, 16:47 #4
Seems to be working now.
Using Ultimate license - that means anyone can play.
Valarian's Fantasy Grounds Rulesets
-
April 3rd, 2020, 16:51 #5
Thank you. I will push to have this set as resolved.
Dominic Morta
Ruleset Developer
Smiteworks
How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it
How to provide an Unity Connection issue?-Connection Issues and What to Provide
Unity Updater issue?-Updater Issues
Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained
Comcast or Cox ISP User?-Comcast XFinity and Cox Users
Have a suggestion?-Feature Request
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks