pornster.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. #mod_pornster_setup
  2. !input basic mod information here.
  3. !this location must be the first one
  4. $mod_info[0] = 'pornster'
  5. !0=mod name, saved to $mod_name[i] array
  6. $mod_info[1] = '00101'
  7. !1=mod version
  8. !this will be displayed as version 1.2, fix3.
  9. !if you input 40500, will be showen as version 4.5
  10. $mod_info[2] = 'KeyMasterOfGozer'
  11. !2=mod author
  12. $mod_info[3] = 'Micro-manage porn schedule.'
  13. !3=mod description, input a short brief here.
  14. if curloc = 'mod_<<$mod_info[0]>>_setup':
  15. usehtml = 1
  16. !this will be only showed if you exec mod file. This location should be only called by gs, so this line will not trigger on normal mod playing
  17. '<center><h1><font color=red>ACCESS DENIED</font></h1></center>'
  18. '<<$mod_info[0]>> is a mod for <b>Girl Life - English Community Version</b>, and can not be played individually.'
  19. ''
  20. 'You can find the main game in <a href="https://www.tfgamessite.com/index.php?module=viewgame&id=597">Tfgames site</a> (external link)'
  21. ''
  22. 'Our forum: <a href="https://tfgamessite.com/phpbb3/viewforum.php?f=70">Tfgames site</a> (external link)'
  23. end
  24. --- mod_pornster_setup ---------------------------------
  25. #mod_pornster_readme
  26. !input your mod detail readme here. you can use msg or detailed structure, just make sure to create act 'return': gt 'mod_setting'
  27. *clr & cla
  28. act 'Return': gt 'mod_setting'
  29. '<center>Mod <b><font color=red> Pornster </font></b></center>'
  30. 'Mod is to allow fine-grained tweaking of the porn schedule. This is mostly just for me to get my feet wet making a mod.
  31. '
  32. --- mod_ipornster_readme ---------------------------------
  33. #mod_pornster
  34. !input mod entry point here. this will be checked on every location, please keep it clean and brief to avoid game lag
  35. !pornstudio
  36. if $curloc = 'pornstudio':
  37. act "Hack the Schedule": gs 'mod_pornster_hack'
  38. end
  39. --- mod_pornster ---------------------------------
  40. #mod_pornster_hack
  41. $loc = 'mod_pornster_hack'
  42. $location_type = 'public_indoors'
  43. $menu_loc = 'mod_pornster_hack'
  44. $menu_arg = 'start'
  45. cls
  46. act 'Back to Manager': gs 'pornstudio', 'manager'
  47. $contracting = {
  48. *clr
  49. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/studio/studia_0.jpg"></center>'
  50. ''
  51. d1 = day
  52. w1 = week
  53. m1 = month
  54. counter = 1
  55. $pornofday = ''
  56. :pornopt
  57. killvar 'nh1'
  58. pcount[counter] = counter
  59. w1 += 1
  60. if w1 > 7:w1 = 1
  61. d1 += 1
  62. if monthsend[m1] < d1: m1 += 1 & d1 = 1
  63. if m1 > 12: m1 = 1
  64. if m1 = 1 and d1 >= 1 and d1 <= 8:nh1 = 1
  65. if m1 = 2 and d1 = 23:nh1 = 1
  66. if m1 = 3 and d1 = 8:nh1 = 1
  67. if m1 = 5 and (d1 = 1 or d1 = 2):nh1 = 1
  68. if m1 = 5 and d1 = 9:nh1 = 1
  69. if m1 = 6 and (d1 = 12 or d1 = 13):nh1 = 1
  70. if m1 = 11 and d1 = 4:nh1 = 1
  71. if (weekdayfilter = 1 and w1 >= 6) or (weekendfilter = 1 and w1 < 6) or (weekdayfilter = 0 and weekendfilter = 0) or nh1 = 1:
  72. if datefilter['<<selected[counter]>>'] = 0:
  73. if nh1 = 1:
  74. $pornofday = '<i><b>National holiday, no shootings!</b></i><br>'
  75. else
  76. porns = 0
  77. :pornplanloop
  78. dynamic $pornfilmdesc, pornplan['<<counter>>,<<porns>>']
  79. if (pfactor <= ppnum) or (ppnum = 0):
  80. $line_color = 'None'
  81. $line_cmnt = ''
  82. $line_button = 'Take'
  83. line_button_val = 2
  84. if porntaken['<<counter>>,<<porns>>'] = 2:
  85. $line_color = 'green'
  86. $line_cmnt = '- <i>Already contracted by you</i>'
  87. $line_button = 'Drop'
  88. line_button_val = 0
  89. elseif porntaken['<<counter>>,<<porns>>'] = 1:
  90. $line_color = 'red'
  91. $line_cmnt = '- <i>Taken by someone else</i>'
  92. end
  93. if $line_color = 'None':
  94. $line_deco_f = ''
  95. $line_deco_b = ''
  96. else
  97. $line_deco_f = '<font color="<<$line_color>>">'
  98. $line_deco_b = '</font>'
  99. end
  100. ! Alter Button - Goes to picklist of Film Types
  101. $pornofday += '<a href="exec:gs ''mod_pornster_edit'', ''<<counter>>'', ''<<porns>>''">[Alter]</a> '
  102. ! Ownership Button - Take or Drop
  103. $pornofday += '<a href="exec:pornstack += 1 & porntaken[''<<counter>>,<<porns>>''] = <<line_button_val>> & pfilmday[<<pcount[counter]>>] = pornplan[''<<counter>>,<<porns>>''] & gs ''stat'' & dynamic $contracting">[<<$line_button>>] </a>'
  104. ! Description of this Film
  105. $pornofday += '<<$line_deco_f>><<$porndesc[pornplan[''<<counter>>,<<porns>>'']]>><<$line_cmnt>><<$line_deco_b>>'
  106. $pornofday += '<br>'
  107. end
  108. if porns < 3: porns += 1 & jump 'pornplanloop'
  109. end
  110. if $pornofday ! '':
  111. '<<$monthName[m1]>> <<d1>>, <<$week[w1]>>:'
  112. '<<$pornofday>>'
  113. $pornofday = ''
  114. end
  115. end
  116. end
  117. if counter < 49:
  118. counter += 1
  119. jump 'pornopt'
  120. end
  121. }
  122. dynamic $contracting
  123. --- mod_pornster_hack ---------------------------------
  124. #mod_pornster_edit
  125. $loc = 'mod_pornster_edit'
  126. $location_type = 'public_indoors'
  127. $menu_loc = 'mod_pornster_edit'
  128. $menu_arg = 'start'
  129. cls
  130. ! Expected Parameters:
  131. ! 0) the numeric porn day number offset (zero is today)
  132. ! 1) the session number on the day
  133. pdateoffset = $ARGS[0]
  134. psessionnum = $ARGS[1]
  135. act "Back to Schedule": gs 'mod_pornster_hack'
  136. $picker = ''
  137. counter = 1
  138. num_porntypes = arrsize('$porndesc')
  139. :pick
  140. $picker += '<a href="exec:pornplan[''<<pdateoffset>>,<<psessionnum>>''] = <<counter>> & pfilmday[pdateoffset] = <<counter>> & gs ''stat'' & gs ''mod_pornster_hack''"><<$porndesc[counter]>></a><br>'
  141. if counter <= num_porntypes:
  142. counter += 1
  143. jump 'pick'
  144. end
  145. *pl $picker
  146. --- mod_pornster_edit ---------------------------------