Hopefully we are getting somewhere. It feels good.
Now the player has been presented options at the time
he is selecting the target. He positions the cursor on
a cell, combatant, or both. We run hook "SpellTargeting"
and the player is presented with the options:
He selects "Pass".
How long do we have to remember this selection?
If we remember this in a Global variable it will be overwritten
the next time the same spell is cast. So the BIG question is:
a)Do we have to remember that the player chose "Pass"
after the player is again presented with these same options?
No. The script will process this immediately.
b)Why or why not? Ie: Where and when will this choice be used?
We will use it before the player is presented with the choice again. This choice will be used in the script that immediately applies the AURA to the target, whether it be combatant or location.
I worry that the answer is that we do have to remember
several choices. Perhaps because the spell can target
several locations/combatants. Perhaps for other reasons.
If so, the problem is more difficult because the choice must
be remembered with each instance of spell/target rather
than simply a global choice.
For what I want to use this for, we do not need to remember multiple choices. I can foresee someone else wanting to do things differently. I have several suggestions as to resolve this. I am sure there are things I'm not going to think of.
1) You create the Hook so that it only allows a count of 1, so that know matter what number the designer uses with this particular selectByCount, that we only honor the first and ignore rest.
2) You create a new targeting type for the Hook to work with - SelectTarget or some such that is exactly like selectByCount except that it only has 1 target.
3) The global variable holds a delimited string instead of a single value. After the spell resolves, by which I mean the effects are applied to the targets (we would know this is done because the next combatant gets a turn meaning that all of this spell taking affect is done, not that the spell is done, just the applying of it)
We should do whichever is easiest or best, depending on how hard these would be to implement. Or, we choose option #4.