Kane_Red

Adult Dice [Linden Script Language]

Mar 28th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. //Merk Scripting
  2. //Modified
  3.  
  4. list g1what = ["lick","suck","touch","caress","???","pat","blow","nip" ];// What to do!
  5. list g1where = ["thigh","ass","breast","lips","???","ear","navel","neck"];// Where to do it!
  6.  
  7. integer Rint(integer range){
  8. return llFloor(llFrand(range))+1; // Return a random integer between 0 and range.
  9. }
  10.  
  11. string GetName(key who){
  12. string name=llGetDisplayName(who); // Get the Display Name?
  13. if((name=="")||(name=="???")){
  14. name=llKey2Name(who); // Get the full username?
  15. integer idx=llSubStringIndex(name," Resident");
  16. if(idx>-1){name=llGetSubString(name,0,idx-1);} // Get the new-style username?
  17. }
  18. return name; // Return the name.
  19. }
  20.  
  21. PlayGame1(){
  22. a="----";b="----";t=0.01;m=0;llSetTimerEvent(t); // Resets variables and starts a game.
  23. }
  24.  
  25. Text(){
  26. vector c=<1,0,0>;string t="Choosing...\n";
  27. if(m==-1){c=<0,0,1>;t="Click to play\n";}
  28. if(m==1){c=<1,.5,0>;}if(m==2){c=<0,1,0>;
  29. if(n!=""){t=n+",\nyour partner has to\n";}
  30. else{t=n+"Click to play\n";}}
  31. llSetText(t+a+" your "+b+"!",c,1);
  32. }
  33.  
  34. string a="----";string b="----";float t=0.01;integer m=-1;string n="";
  35.  
  36. default {
  37. state_entry(){
  38. Text();
  39. }
  40. timer(){
  41. if(m==0){
  42. a=llList2String(g1what,Rint(llGetListLength(g1what)-1));
  43. t+=llFrand(0.1);
  44. if(t<1.0){
  45. llSetTimerEvent(t);
  46. }else{t=0.01;m=1;}
  47. }
  48. if(m==1){
  49. b = llList2String(g1where,Rint(llGetListLength(g1where)-1));
  50. t+=llFrand(0.1);
  51. if(t<1.0){
  52. llSetTimerEvent(t);
  53. }else{t=0.01;m=2;llSetTimerEvent(0);}
  54. }
  55. Text();
  56. }
  57. touch_start(integer total_number) {
  58. if (m==-1){
  59. n=GetName(llDetectedKey(0));PlayGame1();//Play!
  60. }else if(m==2){
  61. llResetScript();//Reset.
  62. }
  63. }
  64. }
Add Comment
Please, Sign In to add comment