DICE PACKS BUNDLE
Page 1 of 2 12 Last
  1. #1

    Join Date
    Mar 2020
    Location
    Sydney, Australia
    Posts
    247

    New Skill Not Working With Effects

    Greetings All,

    I am currently building a new campaign world in FGU.

    Some races gain Skill d4 in racial skills (ex. Human, Steppes gains Riding d4).

    The way I am doing this is using the Skill Racial Ability and using [Riding +1d] in its effects line.

    However for a Skill that I have created (ex. Crafting), the system does not recognise [Crafting +1d].

    Am I missing something? Is there some code somewhere I need to change to "activate" this?

    In addition, if I do not load the SWADE Players Guide and create a new Fighting skill manually (assume a bare bones FGU with no other material loaded), then [Fighting +1d] does not work either.

    This would imply that the effects line is looking for very specific data somewhere.

    Any ideas?
    Thanks In Advance,
    D

  2. #2
    Are you, maybe trying this on characters who are unskilled in that particular skill? The way the skills work is it searches for a skill by name and if it find it, it applies the bonus to the character. If it doesn't find the skill when it looks for it, it instead uses the "unskilled" skill. If the character hasn't been given the skill, there is no way for an effect to find it.

    So, if I set a skill to d4 and then add [crafting +1d] in a racial ability it does, correctly, increase it to a d6. But it doesn't add the first d4. Now, it does work with Fighting, which doesn't actually make sense to me. I'm going to investigate that. So, yea, it does seem to maintain a list somewhere.
    Last edited by ApesAmongUs; October 9th, 2020 at 01:57.

  3. #3

    Join Date
    Mar 2020
    Location
    Sydney, Australia
    Posts
    247
    Quote Originally Posted by ApesAmongUs View Post
    Are you, maybe trying this on characters who are unskilled in that particular skill? The way the skills work is it searches for a skill by name and if it find it, it applies the bonus to the character. If it doesn't find the skill when it looks for it, it instead uses the "unskilled" skill. If the character hasn't been given the skill, there is no way for an effect to find it.

    So, if I set a skill to d4 and then add [crafting +1d] in a racial ability it does, correctly, increase it to a d6. But it doesn't add the first d4. Now, it does work with Fighting, which doesn't actually make sense to me. I'm going to investigate that. So, yea, it does seem to maintain a list somewhere.
    Actually your statement is not how it works in my version of FGU and the SWADE ruleset (fully updated as of today). I have had this work for Language, Focus, anything from the original list of skills.

    However for a skill that I created from scratch it will not do this.

    So I am curious to know what/where in the ruleset, or perhaps the Players Guide itself there is coding that may be doing this for only those skills in the Players Guide.

    I have for example created an option in the Settings window that turns on/off character creation via the new Campaign World. For now it is focused on Skills, and if you state On then it wipes the core skills and relies on the Racial template for the skills you begin with, whereas if you state Off, you get the Core skills.

    However I cannot for the life of me find anything that deals with what we are discussing here. I have a suspicion that it has to do with the <skills> node that is loaded in the Players Guide, however I do not know enough about Modules to confirm that.
    Last edited by UrsaTeddy; October 9th, 2020 at 05:55.
    Thanks In Advance,
    D

  4. #4
    Yea, that's why I said it doesn't make sense to me. From how it works for effects, it does work that way, but not for racial abilities. They (and edges) are added differently than the temporary combat effects. From looking into it, a skill list is defined in manager_skill.lua. So, it seems like you should be able to define a new skill by adding -

    local ATTRIBUTE_SMARTS = "smarts"
    SkillManager.registerSkill("Crafting", ATTRIBUTE_SMARTS)

    - to the onInit of an extension, but it doesn't work for me. Either there is a second step after registering to create the list, or there is a second list of official skills being maintained somewhere. Still looking.

  5. #5

    Join Date
    Mar 2020
    Location
    Sydney, Australia
    Posts
    247
    Quote Originally Posted by ApesAmongUs View Post
    Yea, that's why I said it doesn't make sense to me. From how it works for effects, it does work that way, but not for racial abilities. They (and edges) are added differently than the temporary combat effects. From looking into it, a skill list is defined in manager_skill.lua. So, it seems like you should be able to define a new skill by adding -

    local ATTRIBUTE_SMARTS = "smarts"
    SkillManager.registerSkill("Crafting", ATTRIBUTE_SMARTS)

    - to the onInit of an extension, but it doesn't work for me. Either there is a second step after registering to create the list, or there is a second list of official skills being maintained somewhere. Still looking.
    I have already unregistered all of those skills and registered my new list of skills via an Extension (which also does the Core Skills modification).

    It makes no change AND it stops something like [Fighting +1d] from working unless I load the SWADE Players Guide.

    So confusion.
    Thanks In Advance,
    D

  6. #6
    That's what's craziest to me. If it were a separate list, then unregistering then should do nothing. If it's the same list, then registering a new one should do something. After work, I'm going to try just unregistering 1 skill and seeing if the others continue to work. I have the suspicion that removing even one will break them all, because that would be the result that would make the least sense to me.

  7. #7
    So awhile back in 5E, in order to make it so you could look up the skill by clicking the skill icon on a character sheet, I had to edit the module XML and change the header and footer for the skills to <HACKING> and </HACKING> instead of the skill ID #. Not sure if this will help you, but it is the only thing I can think of. I'd say try whatever the first skill in your XML and see if that works for that skill. Oh, also it needed to be uppercase.

    Took me awhile to find the link but here is more info:

    https://www.fantasygrounds.com/forum...-Custom-skills

    Still not sure it will fix the problem but it might.
    Last edited by esmdev; October 9th, 2020 at 17:06. Reason: Added link

  8. #8
    Yea, that format looks totally different than anything I see in the SW set. I searched for one of the less common skills (used Research instead of Fighting which I would find everywhere) and the term only appeared twice in the SW ruleset. One in the registerskill function we were just talking about and the second time in the manager that did updates from older SW rulesets, since that particular skill changed names between editions. There is no place in any of the xml files that references the skills by name, only in the lua files. Going by what UrsaTeddy said, it might be in the manuals, but I didn't know they affected anything but display. Does SavageWorlds.pak inherit anything from SWD.pak? I haven't tried looking in there.

  9. #9

    Join Date
    Mar 2020
    Location
    Sydney, Australia
    Posts
    247
    Quote Originally Posted by esmdev View Post
    So awhile back in 5E, in order to make it so you could look up the skill by clicking the skill icon on a character sheet, I had to edit the module XML and change the header and footer for the skills to <HACKING> and </HACKING> instead of the skill ID #. Not sure if this will help you, but it is the only thing I can think of. I'd say try whatever the first skill in your XML and see if that works for that skill. Oh, also it needed to be uppercase.

    Took me awhile to find the link but here is more info:

    https://www.fantasygrounds.com/forum...-Custom-skills

    Still not sure it will fix the problem but it might.
    I have tried naming the nodes likes this previously ... I created a module to see if that was the problem ... manually edited the XML of that module to match the style of the SWADE Players Guide (technically I want to replace the SWADE Players Guide in this situation) and it still does not work.

    This has me baffled to the point of where I think there MUST be something in the Players Guide that is actually causing some kind of code change, or at least a data source change that is then affecting the effects [] of a racial ability.
    Thanks In Advance,
    D

  10. #10

    Join Date
    Mar 2020
    Location
    Sydney, Australia
    Posts
    247
    Quote Originally Posted by ApesAmongUs View Post
    Yea, that format looks totally different than anything I see in the SW set. I searched for one of the less common skills (used Research instead of Fighting which I would find everywhere) and the term only appeared twice in the SW ruleset. One in the registerskill function we were just talking about and the second time in the manager that did updates from older SW rulesets, since that particular skill changed names between editions. There is no place in any of the xml files that references the skills by name, only in the lua files. Going by what UrsaTeddy said, it might be in the manuals, but I didn't know they affected anything but display. Does SavageWorlds.pak inherit anything from SWD.pak? I haven't tried looking in there.
    I do not own the SWD.pak personally.

    I bought FGU and the SWADE ruleset only.

    For a straight up 'by the manual" it works as expected, the minute I start monkeying around with it, it breaks.

    I have written extensions previously to do multiple things and they work. I can create options to trigger on/off, I have created options to change the names of stats (visual name versus internal name only) by user entry in the options panel. I have made extensions that modify the character sheet to some degree, however certain things elude me.

    However this is the craziest thing I have seen. Load in a module and it somehow makes something work.
    Thanks In Advance,
    D

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
  •  
STAR TREK 2d20

Log in

Log in