Advertisement
emanuel-lurch

Untitled

Feb 17th, 2023
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. integer channel = -23;
  2. integer female_chan = -696969;
  3. integer male_chan = -969696;
  4. list male_IDs = [];
  5. list male_profiles = [];
  6. list female_IDs = [];
  7. //list female_IDs = [];
  8. list female_profiles = [];
  9. key id = NULL_KEY;
  10. integer listenhandle;
  11. string gender;
  12.  
  13. string GetGender(key avatar)
  14. {
  15. list details = llGetObjectDetails(avatar, [OBJECT_BODY_SHAPE_TYPE]);
  16. if (details == []) return "";
  17. float gender = llList2Float(details, 0);
  18. if (gender < 0.0) return "object";
  19. if (gender == 0.0) return "female";
  20. if (gender < 1.0) return "somewhat masculine";
  21. return "male";
  22. }
  23.  
  24. default
  25. {
  26. state_entry()
  27. {
  28. //llSetTimerEvent(20);
  29. }
  30.  
  31. touch_start(integer total_number)
  32. {
  33. id = llDetectedKey(0);
  34. listenhandle = llListen(channel, "", "", "");
  35. gender = GetGender(id);
  36. llTextBox(id, "\nPlease describe yourself very briefly.\nWhat makes you special and interesting?\n", channel);
  37. }
  38.  
  39. listen(integer chan, string name, key ID, string text)
  40. {
  41. if ((gender == "male") & (text != ""))
  42. {
  43. male_IDs = male_IDs + id;
  44. male_profiles = male_profiles + text;
  45. llRezAtRoot("Speed Dating HUD for Men", llGetPos(), <0,0,0>, ZERO_ROTATION, 10);
  46. llSleep(1.0);
  47. llSay(-9523, (string)id);
  48. llSay(male_chan, llDumpList2String(female_IDs, "|"));
  49. llSay(male_chan+1, llDumpList2String(female_profiles, "|"));
  50. }
  51.  
  52. if ((gender == "female") & (text != ""))
  53. {
  54. female_IDs = female_IDs + id;
  55. female_profiles = female_profiles + text;
  56. llRezAtRoot("Speed Dating HUD for Women", llGetPos(), <0,0,0>, ZERO_ROTATION, 10);
  57. llSleep(1.0);
  58. llSay(-9523, (string)id);
  59. llSay(female_chan, llDumpList2String(male_IDs, "|"));
  60. llSay(female_chan+1, llDumpList2String(male_profiles, "|"));
  61. }
  62.  
  63. //llSay(0,"male:"+(string)male_participants);
  64. //llSay(0,"female:"+(string)female_participants);
  65. }
  66. }
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement