multiple message triggering

pazaman's icon

ok so I may just be being a little stupid here, I want to do something quite simple but have ran out of ideas...

I have an array of 120 messages. I also have a seperate array of 5 messages. Depending on which of one of the 5 mesasges I click on I want a different variation of messages to be triggered within the 120. Is there any way I can do this without using data lines to conncet everything up?

ideally I would want to name all 120 message boxes (eg 'a1', 'a2' ...) and then be able to send a list of required scripting names out of each of the 5 message boxes to trigger the required messages (or something similar).

I hope this makes sense, any thoughts or ideas would be greatly appreciated!

Thanks, Tom

seejayjames's icon

to easily name many objects, make your first one and name it my_message[1] or whatever you want, using the Inspector. the [1] is the most crucial part. Select that box and use control-D to duplicate, the next one will be automatically called my_message[2] and so on.

To use scripting to access the named message boxes, use
sprintf script my_message[%ld]
to [thispatcher]

The %ld will be replaced by whatever integer you send to [sprintf]. Very straightforward and no patch cords!

pazaman's icon

Simple and very effective! You won't believe how much cleaner you have made my patch look! Many Thanks