Title:faproulette_assistant
Sex: Female T Male T Trans T
Require:
Limits:
;faproulette_assistant by scott2
;this task can be run when a slave wants to perform a roulette and use JIC to record the random numbers.  Mistress and Masters can give their slave a roulette from the faproulette.co website and have the slave generate numbers without cheating and have photos entered via the JIC messenger.
;The option is given whether to log the random numbers or not log the random numbers
;
;TEMP1 is the roulette number
;TEMP2 is the number of random digits needed
;TEMP3 is used temporarily during random number generation
;TEMP4 is the text string of random numbers generated, in the form ...x=0, y=0, z=0
;TEMP5 is used to track confirm to log to messenger
;TEMP6 is the total number of possible random numbers, currently 11, allowing P to Z
;TEMP9 is a temporary variable
;rnP to rnZ are used to store random numbers P to Z
;
settemp4:' '
settemp5:0
;
;
show:You will be running a FAP roulette today. Either you were given a number for the fap roulette or you have selected one yourself from the faproulette.co website. If you are not familiar with this website go view it now.
button:OK
show:The number is found in the web address when viewing a particular FAP. For example, in the web address www.faproulette.co/4676/long-term-trainer/ the fap roulette number is 4676. And entering the address www.faproulette.co/4676 will take you to that roulette.
button:I understand
show:Each roulette requires several random numbers to be generated to determine the actions the slave must perform. You will need to check the roulette you want to run to see how many numbers are needed.
button:I have checked
show:Enter the roulette number as it appears on faproulette.co.
asktext:roulettenumber
settemp1:LASTASK
label:dicenumber
show:How many random numbers are needed (11 max)?
asktext:randomnumbers
settemp9:'LASTASK'
if:'TEMP9' == '1' || 'TEMP9' == '2' || 'TEMP9' == '3' || 'TEMP9' == '4' || 'TEMP9' == '5' || 'TEMP9' == '6' || 'TEMP9' == '7' || 'TEMP9' == '8' || 'TEMP9' == '9' || 'TEMP9' == '10' || 'TEMP9' == '11'
  settemp2:LASTASK
  goto:lognumbers
fi:
show:Please enter a value of 1 to 11.
wait:5
goto:dicenumber
label:lognumbers
show:Do you want the random numbers and roulette number logged to the JIC messenger?
choice:No just testing,Yes create log
if:LASTASK == 2
  settemp5:1
fi:
show:SNAME has selected roulette number TEMP1 and DTITLE DNAME will generate TEMP2 numbers.
button:Seal my fate and show me the numbers.
show:...generating
wait:5
settemp3:Math.floor(Math.random()*10)
assign:rnZ:TEMP3
settemp3:Math.floor(Math.random()*10)
assign:rnY:TEMP3
settemp3:Math.floor(Math.random()*10)
assign:rnX:TEMP3
settemp3:Math.floor(Math.random()*10)
assign:rnW:TEMP3
settemp3:Math.floor(Math.random()*10)
assign:rnV:TEMP3
settemp3:Math.floor(Math.random()*10)
assign:rnU:TEMP3
settemp3:Math.floor(Math.random()*10)
assign:rnT:TEMP3
settemp3:Math.floor(Math.random()*10)
assign:rnS:TEMP3
settemp3:Math.floor(Math.random()*10)
assign:rnR:TEMP3
settemp3:Math.floor(Math.random()*10)
assign:rnQ:TEMP3
settemp3:Math.floor(Math.random()*10)
assign:rnP:TEMP3
;
settemp6:11
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'P='+rnP+', '
  show:TEMP4...generating
  wait:2
fi:
settemp6:TEMP6-1
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'Q='+rnQ+', '
  show:TEMP4...generating
  wait:2
fi:
settemp6:TEMP6-1
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'R='+rnR+', '
  show:TEMP4...generating
  wait:2
fi:
settemp6:TEMP6-1
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'S='+rnS+', '
  show:TEMP4...generating
  wait:2
fi:
settemp6:TEMP6-1
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'T='+rnT+', '
  show:TEMP4...generating
  wait:2
fi:
settemp6:TEMP6-1
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'U='+rnU+', '
  show:TEMP4...generating
  wait:2
fi:
settemp6:TEMP6-1
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'V='+rnV+', '
  show:TEMP4...generating
  wait:2
fi:
settemp6:TEMP6-1
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'W='+rnW+', '
  show:TEMP4...generating
  wait:2
fi:
settemp6:TEMP6-1
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'X='+rnX+', '
  show:TEMP4...generating
  wait:2
fi:
settemp6:TEMP6-1
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'Y='+rnY+', '
  show:TEMP4...generating
  wait:2
fi:
settemp6:TEMP6-1
if:TEMP6<=TEMP2
  settemp4:'TEMP4'+'Z='+rnZ
  show:TEMP4...generation complete
  wait:2
fi:
;
if:TEMP5==1
  log:SNAME has selected to perform roulette number TEMP1 and drawn the random numbers TEMP4
fi:
show:Your random digits are TEMP4. Write these down.
button:OK
if:TEMP5==1
  show:The roulette number TEMP1 and the random numbers TEMP4 have been logged in the messenger.
  button:I will perform the roulette
fi:
show:You must now perform the roulette TEMP1 using TEMP4 and take photos of each task in the messenger to ensure the roulette was completed. The web page for faproulette.co/TEMP1 will now be opened.
button:Open faproulette site
web:https://www.faproulette.co/TEMP1
;
;
;
;
;
;
;
;
;
;
;
;
;
;