1 Attachment(s)
Now it works in FGC and FGU
So, while running my campaign tonight we came across the issue of how to track damage to shields and so I came here looking for an extension because I figured there must be one. I tried the original one included in this thread and found that it did not work properly in FGU but that it does work in FGC. I would never admit to being able to program my way out of a paper bag but I was able to figure out why it does not work in FGU.
Based on my limited knowledge of LUA and extensions in general it seems that FGU wants to see paths in front of calls/references (I don't know if either is the right terminology) to .lua files. There is an XML file located in the 'campaign' directory of the extension called 'record_char_actions.xml' that calls/references a file called 'char_weaponadd.lua' which is located in the 'scripts' folder of the extension.
record_char_actions.xml (Line 10) Before:
Code:
<script file="char_weaponadd.lua" />
record_char_actions.xml (Line 10) After:
Code:
<script file="scripts\char_weaponadd.lua" />
I made this change and now the extension works in FGU and still works properly in FGC. Enjoy.
Attachment 45395
PS: Hopefully someone can tell me if my reasoning above is correct or not.
PPSS: I wonder if there are any plans to add this functionality into the PF2E ruleset. I am sure it could be extended beyond shields to other items as well.
Stargrove