Claneidosyan
September 5th, 2016, 18:04
Hello!
I hope someone can help me on this one!
I recently started looking into ruleset modifications and, looking at 3.5 ruleset I managed to create a little core extension form my custom game.
For now I only needed a stat sheet and a rollable skill list and I thought it wouldn't be too difficult.
I managed to get a basic understanding of how the databa se works and I created the stat sheet and the skill list.
Ok, I actually adapted the 3.5 skillist :p
Rolling the skill I'd like the chat to show a result compared to the associated stat (If your roll is less or equal the stat it's good and something like that)
The only problem is that dragging or double clicking the total rolls the dice, but no result is shown on chat. The dice is cast, it rolls, it stops and it fades away and nothing is shown.
If I understood the 3.5 skillset correctly, the function "onRoll" is used to print the message.
I tried creating and printing a message in the "performroll" function and it looks like this now.
function performRoll(draginfo, rActor, sSkillName, nSkillMod, sSkillStat, nTargetDC, bSecretRoll, sExtra)
local rRoll = getRoll(rActor, sSkillName, nSkillMod, sSkillStat, nTargetDC, bSecretRoll, sExtra);
ActionsManager.performAction(draginfo, rActor, rRoll);
local rMessage = ActionsManager.createActionMessage("skill", rRoll);
Comm.deliverChatMessage(rMessage);
end
This message is printed in the chat window and it prints the skill label (correctly), the skill total (correct for now), and nothing else. No dice icon shown and no dice result. This is shown just clicking on the dice, without actually throwing it.
I thik the result of the dice roll should be captured by the "ActionsManager.registerResultHandler("skill", onRoll);" call on the onInit function but for now it doesn't work...
What am I doing wrong? Thank you for the help and sorry if I missed something extremely basic ^^"
I hope someone can help me on this one!
I recently started looking into ruleset modifications and, looking at 3.5 ruleset I managed to create a little core extension form my custom game.
For now I only needed a stat sheet and a rollable skill list and I thought it wouldn't be too difficult.
I managed to get a basic understanding of how the databa se works and I created the stat sheet and the skill list.
Ok, I actually adapted the 3.5 skillist :p
Rolling the skill I'd like the chat to show a result compared to the associated stat (If your roll is less or equal the stat it's good and something like that)
The only problem is that dragging or double clicking the total rolls the dice, but no result is shown on chat. The dice is cast, it rolls, it stops and it fades away and nothing is shown.
If I understood the 3.5 skillset correctly, the function "onRoll" is used to print the message.
I tried creating and printing a message in the "performroll" function and it looks like this now.
function performRoll(draginfo, rActor, sSkillName, nSkillMod, sSkillStat, nTargetDC, bSecretRoll, sExtra)
local rRoll = getRoll(rActor, sSkillName, nSkillMod, sSkillStat, nTargetDC, bSecretRoll, sExtra);
ActionsManager.performAction(draginfo, rActor, rRoll);
local rMessage = ActionsManager.createActionMessage("skill", rRoll);
Comm.deliverChatMessage(rMessage);
end
This message is printed in the chat window and it prints the skill label (correctly), the skill total (correct for now), and nothing else. No dice icon shown and no dice result. This is shown just clicking on the dice, without actually throwing it.
I thik the result of the dice roll should be captured by the "ActionsManager.registerResultHandler("skill", onRoll);" call on the onInit function but for now it doesn't work...
What am I doing wrong? Thank you for the help and sorry if I missed something extremely basic ^^"