Guest User

Untitled

a guest
Jul 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. default
  2. {
  3. state_entry()
  4. {
  5. llListen(800, "", llGetOwner(), ""); //Channel that the Dialog will listen to
  6. }
  7.  
  8. touch_start(integer total_number)
  9. {
  10. llDialog(llGetOwner(), "Choose blade state", ["red","blue","orange","green","lime","light blue","purple","magenta","white"], 800); //Display the dialog.
  11. }
  12.  
  13. listen(integer chan, string name, key id, string msg) //Retreives the button you pressed in the dialog
  14. {
  15. if(id==llGetOwner())
  16. {
  17. llSay(-11884,"msg");
  18. }
  19. }
  20. }
Add Comment
Please, Sign In to add comment