-
June 10th, 2021, 23:34 #71
- Join Date
- Jun 2020
- Posts
- 32
I did that for the fonts and the icons I changed the color using paint.net
icons.jpeg
chat.jpeg
-
June 11th, 2021, 18:49 #72
-
June 12th, 2021, 06:18 #73
I'm running PF2 and decided to try it out and it works beautifully apart from one minor irritant: the critical miss is not working.
automatic miss.png
I then changed the text match from:
Code:if string.match(rMessageGM.text, "%[AUTOMATIC MISS%]") then
Code:if string.match(rMessageGM.text, "%[CRITICAL MISS%]") then
critical miss.png
What am I missing?“Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.”
Terry Pratchett [RIP] - Jingo
-
June 12th, 2021, 07:33 #74
Your on the right track, I think that for the ruleset your using, "Automatic Miss", may be named differently, though I know very little about the ins and outs of if this. You could send a DM to celestian he makes many extension for 2E he would have a better answer for your question, it looks like something small to fix?
Good luck!
-
June 12th, 2021, 08:31 #75
-
June 12th, 2021, 09:05 #76
Hey, I think I've figured out why it isn't working, the string match, as it is now is set up to recognise the GM text in 5e.
In 5e
In 2e
I think you have to slightly tweak the "%[AUTOMATIC MISS%]" part to also match the DEF EFFECTS
if string.match(rMessageGM.text, "%[AUTOMATIC MISS%]") then
The following two links should be helpful matching it:
https://www.lua.org/manual/5.2/manual.html#6.4.1
https://lua-users.org/wiki/PatternsTutorial
Though I'm not quite sure.
Good Luck!Last edited by vaughnlannister; June 12th, 2021 at 09:20.
-
June 12th, 2021, 09:09 #77
- Join Date
- Aug 2019
- Posts
- 2,025
- edited - see my next post
Last edited by Weissrolf; June 12th, 2021 at 09:20.
-
June 12th, 2021, 09:13 #78
-
June 12th, 2021, 09:19 #79
- Join Date
- Aug 2019
- Posts
- 2,025
-double post-
Last edited by Weissrolf; June 12th, 2021 at 09:54.
-
June 12th, 2021, 09:21 #80
- Join Date
- Aug 2019
- Posts
- 2,025
I just tried both (with and without %) and they both work for me.
But I just remembered that I edited the extension before to make it work in PF2, but forgot which parts I changed. So here is the full block:
Code:if string.match(rMessageGM.text, "%[CRITICAL MISS%]") then -- it is a fumble... reset things to a fumble rMessageGM.icon = "roll_attack_crit_miss"; rMessagePlayer.icon = "roll_attack_crit_miss"; rMessageGM.font = "attack_roll_crit_miss_msgfont"; rMessagePlayer.font = "attack_roll_crit_miss_msgfont"; end
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks