Lord Magus
Well-known member
An adjustment I created has a chooser from 6 abilities called "affinities"
Choosing 1 of those has a variety of effects, including changing the caster level on spells that I have already tagged (using a sSchool user-defined tag) as linked to said affinity.
I can't find a reference or an example to learn how to do the following:
Extract (pull?) a tag (Affinity.?) from the affinity thing that has been chosen, define a corresponding sSchool.? tag (push?) and then insert this sSchool.? tag in a foreach loop that selects the relevant spells to modify the caster level. In particular, I don't have a clue for the last step (inserting the tag).
Any pointers or examples to help me here? This whole tag extraction and manipulation thing has really been what has been holding me back on a number of scripting projects for this campaign... Thanks!
Choosing 1 of those has a variety of effects, including changing the caster level on spells that I have already tagged (using a sSchool user-defined tag) as linked to said affinity.
I can't find a reference or an example to learn how to do the following:
Extract (pull?) a tag (Affinity.?) from the affinity thing that has been chosen, define a corresponding sSchool.? tag (push?) and then insert this sSchool.? tag in a foreach loop that selects the relevant spells to modify the caster level. In particular, I don't have a clue for the last step (inserting the tag).
Any pointers or examples to help me here? This whole tag extraction and manipulation thing has really been what has been holding me back on a number of scripting projects for this campaign... Thanks!