exercise.qsrc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. # exercise
  2. !{This will centralize calls for exercise. For calls where you wish to allow multiple types of exercises, such as a bedroom or yard, use gs 'exercise', 'start'
  3. For direct calls use this format: gs 'exercise', $ARGS[0], ARG[1], $ARGS[2], $ARGS[3], $ARGS[4]
  4. $ARGS[0] is the workout tier and the higher the tier, the greater the workout intensity.
  5. Values: 'tier1' 'tier2' 'tier3' 'tier4'
  6. ARG[1] is the time override. By default the tiers are in 15 minute segments if being called from an event with predetermined time set this to 1
  7. Values: 0 (default of 15 minutes) 1 (time set to 0)
  8. $ARGS[2] and on are the stats to be affected by the workout NOTE: use the gs 'exp_gain', 'name of varibale' variant, not the pcs_!!!!
  9. Values: 'stren' 'vital' 'agil' 'sprt' 'react'
  10. Other stats can be added if desired - for a dance-a-thon you might use gs 'exercise', 'tier1', 0, 'agil', 'danc'
  11. }
  12. if $ARGS[0] = 'start':
  13. if (pcs_stam >=15 or pcs_stam >= 10 and bookYog + obruch > 0):
  14. 'There is enough space in the room to <a href="exec: gt ''exercise'', ''workout''">exercise</a>.'
  15. else
  16. 'There is enough space in the room for a variety of exercises, but you don''t have the energy to work out now.'
  17. end
  18. end
  19. if $ARGS[0] = 'workout':
  20. $menu_loc = 'exercise'
  21. $menu_arg = 'workout'
  22. menu_off = 0
  23. *clr & cla
  24. exer_menu = 0
  25. gs 'exercise', 'routines'
  26. clothesAtLocation = FUNC('lost_clothes_here',$loc)
  27. if $clothingworntype = 'nude' and clothesAtLocation = 1:
  28. act 'End workout and get dressed':
  29. cla
  30. minut += 5
  31. gs 'underwear', 'wear'
  32. gs 'clothing', 'recover_lost_clothes', $loc, 1
  33. gs 'stat'
  34. gt $loc, $loc_arg
  35. end
  36. else
  37. act 'End workout':
  38. gt $loc, $loc_arg
  39. end
  40. end
  41. if pcs_energy < 20 or pcs_stam < stammax / 5:
  42. 'You do not have the energy/stamina to exercise currently'
  43. elseif $clothingworntype = 'nude' or $clothingworntype = 'danilovich_outfits':
  44. act 'Manual routines': gt 'exercise', 'manual'
  45. act 'Define routines': gt 'exercise', 'setup'
  46. if exer_stam[1] ! 0 and pcs_stam > exer_stam[1]: act '<<$excer_name[1]>> - (<<exer_stam[1]>> stamina)': exercisex = 1 & gt 'exercise', 'auto'
  47. if exer_stam[2] ! 0 and pcs_stam > exer_stam[2]: act '<<$excer_name[2]>> - (<<exer_stam[2]>> stamina)': exercisex = 2 & gt 'exercise', 'auto'
  48. if exer_stam[3] ! 0 and pcs_stam > exer_stam[3]: act '<<$excer_name[3]>> - (<<exer_stam[3]>> stamina)': exercisex = 3 & gt 'exercise', 'auto'
  49. if exer_stam[4] ! 0 and pcs_stam > exer_stam[4]: act '<<$excer_name[4]>> - (<<exer_stam[4]>> stamina)': exercisex = 4 & gt 'exercise', 'auto'
  50. if exer_stam[5] ! 0 and pcs_stam > exer_stam[5]: act '<<$excer_name[5]>> - (<<exer_stam[5]>> stamina)': exercisex = 5 & gt 'exercise', 'auto'
  51. else
  52. '<b>You need to equip the proper attire before you can exercise</b>'
  53. end
  54. end
  55. if $ARGS[0] = 'auto':
  56. exer_auto = 1
  57. if exer_rout0[exercisex] > 0:
  58. timemult = exer_rout0[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'push'
  59. elseif exer_rout1[exercisex] > 0:
  60. timemult = exer_rout1[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'press'
  61. elseif exer_rout2[exercisex] > 0:
  62. timemult = exer_rout2[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'rope'
  63. elseif exer_rout3[exercisex] > 0:
  64. timemult = exer_rout3[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'yoga'
  65. elseif exer_rout4[exercisex] > 0:
  66. timemult = exer_rout4[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'hula'
  67. elseif exer_rout5[exercisex] > 0:
  68. timemult = exer_rout5[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'butt'
  69. end
  70. end
  71. if $ARGS[0] = 'auto1':
  72. if exer_rout1[exercisex] > 0:
  73. timemult = exer_rout1[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'press'
  74. elseif exer_rout2[exercisex] > 0:
  75. timemult = exer_rout2[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'rope'
  76. elseif exer_rout3[exercisex] > 0:
  77. timemult = exer_rout3[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'yoga'
  78. elseif exer_rout4[exercisex] > 0:
  79. timemult = exer_rout4[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'hula'
  80. elseif exer_rout5[exercisex] > 0:
  81. timemult = exer_rout5[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'butt'
  82. else
  83. gt 'exercise', 'auto_end'
  84. end
  85. end
  86. if $ARGS[0] = 'auto2':
  87. if exer_rout2[exercisex] > 0:
  88. timemult = exer_rout2[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'rope'
  89. elseif exer_rout3[exercisex] > 0:
  90. timemult = exer_rout3[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'yoga'
  91. elseif exer_rout4[exercisex] > 0:
  92. timemult = exer_rout4[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'hula'
  93. elseif exer_rout5[exercisex] > 0:
  94. timemult = exer_rout5[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'butt'
  95. else
  96. gt 'exercise', 'auto_end'
  97. end
  98. end
  99. if $ARGS[0] = 'auto3':
  100. if exer_rout3[exercisex] > 0:
  101. timemult = exer_rout3[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'yoga'
  102. elseif exer_rout4[exercisex] > 0:
  103. timemult = exer_rout4[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'hula'
  104. elseif exer_rout5[exercisex] > 0:
  105. timemult = exer_rout5[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'butt'
  106. else
  107. gt 'exercise', 'auto_end'
  108. end
  109. end
  110. if $ARGS[0] = 'auto4':
  111. if exer_rout4[exercisex] > 0:
  112. timemult = exer_rout4[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'hula'
  113. elseif exer_rout5[exercisex] > 0:
  114. timemult = exer_rout5[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'butt'
  115. else
  116. gt 'exercise', 'auto_end'
  117. end
  118. end
  119. if $ARGS[0] = 'auto5':
  120. if exer_rout5[exercisex] > 0:
  121. timemult = exer_rout5[exercisex] & gs 'exercise', 'timestring' & gt 'exercise', 'butt'
  122. else
  123. gt 'exercise', 'auto_end'
  124. end
  125. end
  126. if $ARGS[0] = 'auto_end':
  127. exer_auto = 0
  128. gt 'exercise', 'workout'
  129. end
  130. if $ARGS[0] = 'manual':
  131. $menu_loc = 'exercise'
  132. $menu_arg = 'manual'
  133. menu_off = 0
  134. cla
  135. act 'Return':gt 'exercise', 'workout'
  136. if pcs_energy < 20 and pcs_stam < stammax / 5:
  137. 'You don''t have the energy/stamina to work out anymore now.'
  138. else
  139. act 'Do pushups for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'push'
  140. act 'Do crunches for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'press'
  141. act 'Do squats for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'butt'
  142. if skak > 0 and $loc ! 'meadow':
  143. act 'Jump rope for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'rope'
  144. end
  145. if bookYog > 0:
  146. act 'Do yoga for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'yoga'
  147. end
  148. if obruch > 0 and $loc ! 'meadow':
  149. act 'Use your hula hoop for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'hula'
  150. end
  151. act 'Do pushups for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'push'
  152. act 'Do crunches for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'press'
  153. act 'Do squats for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'butt'
  154. if skak > 0 and $loc ! 'meadow':
  155. act 'Jump rope for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'rope'
  156. end
  157. if bookYog > 0:
  158. act 'Do yoga for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'yoga'
  159. end
  160. if obruch > 0 and $loc ! 'meadow':
  161. act 'Use your hula hoop for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'hula'
  162. end
  163. act 'Do pushups for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'push'
  164. act 'Do crunches for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'press'
  165. act 'Do squats for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'butt'
  166. if skak > 0 and $loc ! 'meadow':
  167. act 'Jump rope for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'rope'
  168. end
  169. if bookYog > 0:
  170. act 'Do yoga for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'yoga'
  171. end
  172. if obruch > 0 and $loc ! 'meadow':
  173. act 'Use your hula hoop for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'hula'
  174. end
  175. act 'Do pushups for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'push'
  176. act 'Do crunches for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'press'
  177. act 'Do squats for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'butt'
  178. if skak > 0 and $loc ! 'meadow':
  179. act 'Jump rope for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'rope'
  180. end
  181. if bookYog > 0:
  182. act 'Do yoga for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'yoga'
  183. end
  184. if obruch > 0 and $loc ! 'meadow':
  185. act 'Use your hula hoop for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'hula'
  186. end
  187. end
  188. end
  189. if $ARGS[0] = 'routines':
  190. *clr & cla
  191. '<center><h2>Exercise Routines</h2></center>'
  192. *nl
  193. '<center><table>'
  194. '<TD><b>Routine</b></TD><TD><b>Push ups</b></TD><TD><b>Crunches</b></TD><TD><b>Jump rope</b></TD><TD><b>Yoga</TD><TD><b>Hula hoop</b></TD><TD><b>Squats</b></TD>'
  195. '<TR><TD width="100" cellspacing="2" align="left">'+iif(exer_menu = 1,'<a href="exec:$excer_name[1] = input (''<center>Enter name for exercise routine 1<br>Leave blank to restore default name.</center>'') & gs ''exercise'', ''rename'' & gt ''exercise'', ''setup''"><<$excer_name[1]>>:</a> ','<<$excer_name[1]>>:</a> ')+'</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout0[1]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout1[1]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout2[1]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout3[1]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout4[1]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout5[1]*15>></b> minutes</TD>'
  196. '<TR><TD width="100" cellspacing="2" align="left">'+iif(exer_menu = 1,'<a href="exec:$excer_name[2] = input (''<center>Enter name for exercise routine 2<br>Leave blank to restore default name.</center>'') & gs ''exercise'', ''rename'' & gt ''exercise'', ''setup''"><<$excer_name[2]>>:</a> ','<<$excer_name[2]>>:</a> ')+'</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout0[2]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout1[2]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout2[2]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout3[2]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout4[2]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout5[2]*15>></b> minutes</TD>'
  197. '<TR><TD width="100" cellspacing="2" align="left">'+iif(exer_menu = 1,'<a href="exec:$excer_name[3] = input (''<center>Enter name for exercise routine 3<br>Leave blank to restore default name.</center>'') & gs ''exercise'', ''rename'' & gt ''exercise'', ''setup''"><<$excer_name[3]>>:</a> ','<<$excer_name[3]>>:</a> ')+'</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout0[3]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout1[3]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout2[3]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout3[3]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout4[3]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout5[3]*15>></b> minutes</TD>'
  198. '<TR><TD width="100" cellspacing="2" align="left">'+iif(exer_menu = 1,'<a href="exec:$excer_name[4] = input (''<center>Enter name for exercise routine 4<br>Leave blank to restore default name.</center>'') & gs ''exercise'', ''rename'' & gt ''exercise'', ''setup''"><<$excer_name[4]>>:</a> ','<<$excer_name[4]>>:</a> ')+'</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout0[4]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout1[4]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout2[4]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout3[4]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout4[4]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout5[4]*15>></b> minutes</TD>'
  199. '<TR><TD width="100" cellspacing="2" align="left">'+iif(exer_menu = 1,'<a href="exec:$excer_name[5] = input (''<center>Enter name for exercise routine 5<br>Leave blank to restore default name.</center>'') & gs ''exercise'', ''rename'' & gt ''exercise'', ''setup''"><<$excer_name[5]>>:</a> ','<<$excer_name[5]>>:</a> ')+'</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout0[5]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout1[5]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout2[5]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout3[5]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout4[5]*15>></b> minutes</TD><TD width="100" cellspacing="2" align="left"><b><<exer_rout5[5]*15>></b> minutes</TD>'
  200. '<TR><TD colspan="7"><br><br><center><a href="exec:gt ''exercise'', ''setup''">Define up to 5 automated exercise routines.</a></center></TD></TR>'
  201. '</table></center>'
  202. *nl
  203. end
  204. if $ARGS[0] = 'setup':
  205. $menu_loc = 'exercise'
  206. $menu_arg = 'setup'
  207. menu_off = 0
  208. *clr & cla
  209. exer_menu = 1
  210. gs 'exercise', 'routines'
  211. act 'Return': gt 'exercise', 'workout'
  212. act 'Define <<$excer_name[1]>>':i = 1 & gt 'exercise', 'matrix'
  213. act 'Rename <<$excer_name[1]>>':
  214. $excer_name[1] = input ('<center>Enter name for exercise routine 1<br>Leave blank to restore default name.</center>')
  215. gs 'exercise', 'rename'
  216. gt 'exercise', 'setup'
  217. end
  218. act 'Define <<$excer_name[2]>>':i = 2 & gt 'exercise', 'matrix'
  219. act 'Rename <<$excer_name[2]>>':
  220. $excer_name[2] = input ('<center>Enter name for exercise routine 2<br>Leave blank to restore default name.</center>')
  221. gs 'exercise', 'rename'
  222. gt 'exercise', 'setup'
  223. end
  224. act 'Define <<$excer_name[3]>>':i = 3 & gt 'exercise', 'matrix'
  225. act 'Rename <<$excer_name[3]>>':
  226. $excer_name[3] = input ('<center>Enter name for exercise routine 3<br>Leave blank to restore default name.</center>')
  227. gs 'exercise', 'rename'
  228. gt 'exercise', 'setup'
  229. end
  230. act 'Define <<$excer_name[4]>>':i = 4 & gt 'exercise', 'matrix'
  231. act 'Rename <<$excer_name[4]>>':
  232. $excer_name[4] = input ('<center>Enter name for exercise routine 4<br>Leave blank to restore default name.</center>')
  233. gs 'exercise', 'rename'
  234. gt 'exercise', 'setup'
  235. end
  236. act 'Define <<$excer_name[5]>>':i = 5 & gt 'exercise', 'matrix'
  237. act 'Rename <<$excer_name[5]>>':
  238. $excer_name[5] = input ('<center>Enter name for exercise routine 5<br>Leave blank to restore default name.</center>')
  239. gs 'exercise', 'rename'
  240. gt 'exercise', 'setup'
  241. end
  242. !!exer_rout1 = default
  243. end
  244. if $ARGS[0] = 'rename':
  245. if $excer_name[1] = '':$excer_name[1] = 'Default 1'
  246. if $excer_name[2] = '':$excer_name[2] = 'Default 2'
  247. if $excer_name[3] = '':$excer_name[3] = 'Default 3'
  248. if $excer_name[4] = '':$excer_name[4] = 'Default 4'
  249. if $excer_name[5] = '':$excer_name[5] = 'Default 5'
  250. end
  251. if $ARGS[0] = 'matrix':
  252. *clr & cla
  253. exer_stam[i] = exer_stam0[i] + exer_stam1[i] + exer_stam2[i] + exer_stam3[i] + exer_stam4[i] + exer_stam5[i]
  254. act'Confirm': gt 'exercise', 'setup'
  255. 'Choose your exercise options from the following table:'
  256. '<center><table border=0 cellspacing=0 cellpadding=10 width=1000><TH>Exercise</TH><TH>None</TH><TH>15 mins</TH><TH>30 mins</TH><TH>45 mins</TH><TH>60 mins</TH>'
  257. gs 'exercise', 'matrixdata', 0, 'Push ups'
  258. gs 'exercise', 'matrixdata', 1, 'Crunches'
  259. if skak > 0 and $loc ! 'meadow': gs 'exercise', 'matrixdata', 2, 'Jump rope'
  260. if bookYog > 0: gs 'exercise', 'matrixdata', 3, 'Yoga'
  261. if obruch > 0 and $loc ! 'meadow': gs 'exercise', 'matrixdata', 4, 'Hula hoop'
  262. gs 'exercise', 'matrixdata', 5, 'Squats'
  263. '</center></table>'
  264. *nl
  265. 'Total stamina required - <<exer_stam[i]>>'
  266. end
  267. if $ARGS[0] = 'matrixdata':
  268. '<TR>'
  269. *p '<TD><<$ARGS[2]>></TD>'
  270. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 0:
  271. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 0'
  272. *p '<TD>Selected</TD>'
  273. else
  274. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 0'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  275. end
  276. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 1:
  277. mult = 15
  278. if ARGS[1] >= 3:
  279. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 5*mult * (10 - sport_clothes_exercise_bonus)'
  280. else
  281. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = (15*mult * (10 - sport_clothes_exercise_bonus)) / 2'
  282. end
  283. *p '<TD>Selected</TD>'
  284. else
  285. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 1'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  286. end
  287. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 2:
  288. mult = 30
  289. if ARGS[1] >= 3:
  290. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 5*mult * (10 - sport_clothes_exercise_bonus)'
  291. else
  292. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = (15*mult * (10 - sport_clothes_exercise_bonus)) / 2'
  293. end
  294. *p '<TD>Selected</TD>'
  295. else
  296. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 2'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  297. end
  298. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 3:
  299. mult = 45
  300. if ARGS[1] >= 3:
  301. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 5*mult * (10 - sport_clothes_exercise_bonus)'
  302. else
  303. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = (15*mult * (10 - sport_clothes_exercise_bonus)) / 2'
  304. end
  305. *p '<TD>Selected</TD>'
  306. else
  307. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 3'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  308. end
  309. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 4:
  310. mult = 60
  311. if ARGS[1] >= 3:
  312. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 5*mult * (10 - sport_clothes_exercise_bonus)'
  313. else
  314. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = (15*mult * (10 - sport_clothes_exercise_bonus)) / 2'
  315. end
  316. *p '<TD>Selected</TD>'
  317. else
  318. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 4'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  319. end
  320. exer_stam[i] = exer_stam0[i] + exer_stam1[i] + exer_stam2[i] + exer_stam3[i] + exer_stam4[i]
  321. end
  322. if $ARGS[0] = 'butt':
  323. cla
  324. *clr
  325. gs 'exercise', 'tier2', (15*timemult), 'stren', 'butt_tr'
  326. timemult = 0
  327. if $clothingworntype ! 'nude':
  328. '<center><img <<$set_imgh>> src="images/pc/activities/excercises/butt_home_dressed.jpg"></center>'
  329. elseif $pantyworntype ! 'none':
  330. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/butt_home_underwear.jpg"></center>'
  331. else
  332. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/butt_home_nude.jpg"></center>'
  333. end
  334. 'You do squats for <<$timestring>> minutes, strengthening your thighs and scupting your butt.'
  335. gs 'stat'
  336. if exer_auto = 1:
  337. act 'Continue': gt 'exercise', 'auto_end'
  338. else
  339. act 'Continue': gt 'exercise', 'manual'
  340. end
  341. end
  342. if $ARGS[0] = 'hula':
  343. cla
  344. *clr
  345. gs 'exercise', 'tier2', (timemult*15), 'agil', 'react'
  346. timemult = 0
  347. if $clothingworntype ! 'nude':
  348. if $location_type = 'secluded':
  349. if month >=5 and month <= 9:
  350. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/hula_outdoor.jpg"></center>'
  351. else
  352. '<center><video autoplay loop src="images/pc/activities/exercises/hula_winter.mp4"></video></center>'
  353. end
  354. else
  355. '<center><video autoplay loop src="images/pc/activities/exercises/hula_dressed.mp4"></video></center>'
  356. end
  357. elseif $pantyworntype ! 'none':
  358. '<center><video autoplay loop src="images/pc/activities/exercises/hula_underwear.mp4"></video></center>'
  359. else
  360. '<center><video autoplay loop src="images/pc/activities/exercises/hula_nude.mp4"></video></center>'
  361. end
  362. 'You improve your dexterity by using your hula hoop for <<$timestring>> minutes.'
  363. gs 'stat'
  364. if exer_auto = 1:
  365. act 'Continue': gt 'exercise', 'auto5'
  366. else
  367. act 'Continue': gt 'exercise', 'manual'
  368. end
  369. end
  370. if $ARGS[0] = 'yoga':
  371. *clr & cla
  372. if willday_yoga ! daystart:
  373. willday_yoga = daystart
  374. yoga_counter = 0
  375. :timeloopyoga
  376. pcs_willpwr += rand(1,2)
  377. if yoga_counter < min(timemult - 1,4): yoga_counter += 1 & jump 'timeloopyoga'
  378. end
  379. gs 'exercise', 'tier2', (timemult*15), 'sprt', 'agil'
  380. timemult = 0
  381. if $clothingworntype ! 'nude':
  382. if $location_type = 'secluded':
  383. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/yoga_dressed_outdoor.jpg"></center>'
  384. else
  385. '<center><video autoplay loop src="images/pc/activities/exercises/yoga_dressed.mp4"></video></center>'
  386. end
  387. elseif $pantyworntype ! 'none':
  388. '<center><video autoplay loop src="images/pc/activities/exercises/yoga_underwear.mp4"></video></center>'
  389. else
  390. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/yoga_nude.jpg"></center>'
  391. end
  392. 'You spend <<$timestring>> minutes stretching and straining your muscles in various poses, improving your will and flexibility.'
  393. gs 'stat'
  394. if exer_auto = 1:
  395. act 'Continue': gt 'exercise', 'auto4'
  396. else
  397. act 'Continue': gt 'exercise', 'manual'
  398. end
  399. end
  400. if $ARGS[0] = 'rope':
  401. cla
  402. *clr
  403. gs 'exercise', 'tier3', (15*timemult), 'agil', 'react'
  404. timemult = 0
  405. if $clothingworntype ! 'nude':
  406. '<center><video autoplay loop src="images/pc/activities/exercises/rope_dressed.mp4"></video></center>'
  407. elseif $pantyworntype ! 'none':
  408. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/rope_underwear.jpg"></center>'
  409. else
  410. '<center><video autoplay loop src="images/pc/activities/exercises/rope_nude.mp4"></video></center>'
  411. end
  412. 'You jump rope for <<$timestring>> minutes, improving your speed.'
  413. gs 'stat'
  414. if exer_auto = 1:
  415. act 'Continue': gt 'exercise', 'auto3'
  416. else
  417. act 'Continue': gt 'exercise', 'manual'
  418. end
  419. end
  420. if $ARGS[0] = 'press':
  421. cla
  422. *clr
  423. gs 'exercise', 'tier3', (15*timemult), 'vital'
  424. timemult = 0
  425. if $clothingworntype ! 'nude':
  426. '<center><video autoplay loop src="images/pc/activities/exercises/abdominal_dressed.mp4"></video></center>'
  427. elseif $pantyworntype ! 'none':
  428. '<center><video autoplay loop src="images/pc/activities/exercises/abdominal_underwear.mp4"></video></center>'
  429. else
  430. '<center><video autoplay loop src="images/pc/activities/exercises/abdominal_nude.mp4"></video></center>'
  431. end
  432. 'You do a series of abdominal exercises for <<$timestring>> minutes, improving your endurance.'
  433. gs 'stat'
  434. if exer_auto = 1:
  435. act 'Continue': gt 'exercise', 'auto2'
  436. else
  437. act 'Continue': gt 'exercise', 'manual'
  438. end
  439. end
  440. if $ARGS[0] = 'push':
  441. cla
  442. *clr
  443. gs 'exercise', 'tier3', (15*timemult), 'stren'
  444. timemult = 0
  445. if $clothingworntype ! 'nude':
  446. '<center><video autoplay loop src="images/pc/activities/exercises/push_dressed.mp4"></video></center>'
  447. elseif $pantyworntype ! 'none':
  448. '<center><video autoplay loop src="images/pc/activities/exercises/push_underwear.mp4"></video></center>'
  449. else
  450. '<center><video autoplay loop src="images/pc/activities/exercises/push_nude.mp4"></video></center>'
  451. end
  452. 'You do push-ups for <<$timestring>> minutes, improving your strength.'
  453. randpushfact = rand(-5,5)
  454. if pcs_energy < 40: randpushfact -= RAND(1,10)
  455. pushnum = (pcs_stren * pcs_sleep * pcs_health) / ( 1 * 67 * healthmax) + randpushfact
  456. if pushnum < 1: pushnum = rand(1,5)
  457. KILLVAR 'randpushfact'
  458. '<br>You managed to do <<pushnum>> push-ups. Your previous record is <<pushrecord>>.'
  459. if pushrecord < pushnum:pushrecord = pushnum & 'This is a new record!'
  460. gs 'stat'
  461. if exer_auto = 1:
  462. act 'Continue': gt 'exercise', 'auto1'
  463. else
  464. act 'Continue': gt 'exercise', 'manual'
  465. end
  466. end
  467. if $ARGS[0] = 'tier1':
  468. if ARGS[1] = 0:
  469. minut += 15
  470. mult = 1
  471. else
  472. minut += ARGS[1]
  473. mult = (ARGS[1]-1)/15 + 1
  474. end
  475. gs 'exercise', 'get_sport_clothes_exercise_bonus'
  476. pcs_stam -= (5*mult * (10 - sport_clothes_exercise_bonus)) / 2
  477. gs 'sweat', 'add', (3*mult)
  478. fat -= (4 + mult/2)
  479. pcs_energy -= 1*mult
  480. pcs_hydra -= 2*mult
  481. pcs_mood += (3 + mult)
  482. mcnt = 0
  483. :timeexploop1
  484. if $ARGS[3] = '':
  485. gs 'exp_gain', $ARGS[2], 1, steroid_dose
  486. if $ARGS[2] = 'vital' or $ARGS[2] = 'stren':
  487. gs 'exp_gain', $ARGS[2], rand(0,steroid_dose)
  488. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  489. end
  490. else
  491. i = 2
  492. :exploop1
  493. if $ARGS[i] ! '':
  494. gs 'exp_gain', $ARGS[i], rand(0,1), steroid_dose
  495. if $ARGS[i] = 'vital' or $ARGS[i] = 'stren':
  496. gs 'exp_gain', $ARGS[i], rand(0,steroid_dose)
  497. steroidcheck = 1
  498. end
  499. i += 1
  500. jump 'exploop1'
  501. else
  502. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  503. killvar 'steroidcheck'
  504. killvar 'i'
  505. end
  506. end
  507. mcnt += 1
  508. if mcnt < mult: jump 'timeexploop1'
  509. killvar 'mcnt'
  510. killvar 'mult'
  511. end
  512. if $ARGS[0] = 'tier2':
  513. if ARGS[1] = 0:
  514. minut += 15
  515. mult = 1
  516. else
  517. minut += ARGS[1]
  518. mult = (ARGS[1]-1)/15 + 1
  519. end
  520. gs 'exercise', 'get_sport_clothes_exercise_bonus'
  521. pcs_stam -= 5*mult * (10 - sport_clothes_exercise_bonus)
  522. gs 'sweat', 'add', (10*mult)
  523. fat -= (3 + mult/2)
  524. pcs_energy -= 2*mult
  525. pcs_hydra -= 4*mult
  526. pcs_mood += (5 + mult)
  527. mcnt = 0
  528. :timeexploop2
  529. if $ARGS[3] = '':
  530. gs 'exp_gain', $ARGS[2], rand(2,3), steroid_dose
  531. if $ARGS[2] = 'vital' or $ARGS[2] = 'stren':
  532. gs 'exp_gain', $ARGS[2], rand(0,steroid_dose)
  533. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  534. end
  535. else
  536. i = 2
  537. :exploop2
  538. if $ARGS[i] ! '':
  539. gs 'exp_gain', $ARGS[i], rand(1,2), steroid_dose
  540. if $ARGS[i] = 'vital' or $ARGS[i] = 'stren':
  541. gs 'exp_gain', $ARGS[i], rand(0,steroid_dose)
  542. steroidcheck = 1
  543. end
  544. i += 1
  545. jump 'exploop2'
  546. else
  547. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  548. killvar 'steroidcheck'
  549. killvar 'i'
  550. end
  551. end
  552. mcnt += 1
  553. if mcnt < mult: jump 'timeexploop2'
  554. killvar 'mcnt'
  555. killvar 'mult'
  556. end
  557. if $ARGS[0] = 'tier3':
  558. if ARGS[1] = 0:
  559. minut += 15
  560. mult = 1
  561. else
  562. minut += ARGS[1]
  563. mult = (ARGS[1]-1)/15 + 1
  564. end
  565. gs 'exercise', 'get_sport_clothes_exercise_bonus'
  566. pcs_stam -= (15*mult * (10 - sport_clothes_exercise_bonus)) / 2
  567. gs 'sweat', 'add', (15*mult)
  568. fat -= (2 + mult/2)
  569. pcs_energy -= 3*mult
  570. pcs_hydra -= 6*mult
  571. pcs_mood += (5 + mult)
  572. mcnt = 0
  573. :timeexploop3
  574. if $ARGS[3] = '':
  575. gs 'exp_gain', $ARGS[2], rand(3,5), steroid_dose
  576. if $ARGS[2] = 'vital' or $ARGS[2] = 'stren':
  577. gs 'exp_gain', $ARGS[2], rand(0,steroid_dose)
  578. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  579. end
  580. else
  581. i = 2
  582. :exploop3
  583. if $ARGS[i] ! '':
  584. gs 'exp_gain', $ARGS[i], rand(2,3), steroid_dose
  585. if $ARGS[i] = 'vital' or $ARGS[i] = 'stren':
  586. gs 'exp_gain', $ARGS[i], rand(0,steroid_dose)
  587. steroidcheck = 1
  588. end
  589. i += 1
  590. jump 'exploop3'
  591. else
  592. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  593. killvar 'steroidcheck'
  594. killvar 'i'
  595. end
  596. end
  597. mcnt += 1
  598. if mcnt < mult: jump 'timeexploop3'
  599. killvar 'mcnt'
  600. killvar 'mult'
  601. end
  602. if $ARGS[0] = 'tier4':
  603. if ARGS[1] = 0:
  604. minut += 15
  605. mult = 1
  606. else
  607. minut += ARGS[1]
  608. mult = (ARGS[1]-1)/15 + 1
  609. end
  610. gs 'exercise', 'get_sport_clothes_exercise_bonus'
  611. pcs_stam -= (25*mult * (10 - sport_clothes_exercise_bonus))/2
  612. gs 'sweat', 'add', (25*mult)
  613. fat -= (1 + mult/2)
  614. pcs_energy -= 4*mult
  615. pcs_hydra -= 12*mult
  616. pcs_mood += (5 + mult)
  617. mcnt = 0
  618. :timeexploop4
  619. if $ARGS[3] = '':
  620. gs 'exp_gain', $ARGS[2], rand(7,10), steroid_dose
  621. if $ARGS[2] = 'vital' or $ARGS[2] = 'stren':
  622. gs 'exp_gain', $ARGS[2], rand(0,steroid_dose)
  623. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  624. end
  625. else
  626. i = 2
  627. :exploop4
  628. if $ARGS[i] ! '':
  629. gs 'exp_gain', $ARGS[i], rand(3,5), steroid_dose
  630. if $ARGS[i] = 'vital' or $ARGS[i] = 'stren':
  631. gs 'exp_gain', $ARGS[i], rand(0,steroid_dose)
  632. steroidcheck = 1
  633. end
  634. i += 1
  635. jump 'exploop4'
  636. else
  637. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  638. killvar 'steroidcheck'
  639. killvar 'i'
  640. end
  641. end
  642. mcnt += 1
  643. if mcnt < mult: jump 'timeexploop4'
  644. killvar 'mcnt'
  645. killvar 'mult'
  646. end
  647. if $ARGS[0] = 'timestring':
  648. if timemult = 1: $timestring = 'fifteen'
  649. if timemult = 2: $timestring = 'thirty'
  650. if timemult = 3: $timestring = 'forty-five'
  651. if timemult = 4: $timestring = 'sixty'
  652. end
  653. if $ARGS[0] = 'get_sport_clothes_exercise_bonus':
  654. sport_clothes_exercise_bonus = 0
  655. if $braworntype = 'sport':
  656. sport_clothes_exercise_bonus += 1
  657. elseif PCloBra = 1 and $clothingworntype = 'danilovich_outfits':
  658. sport_clothes_exercise_bonus += 1
  659. end
  660. if $pantyworntype = 'sport':
  661. sport_clothes_exercise_bonus += 1
  662. elseif PCLoPanties = 1 and $clothingworntype = 'danilovich_outfits':
  663. sport_clothes_exercise_bonus += 1
  664. end
  665. if $clothingworntype = 'danilovich_outfits':
  666. sport_clothes_exercise_bonus += 1
  667. end
  668. if $shoeworntype = 'danilovich':
  669. sport_clothes_exercise_bonus += 1
  670. end
  671. end
  672. --- exercise ---------------------------------