Alt names...

paul_one
29 Jan 2005, 22:48
Right, I want to have an object, with "alt" names that you can use to refer easily to such an object.
BUT, I am cloning this object - and cloning it more than once (up to about 5 times).

For example:
                    /------cloned_obj(1)
original_object----+-------cloned_obj(2)
\------cloned_obj(3)


And so is the original object is (say) "banana", then the cloned object's will have alias's of "banana(1)" etc....

Right, now to refer to each object I shall use the command "hit #object#"...

Now each object will have the same alt's... So if the object is "banana(1)" then typing "hit ban(1)" won't be recognised and "hit ban" will come up with a select choices or something (I hope).

I think I may use the _ to seperate the alt from the number, and then go through each object and check their alt's and number - but I don't even know if this is possible... So I'd have to check the length (ban_1, gives 3 letters before the _), use that to get the length of letters from the object's name (get 3 letters from "banana(1)" = ban) and then check that, then get the last 3 ( the "(1)" ) then check that against the _1 ...

But what if I have an object like "red banana" and want "r ban" as a shortened term for it?

I don't want endless properties added/checked... I suppose I could, and probably will choose properties some way if I can't get a better answer.

So can anyone help at all? Anything will be great!