exercise.qsrc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  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]
  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. if ARGS[1] >= 3:
  278. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 10'
  279. else
  280. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 15'
  281. end
  282. *p '<TD>Selected</TD>'
  283. else
  284. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 1'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  285. end
  286. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 2:
  287. if ARGS[1] >= 3:
  288. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 20'
  289. else
  290. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 30'
  291. end
  292. *p '<TD>Selected</TD>'
  293. else
  294. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 2'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  295. end
  296. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 3:
  297. if ARGS[1] >= 3:
  298. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 30'
  299. else
  300. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 45'
  301. end
  302. *p '<TD>Selected</TD>'
  303. else
  304. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 3'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  305. end
  306. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 4:
  307. if ARGS[1] >= 3:
  308. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 40'
  309. else
  310. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 60'
  311. end
  312. *p '<TD>Selected</TD>'
  313. else
  314. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 4'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  315. end
  316. exer_stam[i] = exer_stam0[i] + exer_stam1[i] + exer_stam2[i] + exer_stam3[i] + exer_stam4[i]
  317. end
  318. if $ARGS[0] = 'butt':
  319. cla
  320. *clr
  321. gs 'exercise', 'tier2', (15*timemult), 'stren', 'butt_tr'
  322. timemult = 0
  323. if $clothingworntype ! 'nude':
  324. '<center><img <<$set_imgh>> src="images/pc/activities/excercises/butt_home_dressed.jpg"></center>'
  325. elseif $pantyworntype ! 'none':
  326. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/butt_home_underwear.jpg"></center>'
  327. else
  328. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/butt_home_nude.jpg"></center>'
  329. end
  330. 'You do squats for <<$timestring>> minutes, strengthening your thighs and scupting your butt.'
  331. gs 'stat'
  332. if exer_auto = 1:
  333. act 'Continue': gt 'exercise', 'auto_end'
  334. else
  335. act 'Continue': gt 'exercise', 'manual'
  336. end
  337. end
  338. if $ARGS[0] = 'hula':
  339. cla
  340. *clr
  341. gs 'exercise', 'tier2', (timemult*15), 'agil', 'react'
  342. timemult = 0
  343. if $clothingworntype ! 'nude':
  344. if $location_type = 'secluded':
  345. if month >=5 and month <= 9:
  346. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/hula_outdoor.jpg"></center>'
  347. else
  348. '<center><video autoplay loop src="images/pc/activities/exercises/hula_winter.mp4"></video></center>'
  349. end
  350. else
  351. '<center><video autoplay loop src="images/pc/activities/exercises/hula_dressed.mp4"></video></center>'
  352. end
  353. elseif $pantyworntype ! 'none':
  354. '<center><video autoplay loop src="images/pc/activities/exercises/hula_underwear.mp4"></video></center>'
  355. else
  356. '<center><video autoplay loop src="images/pc/activities/exercises/hula_nude.mp4"></video></center>'
  357. end
  358. 'You improve your dexterity by using your hula hoop for <<$timestring>> minutes.'
  359. gs 'stat'
  360. if exer_auto = 1:
  361. act 'Continue': gt 'exercise', 'auto5'
  362. else
  363. act 'Continue': gt 'exercise', 'manual'
  364. end
  365. end
  366. if $ARGS[0] = 'yoga':
  367. *clr & cla
  368. if willday_yoga ! daystart:
  369. willday_yoga = daystart
  370. yoga_counter = 0
  371. :timeloopyoga
  372. pcs_willpwr += rand(1,2)
  373. if yoga_counter < min(timemult - 1,4): yoga_counter += 1 & jump 'timeloopyoga'
  374. end
  375. gs 'exercise', 'tier2', (timemult*15), 'sprt', 'agil'
  376. timemult = 0
  377. if $clothingworntype ! 'nude':
  378. if $location_type = 'secluded':
  379. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/yoga_dressed_outdoor.jpg"></center>'
  380. else
  381. '<center><video autoplay loop src="images/pc/activities/exercises/yoga_dressed.mp4"></video></center>'
  382. end
  383. elseif $pantyworntype ! 'none':
  384. '<center><video autoplay loop src="images/pc/activities/exercises/yoga_underwear.mp4"></video></center>'
  385. else
  386. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/yoga_nude.jpg"></center>'
  387. end
  388. 'You spend <<$timestring>> minutes stretching and straining your muscles in various poses, improving your will and flexibility.'
  389. gs 'stat'
  390. if exer_auto = 1:
  391. act 'Continue': gt 'exercise', 'auto4'
  392. else
  393. act 'Continue': gt 'exercise', 'manual'
  394. end
  395. end
  396. if $ARGS[0] = 'rope':
  397. cla
  398. *clr
  399. gs 'exercise', 'tier3', (15*timemult), 'agil', 'react'
  400. timemult = 0
  401. if $clothingworntype ! 'nude':
  402. '<center><video autoplay loop src="images/pc/activities/exercises/rope_dressed.mp4"></video></center>'
  403. elseif $pantyworntype ! 'none':
  404. '<center><img <<$set_imgh>> src="images/pc/activities/exercises/rope_underwear.jpg"></center>'
  405. else
  406. '<center><video autoplay loop src="images/pc/activities/exercises/rope_nude.mp4"></video></center>'
  407. end
  408. 'You jump rope for <<$timestring>> minutes, improving your speed.'
  409. gs 'stat'
  410. if exer_auto = 1:
  411. act 'Continue': gt 'exercise', 'auto3'
  412. else
  413. act 'Continue': gt 'exercise', 'manual'
  414. end
  415. end
  416. if $ARGS[0] = 'press':
  417. cla
  418. *clr
  419. gs 'exercise', 'tier3', (15*timemult), 'vital'
  420. timemult = 0
  421. if $clothingworntype ! 'nude':
  422. '<center><video autoplay loop src="images/pc/activities/exercises/abdominal_dressed.mp4"></video></center>'
  423. elseif $pantyworntype ! 'none':
  424. '<center><video autoplay loop src="images/pc/activities/exercises/abdominal_underwear.mp4"></video></center>'
  425. else
  426. '<center><video autoplay loop src="images/pc/activities/exercises/abdominal_nude.mp4"></video></center>'
  427. end
  428. 'You do a series of abdominal exercises for <<$timestring>> minutes, improving your endurance.'
  429. gs 'stat'
  430. if exer_auto = 1:
  431. act 'Continue': gt 'exercise', 'auto2'
  432. else
  433. act 'Continue': gt 'exercise', 'manual'
  434. end
  435. end
  436. if $ARGS[0] = 'push':
  437. cla
  438. *clr
  439. gs 'exercise', 'tier3', (15*timemult), 'stren'
  440. timemult = 0
  441. if $clothingworntype ! 'nude':
  442. '<center><video autoplay loop src="images/pc/activities/exercises/push_dressed.mp4"></video></center>'
  443. elseif $pantyworntype ! 'none':
  444. '<center><video autoplay loop src="images/pc/activities/exercises/push_underwear.mp4"></video></center>'
  445. else
  446. '<center><video autoplay loop src="images/pc/activities/exercises/push_nude.mp4"></video></center>'
  447. end
  448. 'You do push-ups for <<$timestring>> minutes, improving your strength.'
  449. randpushfact = rand(-5,5)
  450. if pcs_energy < 40: randpushfact -= RAND(1,10)
  451. pushnum = (pcs_stren * pcs_sleep * pcs_health) / ( 1 * 67 * healthmax) + randpushfact
  452. if pushnum < 1: pushnum = rand(1,5)
  453. KILLVAR 'randpushfact'
  454. '<br>You managed to do <<pushnum>> push-ups. Your previous record is <<pushrecord>>.'
  455. if pushrecord < pushnum:pushrecord = pushnum & 'This is a new record!'
  456. gs 'stat'
  457. if exer_auto = 1:
  458. act 'Continue': gt 'exercise', 'auto1'
  459. else
  460. act 'Continue': gt 'exercise', 'manual'
  461. end
  462. end
  463. if $ARGS[0] = 'tier1':
  464. if ARGS[1] = 0:
  465. minut += 15
  466. mult = 1
  467. else
  468. minut += ARGS[1]
  469. mult = (ARGS[1]-1)/15 + 1
  470. end
  471. gs 'exercise', 'get_sport_clothes_exercise_bonus'
  472. pcs_stam -= (5*mult * (10 - sport_clothes_exercise_bonus)) / 2
  473. gs 'sweat', 'add', (3*mult)
  474. fat -= (4 + mult/2)
  475. pcs_energy -= 1*mult
  476. pcs_hydra -= 2*mult
  477. pcs_mood += (3 + mult)
  478. mcnt = 0
  479. :timeexploop1
  480. if $ARGS[3] = '':
  481. gs 'exp_gain', $ARGS[2], 1, steroid_dose
  482. if $ARGS[2] = 'vital' or $ARGS[2] = 'stren':
  483. gs 'exp_gain', $ARGS[2], rand(0,steroid_dose)
  484. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  485. end
  486. else
  487. i = 2
  488. :exploop1
  489. if $ARGS[i] ! '':
  490. gs 'exp_gain', $ARGS[i], rand(0,1), steroid_dose
  491. if $ARGS[i] = 'vital' or $ARGS[i] = 'stren':
  492. gs 'exp_gain', $ARGS[i], rand(0,steroid_dose)
  493. steroidcheck = 1
  494. end
  495. i += 1
  496. jump 'exploop1'
  497. else
  498. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  499. killvar 'steroidcheck'
  500. killvar 'i'
  501. end
  502. end
  503. mcnt += 1
  504. if mcnt < mult: jump 'timeexploop1'
  505. killvar 'mcnt'
  506. killvar 'mult'
  507. end
  508. if $ARGS[0] = 'tier2':
  509. if ARGS[1] = 0:
  510. minut += 15
  511. mult = 1
  512. else
  513. minut += ARGS[1]
  514. mult = (ARGS[1]-1)/15 + 1
  515. end
  516. gs 'exercise', 'get_sport_clothes_exercise_bonus'
  517. pcs_stam -= 5*mult * (10 - sport_clothes_exercise_bonus)
  518. gs 'sweat', 'add', (10*mult)
  519. fat -= (3 + mult/2)
  520. pcs_energy -= 2*mult
  521. pcs_hydra -= 4*mult
  522. pcs_mood += (5 + mult)
  523. mcnt = 0
  524. :timeexploop2
  525. if $ARGS[3] = '':
  526. gs 'exp_gain', $ARGS[2], rand(2,3), steroid_dose
  527. if $ARGS[2] = 'vital' or $ARGS[2] = 'stren':
  528. gs 'exp_gain', $ARGS[2], rand(0,steroid_dose)
  529. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  530. end
  531. else
  532. i = 2
  533. :exploop2
  534. if $ARGS[i] ! '':
  535. gs 'exp_gain', $ARGS[i], rand(1,2), steroid_dose
  536. if $ARGS[i] = 'vital' or $ARGS[i] = 'stren':
  537. gs 'exp_gain', $ARGS[i], rand(0,steroid_dose)
  538. steroidcheck = 1
  539. end
  540. i += 1
  541. jump 'exploop2'
  542. else
  543. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  544. killvar 'steroidcheck'
  545. killvar 'i'
  546. end
  547. end
  548. mcnt += 1
  549. if mcnt < mult: jump 'timeexploop2'
  550. killvar 'mcnt'
  551. killvar 'mult'
  552. end
  553. if $ARGS[0] = 'tier3':
  554. if ARGS[1] = 0:
  555. minut += 15
  556. mult = 1
  557. else
  558. minut += ARGS[1]
  559. mult = (ARGS[1]-1)/15 + 1
  560. end
  561. gs 'exercise', 'get_sport_clothes_exercise_bonus'
  562. pcs_stam -= (15*mult * (10 - sport_clothes_exercise_bonus)) / 2
  563. gs 'sweat', 'add', (15*mult)
  564. fat -= (2 + mult/2)
  565. pcs_energy -= 3*mult
  566. pcs_hydra -= 6*mult
  567. pcs_mood += (5 + mult)
  568. mcnt = 0
  569. :timeexploop3
  570. if $ARGS[3] = '':
  571. gs 'exp_gain', $ARGS[2], rand(3,5), steroid_dose
  572. if $ARGS[2] = 'vital' or $ARGS[2] = 'stren':
  573. gs 'exp_gain', $ARGS[2], rand(0,steroid_dose)
  574. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  575. end
  576. else
  577. i = 2
  578. :exploop3
  579. if $ARGS[i] ! '':
  580. gs 'exp_gain', $ARGS[i], rand(2,3), steroid_dose
  581. if $ARGS[i] = 'vital' or $ARGS[i] = 'stren':
  582. gs 'exp_gain', $ARGS[i], rand(0,steroid_dose)
  583. steroidcheck = 1
  584. end
  585. i += 1
  586. jump 'exploop3'
  587. else
  588. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  589. killvar 'steroidcheck'
  590. killvar 'i'
  591. end
  592. end
  593. mcnt += 1
  594. if mcnt < mult: jump 'timeexploop3'
  595. killvar 'mcnt'
  596. killvar 'mult'
  597. end
  598. if $ARGS[0] = 'tier4':
  599. if ARGS[1] = 0:
  600. minut += 15
  601. mult = 1
  602. else
  603. minut += ARGS[1]
  604. mult = (ARGS[1]-1)/15 + 1
  605. end
  606. gs 'exercise', 'get_sport_clothes_exercise_bonus'
  607. pcs_stam -= (25*mult * (10 - sport_clothes_exercise_bonus))/2
  608. gs 'sweat', 'add', (25*mult)
  609. fat -= (1 + mult/2)
  610. pcs_energy -= 4*mult
  611. pcs_hydra -= 12*mult
  612. pcs_mood += (5 + mult)
  613. mcnt = 0
  614. :timeexploop4
  615. if $ARGS[3] = '':
  616. gs 'exp_gain', $ARGS[2], rand(7,10), steroid_dose
  617. if $ARGS[2] = 'vital' or $ARGS[2] = 'stren':
  618. gs 'exp_gain', $ARGS[2], rand(0,steroid_dose)
  619. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  620. end
  621. else
  622. i = 2
  623. :exploop4
  624. if $ARGS[i] ! '':
  625. gs 'exp_gain', $ARGS[i], rand(3,5), steroid_dose
  626. if $ARGS[i] = 'vital' or $ARGS[i] = 'stren':
  627. gs 'exp_gain', $ARGS[i], rand(0,steroid_dose)
  628. steroidcheck = 1
  629. end
  630. i += 1
  631. jump 'exploop4'
  632. else
  633. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  634. killvar 'steroidcheck'
  635. killvar 'i'
  636. end
  637. end
  638. mcnt += 1
  639. if mcnt < mult: jump 'timeexploop4'
  640. killvar 'mcnt'
  641. killvar 'mult'
  642. end
  643. if $ARGS[0] = 'timestring':
  644. if timemult = 1: $timestring = 'fifteen'
  645. if timemult = 2: $timestring = 'thirty'
  646. if timemult = 3: $timestring = 'forty-five'
  647. if timemult = 4: $timestring = 'sixty'
  648. end
  649. if $ARGS[0] = 'get_sport_clothes_exercise_bonus':
  650. sport_clothes_exercise_bonus = 0
  651. if $braworntype = 'sport':
  652. sport_clothes_exercise_bonus += 1
  653. elseif PCloBra = 1 and $clothingworntype = 'danilovich_outfits':
  654. sport_clothes_exercise_bonus += 1
  655. end
  656. if $pantyworntype = 'sport':
  657. sport_clothes_exercise_bonus += 1
  658. elseif PCLoPanties = 1 and $clothingworntype = 'danilovich_outfits':
  659. sport_clothes_exercise_bonus += 1
  660. end
  661. if $clothingworntype = 'danilovich_outfits':
  662. sport_clothes_exercise_bonus += 1
  663. end
  664. if $shoeworntype = 'danilovich':
  665. sport_clothes_exercise_bonus += 1
  666. end
  667. end
  668. --- exercise ---------------------------------