Working on a custom ability that divides the possible abilities gained into a number of different categories. All abilities are classified as "Assassin Technique" and have the abCategory.Ass_tech (don't laugh). All abilities are then categorized as either Hot techniques (tag abCategory.Hot_tech) or Cold techniques (abCategory.Cold_tech). Then, finally, each ability is assigned one of eight different technique categories (e.g. Infiltration, Intuition, Poison, etc.) Each technique category has its own abCategory tag.
At first level, the user chooses four technique categories, called Specializations. This is my primary custom ability. The user must choose two "Hot" techniques and two "Cold" techniques. I want to script this so that once two "Hot" or "Cold" techniques are chosen, the remaining unchosen ones are disabled.
I was thinking about something like this,
but I know my transitioning isn't right. How do I transition to the hero context so that all "Hot" or "Cold" tags are counted, and not just the ones in the current ability context?
At first level, the user chooses four technique categories, called Specializations. This is my primary custom ability. The user must choose two "Hot" techniques and two "Cold" techniques. I want to script this so that once two "Hot" or "Cold" techniques are chosen, the remaining unchosen ones are disabled.
I was thinking about something like this,
Code:
doneif(hero.parent[cAssPoison].tagcount[abCategory.Cold_tech]>=2)