Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer btn1;
- integer btn2;
- integer btn3;
- integer btn4;
- integer b;
- Say(string msg)
- {
- }
- default
- {
- on_rez(integer start_param)
- {
- llResetScript();
- }
- state_entry()
- {
- integer linktotal = llGetNumberOfPrims()+1;
- for(b = 0; b < linktotal; ++b)
- {
- string linkname = llGetLinkName(b);
- if(linkname == "button1")
- {
- btn1 = b;
- }
- else if(linkname == "button2")
- {
- btn2 = b;
- }
- else if(linkname == "button3")
- {
- btn3 = b;
- }
- else if(linkname == "button4")
- {
- btn4 = b;
- }
- }
- }
- touch_end(integer num)
- {
- integer linknumber = llDetectedLinkNumber();
- if(linknumber == btn1)
- {
- llSay(-19735, "rainbow");
- }
- else if(linknumber == btn2)
- {
- llSay(-19735, "rainbow_steal");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement