Jump to content

Twistted Hand

Resident
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Twistted Hand

  1. Im not sure im getting it right. This is what i have. 

     

    default
    {

        touch_start(integer total_number) {

            llSay(-55343,"Does this Work?");

        }

    }

     

     

    and the listen...

     

     

    integer CommandIs(string msg,string cmd)
    {
        return llSubStringIndex(msg,cmd) == 0;
    }
    ParseAndIssueCommand(string cmd)
    {

        if (CommandIs(cmd,""))
        {
            string name = llGetSubString(cmd,20,-1);
            if (name == "")
                llSetText("",<0,1,0>,1.0);
            else
                llSetText(name,<0,1,0>,1.0);   
        }
    }
    default
    {
        state_entry()
        {
             llListen(-55343,"",llGetOwner(),"");
        }
            on_rez(integer start_param)
            {
            llResetScript();
            }  
            listen(integer channel, string name, key id, string msg)
        {
            ParseAndIssueCommand(msg);
        }
    }
    // END //

  2. I am in need of help. Ive been trying to script this thing for a while now. Im trying to set up a HUD button you can press and it will detect in chat and update a titler on another prim. Any help would be appricated. 

×
×
  • Create New...