5E Product Walkthrough Playlist
Page 9 of 12 First ... 7891011 ... Last
  1. #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";

  2. #82
    Quote Originally Posted by Weissrolf View Post
    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
    I see you changed the icon and font. Could you paste your extension.xml so I can see what you did there?
    Or just upload your version of the extension.
    “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

  3. #83
    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.

  4. #84
    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.

  5. #85
    Quote Originally Posted by vaughnlannister View Post
    Hey, with these steps:

    download the extension --> change ext. to zip --> unzip file --> open the extension file --> go to folder themes --> go to folder default --> open theme_settings.xml using notepad or another application.

    Then change the value indicated here below with a red underline.
    Replace it with a new colour value, you choose and pick the new colour value you'd like here: https://htmlcolorcodes.com

    I think you also need to edit the critical miss name given here in the theme_settings.xml, like you made in the other xml for critical miss?
    Last edited by vaughnlannister; June 12th, 2021 at 13:23.

  6. #86
    Okay, I've been staring at this for what seems like forever.
    Someone correct me if I'm wrong here:


    1. The theme_settings.xml assigns values to the variables that are used in the configurator.lua
    2. Depending on the results determined in configurator.lua, FGU message icons and fonts are assigned the variables from theme_settings.xml
    3. The variable names used in theme_settings.xml should have no influence on the FGU icons and fonts.
    4. 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";
    This does not work in the PFRPG2 ruleset as it still uses the default icon, but if I change the fumble to crit_miss like so:

    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";
    it works and the new icon appears correctly in the chat window.

    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

  7. #87
    Thanks Drowbe. It's fantastic.

  8. #88
    are you thinking of hosting it on Forge?

  9. #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?

  10. #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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in