Myrddin
July 14th, 2013, 01:26
I am modifying the 3.5E ruleset for Pendragon and I want to modify the string parser within the 3.5E ruleset.
Instead of the syntax for Skill entries on the NPC sheet requiring a skill name, sign and a value for the skill modifier, I want to simply allow the skill name and value to be recorded. For example, instead of Hunting +10 I want to write the entry as Hunting 10.
I have identified the line of code which I need to modify within the campaign_npc_skill.lua file:
local nStarts, nEnds, sLabel, sSign, sMod = string.find(aClauses[i], "([%w%s\(\)]*[%w\(\)]+)%s*([%+%-–]?)(%d*)");
However, I am struggling to adjust it to work as I intend. Can anybody give me any pointers?
Instead of the syntax for Skill entries on the NPC sheet requiring a skill name, sign and a value for the skill modifier, I want to simply allow the skill name and value to be recorded. For example, instead of Hunting +10 I want to write the entry as Hunting 10.
I have identified the line of code which I need to modify within the campaign_npc_skill.lua file:
local nStarts, nEnds, sLabel, sSign, sMod = string.find(aClauses[i], "([%w%s\(\)]*[%w\(\)]+)%s*([%+%-–]?)(%d*)");
However, I am struggling to adjust it to work as I intend. Can anybody give me any pointers?