Endless ranting and rude insults

Dan Friedman dan at clearvisiontech.com
Wed Jun 29 12:09:00 EDT 2005


function endlessRanting revUserAction
  switch revUserAction
  case "Whining"
    put 20 into minutesWasted
    put 0 into amountLearned
    put 0 into numFriendsMade
    break
  case "Ranting"
    put 10 into minutesWasted
    put 0 into amountLearned
    put 0 into numFriendsMade
    break
  case "Rude"
    put 20 into minutesWasted
    put 0 into amountLearned
    put -10 into numFriendsMade
    break
  default
    put random(1000000) into amountLearned
    put random(the number of lines in revUserBase) into numFriendsMade
    put 0 into minutesWasted
    break
  end switch
  
  return minutesWasted,amountLearned,numFriendsMade
end endlessRanting




More information about the use-livecode mailing list