>repeat with counter = 1 to 7
> if "it"&counter = 1 then
> "detect"&counter = (balls.model
>("item"&counter).transform.position - balls.model
>("ChassisM").transform.position).magnitude
> if "detect"&counter <= 1500 then
> set the text of member "detecttxt" to "You are in range of
>object "&& counter &&"! go get it!!"
There's no need for this "detect"&counter stuff (even though it would
be possible to do). Just use detect like you did for one object, you
don't need to remember the value of detect once you've done the test.
Same with "it"&counter.
Don't forget that Director doesn't have many short logic test
symbols, so != won't do you much good. If that is "not equal to" you
can say <> instead.
There are a number of other odd things about your script. Could you
say what the overall effect is, just so I can maybe suggest other
ways of doing some of the things?
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]