Thread: Keep Highest/Drop Lowest ?
-
November 28th, 2014, 04:57 #31
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
The roll "type" set in the dragdata objects used to roll will be used as the same type when the result is dragged from the chat window.
Regards,
JPG
-
November 28th, 2014, 05:06 #32
- Join Date
- Sep 2014
- Location
- Michigan
- Posts
- 65
@damned: Yeah... I did a bit of looking over the manager_actions.lua file at the performAction() function, and I honestly am having a hard time following it too. In my code I am not calling performAction(), I call roll() directly, but for a test I changed the code to the following and it still worked like expected:
Code:local rRoll = createRoll(sParams); ActionsManager.performAction(nil, nil, rRoll);
Code:ActionsManager.registerResultHandler("rolld", onRoll);
Code:function onRoll(rSource, rTarget, rRoll) rRoll = dropDiceResults(rRoll); rMessage = createChatMessage(rSource, rRoll); rMessage.type = "dice"; Comm.deliverChatMessage(rMessage); end
-
November 29th, 2014, 08:02 #33
sadly my code looks completely different... im still stumped.
-
November 30th, 2014, 15:38 #34
Moved damned's ruleset development questions to a new thread: https://www.fantasygrounds.com/forum...cker-questions
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks