Hi, this might even be classed as a Beginner's Topic, if so sorry...

I have just written a long script that hands 3d fighting (no collisions as yet though...). The whole thing is designed so that the same function can be accessed by different characters.

So... I have one character and when the action that calls the function is applied to him, everything works perfectly.

Then another character - and he's going crazy, and messing up the first character.

Now obviously (I think), this is because of the difference between skills and variables... When one character is using the script it's fine because the variables only apply to him, but when two characters use it presumably the variables get messed up. I am already using a helluva lot of skills, and I thought I had used them in the right places so that the variables would remain local... I can't just play it safe and make everything a skill, as I would need way more than forty...

Er, so in a convoluted way, what I am asking is quite simple: Can someone please explain to me, as though I was three years old, exactly when it's okay to use variables instead of skills in a script that must be used by more than one character...

Thanks, sorry if this is really basic.
Cheers,
Keith