exercise.qsrc 26 KB

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