dmssanctum
April 5th, 2017, 17:34
I'm trying to edit the 5e Ruleset to allow for the parsing of numerical resistances in order to use some custom rules.
The 5e Combat Tracker accepts numerical resistances in the effect, and it correctly reduces damage (i.e. "RESIST: 2 Fire" and "RESIST: Fire") however, the NPC -> Combat Tracker parsing does not recognize this. When I add an NPC with "RESIST: 2 Fire" to the Combat Tracker, it parses only "RESIST: Fire". So I'm attempting to recode to change this.
I believe that the Combat Tracker parsing is located in the file location Scripts -> Combat_Manager2.lua, but I'm very new to lua coding. Everything I've tried so far has resulted in errors when trying to add an NPC to the Combat Tracker. The 3.5 ruleset supports numerical resistances, so I've been trying to use that script file as example code, but the function setup is different in 3.5 and 5e, so I've not gotten very far in that.
If anyone is more experienced in ruleset editing and could give me some pointers or help me out...I feel like this would be a fairly simple code change if I can identify what needs to be edited.
The 5e Combat Tracker accepts numerical resistances in the effect, and it correctly reduces damage (i.e. "RESIST: 2 Fire" and "RESIST: Fire") however, the NPC -> Combat Tracker parsing does not recognize this. When I add an NPC with "RESIST: 2 Fire" to the Combat Tracker, it parses only "RESIST: Fire". So I'm attempting to recode to change this.
I believe that the Combat Tracker parsing is located in the file location Scripts -> Combat_Manager2.lua, but I'm very new to lua coding. Everything I've tried so far has resulted in errors when trying to add an NPC to the Combat Tracker. The 3.5 ruleset supports numerical resistances, so I've been trying to use that script file as example code, but the function setup is different in 3.5 and 5e, so I've not gotten very far in that.
If anyone is more experienced in ruleset editing and could give me some pointers or help me out...I feel like this would be a fairly simple code change if I can identify what needs to be edited.