key texture;
integer link;
integer face;

default
{
    state_entry()
    {

        llListen(99999, "", "","");
    }
    
    listen(integer c, string nm, key id, string msg)
    {
        texture = (key)msg;
        llSetLinkTexture(link, texture, face);
    }
    
    touch_start(integer n)
    {

        link = llDetectedLinkNumber(0);
        face = llDetectedTouchFace(0);
        llOwnerSay("link="+(string)link);
        //llSetLinkTexture(llDetectedLinkNumber(0), texture, side);
    }
}