-
June 12th, 2021, 09:27 #81
Ah great ! Now also people in 2e can enjoy the theme.
Original Code: (just for reference, for people wanting to compare it to the changes you made !
if string.match(rMessageGM.text, "%[AUTOMATIC MISS%]") then
-- it is a fumble... reset things to a fumble
rMessageGM.icon = "roll_attack_fumble";
rMessagePlayer.icon = "roll_attack_fumble";
rMessageGM.font = "attack_roll_fumble_msgfont";
rMessagePlayer.font = "attack_roll_fumble_msgfont";
-
June 12th, 2021, 11:06 #82“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, 12:04 #83
- Join Date
- Aug 2019
- Posts
- 2,025
Extension.xml was not changed. The change in icon/font names reflect the names used by the PF2 ruleset. The font change isn't correct, though, so I have to take another look at it (critical miss uses a different font than the rest now). I did not care to fix that yet.
-
June 12th, 2021, 12:45 #84
- Join Date
- Aug 2019
- Posts
- 2,025
I think the font difference for me is just my theme not applying to the critical miss font?! So I might have to fix that in the theme instead.
Last edited by Weissrolf; June 12th, 2021 at 12:49.
-
June 12th, 2021, 13:19 #85
-
June 13th, 2021, 13:25 #86
Okay, I've been staring at this for what seems like forever.
Someone correct me if I'm wrong here:
- The theme_settings.xml assigns values to the variables that are used in the configurator.lua
- Depending on the results determined in configurator.lua, FGU message icons and fonts are assigned the variables from theme_settings.xml
- The variable names used in theme_settings.xml should have no influence on the FGU icons and fonts.
- If, instead of roll_attack_hit.png, I used donald_duck.png it should work.
So looking at both files, I have:
Code:theme_settings.xml <icon name="roll_attack_crit_fumble" file="themes/default/roll_attack_fumble.png" /> configurator.lua rMessageGM.icon = "roll_attack_fumble"; rMessagePlayer.icon = "roll_attack_fumble";
Code:theme_settings.xml <icon name="roll_attack_crit_miss" file="themes/default/roll_attack_fumble.png" /> configurator.lua rMessageGM.icon = "roll_attack_crit_miss"; rMessagePlayer.icon = "roll_attack_crit_miss";
Why does it matter???? I'm trying to wrap my head around it and it's though I've drunk a pangalactic gargleblaster.....
Someone please put me out of my misery.“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 27th, 2021, 00:17 #87
- Join Date
- Mar 2020
- Posts
- 54
Thanks Drowbe. It's fantastic.
-
July 25th, 2021, 06:46 #88
- Join Date
- Oct 2019
- Location
- Hong Kong
- Posts
- 310
are you thinking of hosting it on Forge?
-
July 28th, 2021, 18:59 #89
I've been away on a family road trip for the last 6 weeks... coming back up to speed. Didn't get a chance to work on the extension during the trip (too busy seeing the US), and haven't wrapped my head around forge yet. Can you post free extensions there?
-
July 28th, 2021, 19:03 #90
Sure you can. Hope u enjoyed the trip
UTC +2
Italian DM
Italian/English Player
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks