pornschedule.qsrc 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # pornschedule
  2. if $ARGS[0] = 'pornmiss':
  3. pornmiss = 1
  4. missedshoot = 0
  5. pf = pfilmday[0]
  6. film_idx = film
  7. dynamic $pornfilmdesc, pornfilmType[film]
  8. porndebt += prodcost
  9. if pornstack > 0:pornstack -= 1
  10. end
  11. if $ARGS[0] = 'schedule':
  12. killvar 'pfilmday', 0
  13. pornstack = 0
  14. porndays = -1
  15. days = 0
  16. :pfilmtime
  17. if pfilmday[days] > 0:
  18. pornstack += 1
  19. if porndays = -1:
  20. porndays = days
  21. end
  22. end
  23. if days < 200: days += 1 & jump 'pfilmtime'
  24. days = 0
  25. :fillschedule
  26. porns = 0
  27. :moveschedule
  28. if porntaken['<<days+1>>,<<porns>>'] = 0 and days >= 14:
  29. if rand(1,100) = 1: pornplan['<<days+1>>,<<porns>>'] = 0
  30. !Change of plans if there is no contract on the movie, shooting some other kind of porn instead
  31. end
  32. if days = 29 or pornplan['<<days+1>>,<<porns>>'] = 0:
  33. !If there is a missing slot in the schedule, it fills in. It also regenerates the last selection on the end, so no endless repetition
  34. pornvariable = rand(0,90)
  35. if pornvariable <= 1:
  36. !50 person
  37. pornplan['<<days+1>>,<<porns>>'] = 14
  38. elseif pornvariable <= 10:
  39. !4 person
  40. !some way to randomize the scene
  41. pornplan['<<days+1>>,<<porns>>'] = rand(10,13)
  42. elseif pornvariable <= 30:
  43. !2 person
  44. !some way to randomize the scene
  45. pornplan['<<days+1>>,<<porns>>'] = rand(8,9)
  46. elseif pornvariable <= 60:
  47. !single person
  48. !some way to randomize the scene
  49. pornplan['<<days+1>>,<<porns>>'] = rand(1,7)
  50. elseif pornvariable <= 80:
  51. !single person
  52. !some way to randomize the scene
  53. pornplan['<<days+1>>,<<porns>>'] = rand(15,20)
  54. else
  55. !masturbation scene
  56. !some way to randomize the scene - if there will be more than one(???)
  57. pornplan['<<days+1>>,<<porns>>'] = 15
  58. end
  59. roleFit = rand(0, max(100, 200 - porn_fame))
  60. if roleFit > 50: porntaken['<<days+1>>,<<porns>>'] = 3
  61. end
  62. pornplan['<<days>>,<<porns>>'] = pornplan['<<days+1>>,<<porns>>']
  63. porntaken['<<days>>,<<porns>>'] = porntaken['<<days+1>>,<<porns>>']
  64. !moving the shooting schedule and the contracts ahead by one day. "days = 0" is the current day
  65. if (porntaken['<<days>>,<<porns>>'] = 0 or porntaken['<<days>>,<<porns>>'] = 3) and rand(1,days*3/2) = 1:
  66. porntaken['<<days>>,<<porns>>'] = 1
  67. !some other porn actress contracted the movie. The more closer the shooting day is, the more likely, that all of them is taken
  68. elseif porntaken['<<days>>,<<porns>>'] = 1 and rand(1,100) = 1:
  69. porntaken['<<days>>,<<porns>>'] = 0
  70. !some other porn actress contracted to the movie has canceled her contract. Not likely, but it happens.
  71. end
  72. if porns < 3: porns += 1 & jump 'moveschedule'
  73. if days < 29:days += 1 & jump 'fillschedule'
  74. ! Finally deleting the unnecessary (and the next day overwritten) schedule day to reduce array size
  75. killvar 'pornplan', 203
  76. killvar 'pornplan', 202
  77. killvar 'pornplan', 201
  78. killvar 'pornplan', 200
  79. end
  80. --- pornschedule ---------------------------------