Advertisement
Dorex

Untitled

Jul 28th, 2023
2,404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    integer random_number = (integer)llFrand(20);
  2.  
  3.     new_number_type = random_number <= 10;
  4.    
  5.     llResetTime();
  6.     llOwnerSay("I've just reset the time for you. The time is now: " + (string)cur_time);
  7.    
  8.     if (new_number_type != old_number_type) {
  9.         if (random_number <= 10 ){
  10.             next_stand_time = stand1_length;
  11.             anim_to_play=llList2String(shopping_list,0);
  12.             llOwnerSay("OwnerSay #5. I found a random number. random_number <= 2. The number is: " + (string)random_number);
  13.  
  14.         }
  15.  
  16.         else {
  17.             next_stand_time = stand2_length;
  18.             anim_to_play=llList2String(shopping_list,1);
  19.             llOwnerSay("OwnerSay #5-2. I found a random number. random_number > 2. The number is: " + (string)random_number);
  20.         }
  21.  
  22.         old_number_type = new_number_type;
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement