Thanks for the reports and information to find the rules in the book. I don't get to play BRP and any help to clarify rules is a huge help.
Printable View
Thanks for the reports and information to find the rules in the book. I don't get to play BRP and any help to clarify rules is a huge help.
I noted that if you double click on a skill name the roll does not yield the level of success.
I implemented a fix by doing the following:
In record_char_skills.xml I inserted a script in the string field 'label':
And then I changed three functions in charsheet_skilllistitem.lua:Code:<stringfield name="label">
<anchored height="20">
<left anchor="left" offset="15" />
<top anchor="top" offset="5" />
<right anchor="right" offset="-83" />
</anchored>
<font>sheetlabelmini</font>
<keyeditframe>
<name>shadelinesmall</name>
<offset>0,3,0,0</offset>
</keyeditframe>
<script>
function onDragStart(button, x, y, draginfo)
return window.action(draginfo);
end
function onDoubleClick(x, y)
window.rollDice();
end
</script>
<!-- lookup test -->
<lookup>Skills</lookup>
<script file="scripts/lookuphandler.lua"/>
</stringfield>
It works for me, but of course there might be a better way of doing it.Code:function action(draginfo)
local nodeChar = windowlist.window.getDatabaseNode();
local rActor = ActorManager.resolveActor(nodeChar);
local rAction = {};
rAction.totalskill = total.getValue();
rAction.label = label.getValue();
ActionSkill.performRoll(draginfo, rActor, rAction);
return true;
end
function rollDice()
action();
end
function dragDice(button, x, y, draginfo)
if draginfo.getCustomData() then
--[[ nothing to do, already set up --]]
else
-- make this a special type to allow skill chances to change
draginfo.setType("BRPSkillRoll");
return action(draginfo);
end
end
/Peter
The first output is from double-clicking on the skill name and the second one after double-clicking on the skill value.
Attachment 46389
/Peter
Thanks for the fixes that were released yesterday.
However, something strange is going on with the missile damage bonus. See the image below. The chat windows message says it's rolling a 1d2 for the damage bonus but the actual dice used is 1d4.
Attachment 46535
Basic Roleplaying: the Chaosium Roleplaying System (v2021-05-10)
Core RPG ruleset (v2021-05-11) for Fantasy Grounds
/Peter
OK. But the intended range, when the damage bonus is 1d4, is 1 to 2 for missiles and as you can see in the image (case 1 and 3) it return both 3 and 4 and that is not supposed to happen. I also tested with a 1d6 damage bonus, where the range should be 1 to 3 but the rolled range is 1 to 6. I made very sure that the weapon type was "Missile" so that there would be no mix up.
This image is a screen-shot from the Old Basic Roleplaying ruleset:
Attachment 46537
/Peter
Ah, ok. Sorry missed that. I'll see why it's not doing the other die types.