Skip to content

Matching shouts? #3

Description

@megapatato

How should one match shouts? From the schema, I expected FormType:Spell & SpellType:VoicePower to work, but they did not. In fact, FormType:Spell matched all other spells but not voice powers, suggesting VoicePower is not a valid subtype of Spell.

Also, the schema l.167 includes a line suggesting Shout as a valid FormType, but that type is absent elsewhere in the code; this said, the InventoryInjector.log does not show this as a parse error.

See the below testing code, which should use for icons:

  • Magenta apple: all spells, including voice powers
  • Animal Allegiance: red apple
  • Aura Whisper: green apple
  • Become Etherial: blue apple

None of the entries modified the shouts.

{
    "$schema": "https://raw.githubusercontent.com/Exit-9B/InventoryInjector/main/docs/InventoryInjector.schema.json",
    "rules": [
        {
            "match": {
                "formType": "Spell"
            },
            "assign": {
                "iconSource": "SkyUI/icons_item_psychosteve.swf",
                "iconLabel": "default_food",
                "iconColor": "#ff00ff"
            }
        },
        {
            "match": {
                "formType": "Shout",
                "formId": {
                    "anyOf": [
                        "Skyrim.esm|5fc77"
                    ]
                }
            },
            "assign": {
                "iconSource": "SkyUI/icons_item_psychosteve.swf",
                "iconLabel": "default_food",
                "iconColor": "#ff0000"
            }
        },
        {
            "match": {
                "formType": "Spell",
                "formId": {
                    "anyOf": [
                        "Skyrim.esm|7097b"
                    ]
                }
            },
            "assign": {
                "iconSource": "SkyUI/icons_item_psychosteve.swf",
                "iconLabel": "default_food",
                "iconColor": "#00ff00"
            }
        },
        {
            "match": {
                "formType": "Spell",
                "spellType": "VoicePower",
                "formId": {
                    "anyOf": [
                        "Skyrim.esm|32920"
                    ]
                }
            },
            "assign": {
                "iconSource": "SkyUI/icons_item_psychosteve.swf",
                "iconLabel": "default_food",
                "iconColor": "#0000ff"
            }
        }
    ]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions