kronovan
May 6th, 2025, 19:48
I recently completed my extension to change the vehicle window for Fate Core so it better suits Inteface Zero 2.0. I'm now wanting to simplify things for the NPC window. My work on Fate Core vehicles actually involved changing the CoreRPG ruleset vehicles, whereas The NPC window is a Fate Core specific window. The first thing I want to do is make it so that skills listed in the skill field will roll dice when they're double-clicked. Currently, the individual skills do get correctly highlighted when you click them, but double-clicking them does nothing. This is what this field currently looks like with the Shoot skill highlighted.
64299
I noticed this code in the Fate Core record_npc.xml file.
<label_column name="skills_label">
<static textres="npc_label_skills" />
</label_column>
<string_columnh name="skills">
<nodragselect />
<script file="campaign/scripts/npc_roll.lua" />
</string_columnh>
It references a script file named npc_roll.lua, but that file doesn't actually exist. For a code example where a 4dF roll is actually made in the Fate Core ruleset, I've noticed this code in the /scripts/chatdice.lua scipt.
function fatediceCheck(number, bonus, name)
if ChatManager.control then
local dice = {};
for i = 1, number, 1 do
table.insert(dice, "dF");
end
ChatManager.control.throwDice("fatedice", dice, bonus, name);
end
end
So...I'm wondering what I'd need to do to create a missing npc_roll.lua script which would roll fate dice similar to the way they are in chatdice.lua?
But, because it's a skills roll, any skill double-clicked would always roll a 4dF + skill value.
As per usual, I'm pretty much uesless when it comes to LUA, but hey, I keep adventuring. :p
64299
I noticed this code in the Fate Core record_npc.xml file.
<label_column name="skills_label">
<static textres="npc_label_skills" />
</label_column>
<string_columnh name="skills">
<nodragselect />
<script file="campaign/scripts/npc_roll.lua" />
</string_columnh>
It references a script file named npc_roll.lua, but that file doesn't actually exist. For a code example where a 4dF roll is actually made in the Fate Core ruleset, I've noticed this code in the /scripts/chatdice.lua scipt.
function fatediceCheck(number, bonus, name)
if ChatManager.control then
local dice = {};
for i = 1, number, 1 do
table.insert(dice, "dF");
end
ChatManager.control.throwDice("fatedice", dice, bonus, name);
end
end
So...I'm wondering what I'd need to do to create a missing npc_roll.lua script which would roll fate dice similar to the way they are in chatdice.lua?
But, because it's a skills roll, any skill double-clicked would always roll a 4dF + skill value.
As per usual, I'm pretty much uesless when it comes to LUA, but hey, I keep adventuring. :p