Re: Script debugging
Well, sir, I have been pondering
this for the last 24 hours or so.
I have come to agree with you.
I very much doubt that anyone
has taken advantage of the unique
identity provided by the code. If
some existing script depends on it,
I will provide conversion functions.
Here is a little 'gotcha'. We will change
this to be party index rather than
PC id. Let us say you do the following:
size = $PARTYSIZE
$WHILE(index <# size)
{
------
$IF (index == 1) delete party member 1
-------
index = index +# 1;
};
Do you see what happens?
Your code never examines party
member(2). Do you see why?
And you will get an error when the
index exceeds the partysize. Do
you see why?
But I suppose scripts are unlikely
to get caught in such traps.
Until you get a version that uses
index rather than id, you can probably
proceed as if it were indexes because
things only get screwed up if a party
member leaves the party and no other
is added.
Last edited by Paul Stevens; 05-24-2010 at 10:02 AM.
|