Hi!
In my D&D 5e datafiles I still have a problem with the Gauntlets of Ogre power. Basically an eval like this would be needed:
var thestr as number
thestr = #trait[attrStr]
if (thestr<19) then
#traitmodify(...,19-thestr,"Gauntlets of Ogre Power")
endif
My problem: I did not yet find out what the correct phase and priority is. Either the modify does not work or the #trait contains 0.
Anyone has an idea of how to do this (basically the code is very similar to the D&D 4e code in many aspects, especially the MagicItem component).
I can do items which raise the Str by 2, but "setting to 19" seems to be a problem (my current implementation tells the user to do a permanent adjustment after acquiring the gauntlets).
Best regards,
MagicSN
In my D&D 5e datafiles I still have a problem with the Gauntlets of Ogre power. Basically an eval like this would be needed:
var thestr as number
thestr = #trait[attrStr]
if (thestr<19) then
#traitmodify(...,19-thestr,"Gauntlets of Ogre Power")
endif
My problem: I did not yet find out what the correct phase and priority is. Either the modify does not work or the #trait contains 0.
Anyone has an idea of how to do this (basically the code is very similar to the D&D 4e code in many aspects, especially the MagicItem component).
I can do items which raise the Str by 2, but "setting to 19" seems to be a problem (my current implementation tells the user to do a permanent adjustment after acquiring the gauntlets).
Best regards,
MagicSN