-
February 1st, 2022, 02:44 #1
Where is 'Focus Crit' and 'Focus 1,1D' coming from on damage rolls?
I'm trying to set up some new characters for a game and all of the damage rolls have the text
[FOCUS 1,1D] [FOCUS CRIT ]
-
February 1st, 2022, 02:48 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
Some questions:
* Are you running any extensions?
* How did you create the rolls?
* Do you have any unpacked rulesets in your FG data folder under rulesets subfolder?
That text is passed as part of the damage roll information for 4E; but the code is set up to strip that information automatically when the roll completes before it is displayed in chat. (line 504 of ActionDamage script)
Reagrds,
JPG
-
February 1st, 2022, 03:18 #3
* I was running a theme, but I've removed it and the text is still there
* I've tried using a damage action on a power as well as from weapon entry on the Combat tab. Text is there in both cases. The power and the item were added via drag/drop from a module.
* No unpacked rulesets that would interact with 4e; just some that I'm working on. Not 4e or CoreRPG
-
February 1st, 2022, 03:20 #4
I'm looking at the code, and I think the issue is because the Comm.deliverMessage accepts rMessage as its arg, the text for which is un-edited. The string.gsub should be on rMessage.text, not rRoll.sDesc
EDIT: Replacing line 504 with this seems to work.
Code:rMessage.text = string.gsub(rMessage.text, " %[FOCUS ([^]]+)%]", "");
Last edited by Saagael; February 1st, 2022 at 03:28.
-
February 1st, 2022, 04:50 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
Good catch. That would do it. I'll include with the next 4E update.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks