Quote:
Originally posted by Loriel
Certainly is not more efficient, but I deem it more readable or compact, especially with constructions like this 
NPC Code:
if (static == false && playerfreezetime <= 0) {
setstring this.temp,"idle sit walk carry swim","carrystill carrysit carry carryrun","grab push pull","attack","hurt dead";
tokenize #I(this.temp,this.mode);
setani #t(this.submode),;
setstring this.temp,;
}
|
well yes in that particular case it seems to be a good choice, but the previous was a binary variable =p
although it seems like in order to have that code, youre assigning both variables somewhere, and you could just setani on the spot =X