Guest User

Untitled

a guest
May 25th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. script, random choice, n1=-1, n2=-1, n3=-1, n4=-1, n5=-1, n6=-1, n7=-1, n8=-1, n9=-1, begin
  2. variable(last)
  3. if(n1 > -1) then(last:=1)
  4. if(n2 > -1) then(last:=2)
  5. if(n3 > -1) then(last:=3)
  6. if(n4 > -1) then(last:=4)
  7. if(n5 > -1) then(last:=5)
  8. if(n6 > -1) then(last:=6)
  9. if(n7 > -1) then(last:=7)
  10. if(n8 > -1) then(last:=8)
  11. if(n9 > -1) then(last:=9)
  12. if(n10 > -1) then(last:=10)
  13. variable(r)
  14. r := random(1, last)
  15. switch(r) do(
  16. case(1) do(exit returning(n1))
  17. case(2) do(exit returning(n2))
  18. case(3) do(exit returning(n3))
  19. case(4) do(exit returning(n4))
  20. case(5) do(exit returning(n5))
  21. case(6) do(exit returning(n6))
  22. case(7) do(exit returning(n7))
  23. case(8) do(exit returning(n8))
  24. case(9) do(exit returning(n9))
  25. case(10) do(exit returning(n10))
  26. )
  27. end
  28.  
  29. plotscript, example, begin
  30. show text box(random choice(15, 27, 4, 250, 252))
  31. wait for text box
  32. end
Add Comment
Please, Sign In to add comment