Stv
June 12th, 2022, 11:11
I'm looking at amending the 'sName' field of some spells (in the Spelldata.lua file) to add additional text into the effects tab when the spells are added to the players character sheet.
I'm currently doing this when my extension initialises in the hope that it will remain compatible with other extensions if they are editing or amending the Spelldata file also.
(Just using the shield spell as an example).
test=DataSpell.parsedata
for key, value in pairs(test) do
if key=="shield" then
value[1].sName=value[1].sName.." ;(new text here)"
end
end
This need tidying up ofc, but before I continue I would appreciate any input if there is a neater/better way of achieving what I want.
*Edit*
Also a question to the Devs...
Do spells from additional sourcebooks i.e. Xgte get placed in Spelldata.lua or do they go elsewhere.
Cheers, Steve.
I'm currently doing this when my extension initialises in the hope that it will remain compatible with other extensions if they are editing or amending the Spelldata file also.
(Just using the shield spell as an example).
test=DataSpell.parsedata
for key, value in pairs(test) do
if key=="shield" then
value[1].sName=value[1].sName.." ;(new text here)"
end
end
This need tidying up ofc, but before I continue I would appreciate any input if there is a neater/better way of achieving what I want.
*Edit*
Also a question to the Devs...
Do spells from additional sourcebooks i.e. Xgte get placed in Spelldata.lua or do they go elsewhere.
Cheers, Steve.