Laran Mithras Posted May 23, 2022 Share Posted May 23, 2022 I have quite a bit of XML modding experience in various games. However, this is the first time I'm using XPath. To test my sublimely superb modding abilities (sarcasm), I have constructed a simple test mod. No, I don't want my Sham Chowder being super food. Just a test. To wit: <configs> <set xpath="/items/item[@name='foodShamChowder')]/effect_group/triggered_effect[@cvar='$foodAmountAdd']/@value">100</set> </configs> The loading screen shows an error "@value has an invalid token. Token? The structure was copied from several different existing mods written by others, so I must be missing something here that escapes me. Help? Thanks =) Link to comment Share on other sites More sharing options...
Laran Mithras Posted May 23, 2022 Author Share Posted May 23, 2022 (edited) There is an errant parentheses ) in the 1st @name, copy pasted in error. However, still not wanting to work though I get no error. Hmm Ok, monkeyed around more and found the answer myself. Edited May 23, 2022 by Laran Mithras Problem solved (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now