Quote:
So, I'm to assume a properly set up $WHILE statement won't work fine?
|
Why not? It should work. If it doesn't,
we'll fix it. $WHILE is documented and
has worked for me.
Your problem is that the party members are
not necessarily numbered 0,1,2,3. Except in
combat. You did not say whether youir script
was designed for a combat setting. We very
definitely need to do something about this
because the documentation is wrong and it
is most confusing for you , me, and anyone
attempting to create scripts.
In combat, there is a function to get the
next combatant and you can put it into
a $WHILE loop until there are no more.
$WHILE (next) {};
Perhaps we should do the same for the
adventuring party. and attempt to change
the documentaion. And add lots of
warnings to the documentation!!!! Because
the simple 0,1,2,3....method will appear to
work well most of the time!!! Perhaps I
should change the code to make 0,1,2,3
NEVER work.
The problem is that the current code allows
a party member to retain his identity as
other party members come and go. If, for
example, there are members 0, 1, 2, and
3 and party member (1) leaves the party,
then party members (2) and (3) retain their
identity and party member (2) is missing.
So the party size will become three and
the members become 0,2,3. Is this valuable?
Perhaps we should change the code so that
it is much simpler. After party member (1)
leaves then the identity of (2) and (3) will
become (1) and (2).
Oh, dear......difficult choices.