I am in an Eval Script on a custom Archetype.
Within a "foreach pick" loop, I wish to "if (eachpick.tagis[...] <> 0) then"
If I hardcode the value inside the tagis brackets (e.g.: eachpick.tagis[IsWeapon.wLongbow] ), then everything works fine.
However, I don't have the luxury of hardcoding the target weapon type, I'm reading it from another pick.
So, I have a variable, declared as string that contains something like "IsWeapon.wLongbow".
If I put the variable inside the tagis brackets, I get an "Invalid styntax for tag template" error upon compile.
I found something called tagvaluestr, and tried all kinds of permutations with that, but I keep getting the same error.
Any guidance?
Within a "foreach pick" loop, I wish to "if (eachpick.tagis[...] <> 0) then"
If I hardcode the value inside the tagis brackets (e.g.: eachpick.tagis[IsWeapon.wLongbow] ), then everything works fine.
However, I don't have the luxury of hardcoding the target weapon type, I'm reading it from another pick.
So, I have a variable, declared as string that contains something like "IsWeapon.wLongbow".
If I put the variable inside the tagis brackets, I get an "Invalid styntax for tag template" error upon compile.
I found something called tagvaluestr, and tried all kinds of permutations with that, but I keep getting the same error.
Any guidance?