Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llMessageLinked - help

Thili Playfair
Registered User
Join date: 18 Aug 2004
Posts: 2,417
06-10-2005 10:51
Baffled

Using a menu script, loads of buttons only i can use, and only active 10 sec after touch, sends msg's to other script . to do stuff, wich it doesnt, tested a simple script and it do revice them.

Just baffled how to make the recive script actually do something if it recives a command from the sender

CODE

default
{

link_message(integer sender_num,integer num,string str,key id)
{
llSay(0,str);
}
}

This is the one i tested to see if the text actually came to the prim i wanted it to (it did)

Now to figure out how to actually make something like this

CODE

default
{
state_entry()
{
link_message(integer sender_num, integer num, string str, key id)
}
listen(integer channel, string name, key id, string text)
{
if(text=="wallon"){
llSetAlpha(1.0,3);
}
if(text=="walloff"){
llSetAlpha(0.2,3);
}

}
}


I have no idea how to do this and i know that one wont work,, trying to get rid of active scripts (the menu one i found on here turns off after 10 sec)

The sender script uses
button 1 - llMessageLinked(LINK_SET,0,"get instant banned",NULL_KEY);
button 2 - llMessageLinked(LINK_SET,0,"make someone neg rate me",NULL_KEY);

(ok not really those commands but you get the idea :p )

Wiki really need more script tips , i tried a few days now trying alot of things , looking at other peoples script (not many out there)

Eehhh anyone got a idea how to make this work
Kali Dougall
Purple and Spikey
Join date: 5 Feb 2005
Posts: 98
06-10-2005 11:08
If I understand you correctly, you're trying to make a link_message event do stuff in response to text like a listen event. Well, it's basically the same thing:
CODE
default {
link_message(integer sender_num, integer num, string str, key id) {
if (str == "wallon") {
llSetAlpha(1.0, 3);
} else if (str == "walloff") {
llSetAlpha(0.2, 3);
}
}
}
_____________________

[ Kali's Purple Pantechnicon ]
Eldora (119, 147)
[ Final Fantasy Pyreflies ~ Multigame Target Launcher ~ CyberGoggles/BLISS Goggles ~ Other Scripted Gadgets ~ Fashion Accessories ~ Miscellanea ]
Thili Playfair
Registered User
Join date: 18 Aug 2004
Posts: 2,417
06-10-2005 11:21
:) thank you, i see what i did wrong now, great help for me