PDA

View Full Version : Disabling all groups except for one?



Sholim
May 9th, 2005, 09:24 AM
First of all, I'm pretty new here. Maybe my problem is an easy-to-solve one, but it is definitely difficult for me. What I want is to create for example 5 groups, each for different program. I would like to be able to activate one group and deactivate all the others. I know how to use multigroup and I know that this problem could be solved by adding 4 disable commands and 1 enable. But, I would have to do that five times! For five different groups! Not to mention applying this system to, for example, 20 groups... Is there any plugin or anything at all that can solve the problem? Thanx

Promixis
May 9th, 2005, 10:43 AM
Unfortunately no. It is easiest to create one macro that disables all groups, and then just enable the one you want.

Sholim
May 9th, 2005, 01:26 PM
Macro - you mean to add more than one command, and each command to disable one group?

birty
May 9th, 2005, 01:55 PM
yes thats what he means, but add all the commands to a single macro so that you can activate them all at once

Sholim
May 10th, 2005, 06:22 AM
Like multigroup? Or no?

Promixis
May 10th, 2005, 06:39 AM
Yes, one multigroup with commands to disable all the groups.

Sholim
May 10th, 2005, 09:20 AM
And there is no other (better) way?

Francois
May 10th, 2005, 12:10 PM
Here's another way (Which I use... not sure it's better, but it's different a least):

For each group you want to disable, add a multigroup with a first command to disable it, and a second command which will test pld1 to see it it matches the multigroup name (in which case it should reenable said group). Finally associate it with an event such as OnEvent:CloseAllBut1Group.

For simplicity, it's best to include this command in a 'super' group which will also contain the group you want to disable as a 'subgroup'

Then, to enable one group you just use a lua function such as TriggerEvent(18,"CloseAllBut1Group","GroupXYZ").

This approach adds to Girder's overhead, but is more modular in my mind...

Hope this makes sense

Sholim
May 11th, 2005, 03:19 AM
Since I'm an absolute beginner, I doubt that your advice can help me...
Maybe you could send me a gml example? sholim@ni.sbb.co.yu
Thank you