Message to group?
|
Padraig Stygian
The thin mick
Join date: 15 Aug 2004
Posts: 111
|
09-06-2004 12:51
There's not a way, in LSL, to cause an object to send a message on a group channel, is there? And, assuming that I'm right, and there's not, what's the suggested workaround for that?
(And before anyone gets on my case about spamming group channels, yes, I own the group.)
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
09-06-2004 13:43
*posted stupid non reading post post so i edited it*
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Padraig Stygian
The thin mick
Join date: 15 Aug 2004
Posts: 111
|
09-06-2004 14:10
Strife, what are you on about? It's a scripting question. I'm attempting to write a script that will allow an object to send a message to a group. Last I checked, this was the forum for silly scripting queries...
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
09-06-2004 15:43
i'm totaly sorry i somehow missread your entire post. A don't believe there is at present a nice way of IM'ing an entire group. One way you *could* do it is to keep a list of all group members ie have them click the object. (do a same group check and keep the detected keys in a list) something like this should work... just have all the group members touch it while they have the group title selected. list members;
default { state_entry() { llListen(0,"",llGetOwner(),""); } touch_start(integer a) { key b; for(b=llDetectedKey(--a);a + 1;b=llDetectedKey(--a)) { if(llSameGroup(b)) { if(-1==llListFindList(members,)) { members+=b; } } } } listen(integer a, string b, key c, string d) { if(llGetSubString(d,0,2)!="gm " return; d=llDeleteSubString(d,0,2); for(a=-llGetListLength(members);a;a++) llInstantMessage(llList2Key(members,a),d); } }
*wanders off to stick head in oven (oh shoot it's electric)*
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Padraig Stygian
The thin mick
Join date: 15 Aug 2004
Posts: 111
|
09-06-2004 15:57
::chuckles:: Thanks.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
09-06-2004 15:57
*bump* look up  haven't tested it but it *should* work.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Merwan Marker
Booring...
Join date: 28 Jan 2004
Posts: 4,706
|
09-06-2004 16:05
That would work with small groups where you can tell everyone to click the object. What about large groups - is there a way to communicate with all members of the group without using the Group IM? I'm assuming the answer is still no. 
_____________________
Don't Worry, Be Happy - Meher Baba
|
Padraig Stygian
The thin mick
Join date: 15 Aug 2004
Posts: 111
|
09-06-2004 22:08
Works like a charm, so far, Strife. No "state" before "default", though. ;> Now to twist this script to my own considerably deranged purposes! ::mad scientist laugh::
Er, ::coughs:: pardon, "perfectly valid business purposes".
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
09-08-2004 06:45
sorry about that, i wrote the script without testing it. It will need a way to remove people from the list...
It would be much better to convert it to send out notecards, that way you could know that everyone got the message. It would of course require a bit of interface work.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|