A feat I'm entering adds 2 HP for every feat of a specific category (Arcana in this case).
I figure I just need to count the fCategory.Arcana tags, multiply by 2 and += them to HP but I'm no sure how to do the tag counting part.
I'm thinking:
var count as num
foreach feat where tagis[fCategory.Arcana]
count += 1
end
count *= 2
container.child[Totals].field[tHP].value += count
I know my syntax is very likely wrong I just wanted to write out my idea and see if I'm on the right track.
Thanks,
Andrew
I figure I just need to count the fCategory.Arcana tags, multiply by 2 and += them to HP but I'm no sure how to do the tag counting part.
I'm thinking:
var count as num
foreach feat where tagis[fCategory.Arcana]
count += 1
end
count *= 2
container.child[Totals].field[tHP].value += count
I know my syntax is very likely wrong I just wanted to write out my idea and see if I'm on the right track.
Thanks,
Andrew