1
0

exercise.qsrc 25 KB

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