1
0

exercise 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  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 $loc = 'Meadow':
  14. if sunWeather = 1:
  15. if pcs_stam >=15 or pcs_stam >= 10 and bookYog + obruch > 0:
  16. if $clothingworntype ! 'exercise' and pcs_exhibition < 35:
  17. '<center>You could do some exercises here if you were wearing workout clothes.</center>'
  18. elseif $clothingworntype ! 'exercise' and pcs_exhibition >= 35 and Miraloc ! 2 and temper >= 10:
  19. '<center>Your meadow is a perfect place to do some exercises. There is no one around, so you could do it <a href="exec: gt ''exercise'', ''workout'', ''nude'', ''Meadow''"> in the nude</a>.</center>'
  20. else
  21. '<center>Your meadow is a perfect place to do some <a href="exec: gt ''exercise'', ''workout''">exercises</a>.</center>'
  22. end
  23. else
  24. '<center>Your meadow is a perfect place to do some exercises, but you don''t have the energy right now.</center>'
  25. end
  26. end
  27. elseif (pcs_stam >=15 or pcs_stam >= 10 and bookYog + obruch > 0) and $loc ! 'Meadow':
  28. '<center>There is enough space in the room to <a href="exec: gt ''exercise'', ''workout''">exercise</a>.</center>'
  29. else
  30. '<center>There is enough space in the room for a variety of exercises, but you don''t have the energy to work out now.</center>'
  31. end
  32. end
  33. if $ARGS[0] = 'workout':
  34. cla
  35. if $loc = 'Meadow' and $clothingworntype ! 'exercise':
  36. $sportloc = 'Meadow'
  37. gs 'clothing', 'strip', $sportloc
  38. else
  39. $sportloc = ''
  40. end
  41. gs 'stat'
  42. if $ARGS[1] = 'nude':
  43. gs 'arousal', 'foreplay', 15, 'exhibitionism'
  44. gs 'arousal', 'end'
  45. clothesAtLocation = FUNC('lost_clothes_here',$sportloc)
  46. minut -= 15
  47. gs 'stat'
  48. if exhibitionQW < 3: 'Your cheeks feel hot with embarrassment as you strip off your clothes. You giggle nervously at the thought of getting caught in the nude - the thought terrifies you but it also excites you.'
  49. end
  50. *nl
  51. '<a href="exec:gt ''exercise'', ''setup''">Click here</a> to set up your automated exercise options.'
  52. if clothesAtLocation = 1 and $clothingworntype = 'nude':
  53. act 'End workout and get dressed':
  54. cla
  55. minut += 5
  56. gs 'clothing', 'recover_lost_clothes', $sportloc, 1
  57. gt $loc, $metka
  58. end
  59. else
  60. act 'Leave': gt $loc, $metka
  61. end
  62. act 'Manual': gt 'exercise', 'manual'
  63. if exer_stam[1] ! 0 and pcs_stam > exer_stam[1]: act '<<$excer_name[1]>> - (<<exer_stam[1]>> stamina)': x = 1 & gt 'exercise', 'auto'
  64. if exer_stam[2] ! 0 and pcs_stam > exer_stam[2]: act '<<$excer_name[2]>> - (<<exer_stam[2]>> stamina)': x = 2 & gt 'exercise', 'auto'
  65. if exer_stam[3] ! 0 and pcs_stam > exer_stam[3]: act '<<$excer_name[3]>> - (<<exer_stam[3]>> stamina)': x = 3 & gt 'exercise', 'auto'
  66. if exer_stam[4] ! 0 and pcs_stam > exer_stam[4]: act '<<$excer_name[4]>> - (<<exer_stam[4]>> stamina)': x = 4 & gt 'exercise', 'auto'
  67. end
  68. if $ARGS[0] = 'auto':
  69. exer_auto = 1
  70. if exer_rout0[x] > 0:
  71. timemult = exer_rout0[x] & gs 'exercise', 'timestring' & gt 'exercise', 'push', 'auto'
  72. elseif exer_rout1[x] > 0:
  73. timemult = exer_rout1[x] & gs 'exercise', 'timestring' & gt 'exercise', 'press', 'auto'
  74. elseif exer_rout2[x] > 0:
  75. timemult = exer_rout2[x] & gs 'exercise', 'timestring' & gt 'exercise', 'rope', 'auto'
  76. elseif exer_rout3[x] > 0:
  77. timemult = exer_rout3[x] & gs 'exercise', 'timestring' & gt 'exercise', 'yoga', 'auto'
  78. elseif exer_rout4[x] > 0:
  79. timemult = exer_rout4[x] & gs 'exercise', 'timestring' & gt 'exercise', 'hula', 'auto'
  80. end
  81. end
  82. if $ARGS[0] = 'auto1':
  83. if exer_rout1[x] > 0:
  84. timemult = exer_rout1[x] & gs 'exercise', 'timestring' & gt 'exercise', 'press', 'auto'
  85. elseif exer_rout2[x] > 0:
  86. timemult = exer_rout2[x] & gs 'exercise', 'timestring' & gt 'exercise', 'rope', 'auto'
  87. elseif exer_rout3[x] > 0:
  88. timemult = exer_rout3[x] & gs 'exercise', 'timestring' & gt 'exercise', 'yoga', 'auto'
  89. elseif exer_rout4[x] > 0:
  90. timemult = exer_rout4[x] & gs 'exercise', 'timestring' & gt 'exercise', 'hula', 'auto'
  91. end
  92. end
  93. if $ARGS[0] = 'auto2':
  94. if exer_rout2[x] > 0:
  95. timemult = exer_rout2[x] & gs 'exercise', 'timestring' & gt 'exercise', 'rope', 'auto'
  96. elseif exer_rout3[x] > 0:
  97. timemult = exer_rout3[x] & gs 'exercise', 'timestring' & gt 'exercise', 'yoga', 'auto'
  98. elseif exer_rout4[x] > 0:
  99. timemult = exer_rout4[x] & gs 'exercise', 'timestring' & gt 'exercise', 'hula', 'auto'
  100. else
  101. gt 'exercise', 'auto_end'
  102. end
  103. end
  104. if $ARGS[0] = 'auto3':
  105. if exer_rout3[x] > 0:
  106. timemult = exer_rout3[x] & gs 'exercise', 'timestring' & gt 'exercise', 'yoga', 'auto'
  107. elseif exer_rout4[x] > 0:
  108. timemult = exer_rout4[x] & gs 'exercise', 'timestring' & gt 'exercise', 'hula', 'auto'
  109. else
  110. gt 'exercise', 'auto_end'
  111. end
  112. end
  113. if $ARGS[0] = 'auto4':
  114. if exer_rout4[x] > 0:
  115. timemult = exer_rout4[x] & gs 'exercise', 'timestring' & gt 'exercise', 'hula', 'auto'
  116. else
  117. gt 'exercise', 'auto_end'
  118. end
  119. end
  120. if $ARGS[0] = 'auto_end':
  121. exer_auto = 0
  122. if clothesAtLocation = 1 and $clothingworntype = 'nude':
  123. cla
  124. minut += 5
  125. gs 'clothing', 'recover_lost_clothes', $sportloc, 1
  126. gt $loc, $metka
  127. else
  128. gt $loc, $metka
  129. end
  130. end
  131. if $ARGS[0] = 'manual':
  132. cla
  133. if pcs_stam >= 15:
  134. Act 'Do pushups for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'push', 'manual'
  135. Act 'Do crunches for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'press', 'manual'
  136. if skak > 0 and $loc ! 'meadow':
  137. Act 'Jump rope for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'rope', 'manual'
  138. end
  139. end
  140. if pcs_stam >= 10:
  141. if bookYog > 0:
  142. Act 'Do yoga for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'yoga', 'manual'
  143. end
  144. if obruch > 0 and $loc ! 'meadow':
  145. Act 'Use your hula hoop for 15 minutes': timemult = 1 & gs 'exercise', 'timestring' & gt 'exercise', 'hula', 'manual'
  146. end
  147. end
  148. if pcs_stam >= 30:
  149. Act 'Do pushups for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'push', 'manual'
  150. Act 'Do crunches for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'press', 'manual'
  151. if skak > 0 and $loc ! 'meadow':
  152. Act 'Jump rope for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'rope', 'manual'
  153. end
  154. end
  155. if pcs_stam >= 20:
  156. if bookYog > 0:
  157. Act 'Do yoga for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'yoga', 'manual'
  158. end
  159. if obruch > 0 and $loc ! 'meadow':
  160. Act 'Use your hula hoop for 30 minutes': timemult = 2 & gs 'exercise', 'timestring' & gt 'exercise', 'hula', 'manual'
  161. end
  162. end
  163. if pcs_stam >= 45:
  164. Act 'Do pushups for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'push', 'manual'
  165. Act 'Do crunches for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'press', 'manual'
  166. if skak > 0 and $loc ! 'meadow':
  167. Act 'Jump rope for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'rope', 'manual'
  168. end
  169. end
  170. if pcs_stam >= 30:
  171. if bookYog > 0:
  172. Act 'Do yoga for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'yoga', 'manual'
  173. end
  174. if obruch > 0 and $loc ! 'meadow':
  175. Act 'Use your hula hoop for 45 minutes': timemult = 3 & gs 'exercise', 'timestring' & gt 'exercise', 'hula', 'manual'
  176. end
  177. end
  178. if pcs_stam >= 60:
  179. Act 'Do pushups for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'push', 'manual'
  180. Act 'Do crunches for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'press', 'manual'
  181. if skak > 0 and $loc ! 'meadow':
  182. Act 'Jump rope for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'rope', 'manual'
  183. end
  184. end
  185. if pcs_stam >= 40:
  186. if bookYog > 0:
  187. Act 'Do yoga for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'yoga', 'manual'
  188. end
  189. if obruch > 0 and $loc ! 'meadow':
  190. Act 'Use your hula hoop for 60 minutes': timemult = 4 & gs 'exercise', 'timestring' & gt 'exercise', 'hula', 'manual'
  191. end
  192. end
  193. if pcs_stam < 10 or pcs_stam < 15 and bookYog + obruch = 0:
  194. 'You don''t have the energy to work out anymore now.'
  195. end
  196. if clothesAtLocation = 1 and $clothingworntype = 'nude':
  197. Act 'End workout and get dressed':
  198. cla
  199. minut += 5
  200. gs 'clothing', 'recover_lost_clothes', $sportloc, 1
  201. gt $loc, $metka
  202. end
  203. else
  204. Act 'Leave': gt $loc, $metka
  205. end
  206. end
  207. if $ARGS[0] = 'setup':
  208. *clr
  209. cla
  210. '<center><b>Define up to 4 automated exercise routines.</b></center>'
  211. *nl
  212. *nl
  213. *nl
  214. *nl
  215. '<center><table><TH></TH><TH></TH><TH>Push ups</TH><TH>Crunches</TH><TH>Jump rope</TH><TH>Yoga</TH><TH>Hula hoop</TH>'
  216. '<TR><TD><<$excer_name[1]>></TD><TD><a href="exec:$excer_name[1] = input (''Enter name for exercise routine 1'')">rename</a></TD><TD><<exer_rout0[1]*15>> minutes</TD><TD><<exer_rout1[1]*15>> minutes</TD><TD><<exer_rout2[1]*15>> minutes</TD><TD><<exer_rout3[1]*15>> minutes</TD><TD><<exer_rout4[1]*15>> minutes</TD>'
  217. '<TR><TD><<$excer_name[2]>></TD><TD><a href="exec:$excer_name[2] = input (''Enter name for exercise routine 2'')">rename</a></TD><TD><<exer_rout0[2]*15>> minutes</TD><TD><<exer_rout1[2]*15>> minutes</TD><TD><<exer_rout2[2]*15>> minutes</TD><TD><<exer_rout3[2]*15>> minutes</TD><TD><<exer_rout4[2]*15>> minutes</TD>'
  218. '<TR><TD><<$excer_name[3]>></TD><TD><a href="exec:$excer_name[3] = input (''Enter name for exercise routine 3'')">rename</a></TD><TD><<exer_rout0[3]*15>> minutes</TD><TD><<exer_rout1[3]*15>> minutes</TD><TD><<exer_rout2[3]*15>> minutes</TD><TD><<exer_rout3[3]*15>> minutes</TD><TD><<exer_rout4[3]*15>> minutes</TD>'
  219. '<TR><TD><<$excer_name[4]>></TD><TD><a href="exec:$excer_name[4] = input (''Enter name for exercise routine 4'')">rename</a></TD><TD><<exer_rout0[4]*15>> minutes</TD><TD><<exer_rout1[4]*15>> minutes</TD><TD><<exer_rout2[4]*15>> minutes</TD><TD><<exer_rout3[4]*15>> minutes</TD><TD><<exer_rout4[4]*15>> minutes</TD>'
  220. '</table></center>'
  221. act 'Return': gt 'exercise', 'workout'
  222. act 'Define <<$excer_name[1]>>':i = 1 & gt 'exercise', 'matrix'
  223. act 'Define <<$excer_name[2]>>':i = 2 & gt 'exercise', 'matrix'
  224. act 'Define <<$excer_name[3]>>':i = 3 & gt 'exercise', 'matrix'
  225. act 'Define <<$excer_name[4]>>':i = 4 & gt 'exercise', 'matrix'
  226. !!exer_rout1 = default
  227. end
  228. if $ARGS[0] = 'matrix':
  229. *clr
  230. cla
  231. exer_stam[i] = exer_stam0[i] + exer_stam1[i] + exer_stam2[i] + exer_stam3[i] + exer_stam4[i]
  232. act'Confirm':
  233. gt 'exercise', 'setup'
  234. end
  235. 'Choose your exercise options from the following table:'
  236. '<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>'
  237. gs 'exercise', 'matrixdata', 0, 'Push ups'
  238. gs 'exercise', 'matrixdata', 1, 'Crunches'
  239. if skak > 0 and $loc ! 'meadow': gs 'exercise', 'matrixdata', 2, 'Jump rope'
  240. if bookYog > 0: gs 'exercise', 'matrixdata', 3, 'Yoga'
  241. if obruch > 0 and $loc ! 'meadow': gs 'exercise', 'matrixdata', 4, 'Hula hoop'
  242. '</center></table>'
  243. *nl
  244. 'Total stamina required - <<exer_stam[i]>>'
  245. end
  246. if $ARGS[0] = 'matrixdata':
  247. '<TR>'
  248. *p '<TD><<$ARGS[2]>></TD>'
  249. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 0:
  250. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 0'
  251. *p '<TD>Selected</TD>'
  252. else
  253. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 0'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  254. end
  255. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 1:
  256. if ARGS[1] >= 3:
  257. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 10'
  258. else
  259. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 15'
  260. end
  261. *p '<TD>Selected</TD>'
  262. else
  263. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 1'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  264. end
  265. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 2:
  266. if ARGS[1] >= 3:
  267. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 20'
  268. else
  269. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 30'
  270. end
  271. *p '<TD>Selected</TD>'
  272. else
  273. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 2'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  274. end
  275. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 3:
  276. if ARGS[1] >= 3:
  277. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 30'
  278. else
  279. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 45'
  280. end
  281. *p '<TD>Selected</TD>'
  282. else
  283. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 3'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  284. end
  285. if dyneval('RESULT = exer_rout<<ARGS[1]>>[<<i>>]') = 4:
  286. if ARGS[1] >= 3:
  287. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 40'
  288. else
  289. dynamic 'exer_stam<<ARGS[1]>>[<<i>>] = 60'
  290. end
  291. *p '<TD>Selected</TD>'
  292. else
  293. *p '<TD><a href="exec:dynamic ''exer_rout<<ARGS[1]>>[i] = 4'' & gt ''exercise'', ''matrix''">Select</a></TD>'
  294. end
  295. exer_stam[i] = exer_stam0[i] + exer_stam1[i] + exer_stam2[i] + exer_stam3[i] + exer_stam4[i]
  296. end
  297. if $ARGS[0] = 'hula':
  298. cla
  299. *clr
  300. loopcount = 1
  301. :timeloophula
  302. gs 'exercise', 'tier2', 0, 'agil_exp', 'react_exp'
  303. if loopcount < timemult: loopcount += 1 & jump 'timeloophula'
  304. loopcount = 0
  305. timemult = 0
  306. if $clothingworntype ! 'nude':
  307. if $location_type = 'secluded':
  308. if month >=5 and month <= 9:
  309. '<center><img <<$set_imgh>> src="images/pc/activities/hulaoutdoors.jpg"></center>'
  310. else
  311. '<center><img <<$set_imgh>> src="images/pc/activities/hulawinter.gif"></center>'
  312. end
  313. else
  314. '<center><img <<$set_imgh>> src="images/pc/activities/huladressed.gif"></center>'
  315. end
  316. else
  317. '<center><img <<$set_imgh>> src="images/pc/activities/obruch.gif"></center>'
  318. end
  319. 'You develop your dexterity by using your hula hoop for <<$timestring>> minutes.'
  320. if exer_auto = 1:
  321. act 'Continue': gt 'exercise', 'auto_end'
  322. else
  323. act 'Continue': gt 'exercise', 'manual'
  324. end
  325. end
  326. if $ARGS[0] = 'yoga':
  327. cla
  328. *clr
  329. loopcount = 1
  330. :timeloopyoga
  331. gs 'exercise', 'tier2', 0, 'sprt_exp', 'agil_exp', 'pcs_willpwr'
  332. if loopcount < timemult: loopcount += 1 & jump 'timeloopyoga'
  333. loopcount = 0
  334. timemult = 0
  335. if $clothingworntype ! 'nude':
  336. if $location_type = 'secluded':
  337. '<center><img <<$set_imgh>> src="images/pc/activities/yoga_dressed.jpg"></center>'
  338. else
  339. '<center><img <<$set_imgh>> src="images/pc/activities/yoga_dressed.gif"></center>'
  340. end
  341. elseif tanga = 1:
  342. '<center><img <<$set_imgh>> src="images/pc/activities/yoga_underwear.gif"></center>'
  343. else
  344. '<center><img <<$set_imgh>> src="images/pc/activities/yoga_nude.gif"></center>'
  345. end
  346. 'You meditate for <<$timestring>> minutes, developing your will.'
  347. if exer_auto = 1:
  348. act 'Continue': gt 'exercise', 'auto4'
  349. else
  350. act 'Continue': gt 'exercise', 'manual'
  351. end
  352. end
  353. if $ARGS[0] = 'rope':
  354. cla
  355. *clr
  356. loopcount = 1
  357. :timelooprope
  358. gs 'exercise', 'tier3', 0, 'agil_exp', 'react_exp'
  359. if loopcount < timemult: loopcount += 1 & jump 'timelooprope'
  360. loopcount = 0
  361. timemult = 0
  362. if $clothingworntype ! 'nude':
  363. '<center><img <<$set_imgh>> src="images/pc/activities/rope_dressed.gif"></center>'
  364. elseif tanga = 1:
  365. '<center><img <<$set_imgh>> src="images/pc/activities/rope_underwear.jpg"></center>'
  366. else
  367. '<center><img <<$set_imgh>> src="images/pc/activities/rope_naked.gif"></center>'
  368. end
  369. 'You jump rope for <<$timestring>> minutes, developing your speed.'
  370. if exer_auto = 1:
  371. act 'Continue': gt 'exercise', 'auto3'
  372. else
  373. act 'Continue': gt 'exercise', 'manual'
  374. end
  375. end
  376. if $ARGS[0] = 'press':
  377. cla
  378. *clr
  379. loopcount = 1
  380. :timelooppress
  381. gs 'exercise', 'tier3', 0, 'vital_exp'
  382. if loopcount < timemult: loopcount += 1 & jump 'timelooppress'
  383. loopcount = 0
  384. timemult = 0
  385. if $clothingworntype ! 'nude':
  386. '<center><img <<$set_imgh>> src="images/pc/activities/abdominal_dressed.gif"></center>'
  387. elseif tanga = 1:
  388. '<center><img <<$set_imgh>> src="images/pc/activities/abdominal_underwear.gif"></center>'
  389. else
  390. '<center><img <<$set_imgh>> src="images/pc/activities/abdominal_naked.gif"></center>'
  391. end
  392. 'You do a series of abdominal exercises for <<$timestring>> minutes, developing your endurance.'
  393. if exer_auto = 1:
  394. act 'Continue': gt 'exercise', 'auto2'
  395. else
  396. act 'Continue': gt 'exercise', 'manual'
  397. end
  398. end
  399. if $ARGS[0] = 'push':
  400. cla
  401. *clr
  402. loopcount = 1
  403. :timelooppush
  404. gs 'exercise', 'tier3', 0, 'stren_exp'
  405. if loopcount < timemult: loopcount += 1 & jump 'timelooppush'
  406. loopcount = 0
  407. timemult = 0
  408. if $clothingworntype ! 'nude':
  409. '<center><img <<$set_imgh>> src="images/pc/activities/push_dressed.gif"></center>'
  410. elseif tanga = 1:
  411. '<center><img <<$set_imgh>> src="images/pc/activities/push_underwear.gif"></center>'
  412. else
  413. '<center><img <<$set_imgh>> src="images/pc/activities/push_naked.jpg"></center>'
  414. end
  415. 'You do push-ups for <<$timestring>> minutes, developing your strength.'
  416. pushnum = pcs_stren * pcs_sleep * rand(1,3) / 200
  417. '<br>You managed to do <<pushnum>> push-ups. Your previous record is <<pushrecord>>.'
  418. if pushrecord < pushnum:pushrecord = pushnum & 'This is a new record!'
  419. if exer_auto = 1:
  420. act 'Continue': gt 'exercise', 'auto1'
  421. else
  422. act 'Continue': gt 'exercise', 'manual'
  423. end
  424. end
  425. if $ARGS[0] = 'tier1':
  426. if ARGS[1] = 0: minut += 15
  427. pcs_stam -= 5
  428. pcs_sweat += 3
  429. fat -= 1
  430. pcs_mood += 3
  431. pcs_willpwr += 3
  432. if $ARGS[3] = '':
  433. dynamic '<<$ARGS[2]>> += 1'
  434. if $ARGS[2] = 'vital_exp' or $ARGS[2] = 'stren_exp':
  435. dynamic '<<$ARGS[2]>> += rand(0,steroid_dose)'
  436. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  437. end
  438. else
  439. i = 2
  440. :exploop
  441. if $ARGS[i] ! '':
  442. dynamic '<<$ARGS[i]>> += rand(0,1)'
  443. if $ARGS[i] = 'vital_exp' or $ARGS[i] = 'stren_exp': dynamic '<<$ARGS[i]>> += rand(0,steroid_dose) & steroidcheck = 1'
  444. i += 1
  445. jump 'exploop'
  446. else
  447. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  448. killvar 'steroidcheck'
  449. killvar 'i'
  450. exit
  451. end
  452. end
  453. end
  454. if $ARGS[0] = 'tier2':
  455. if ARGS[1] = 0: minut += 15
  456. pcs_stam -= 10
  457. pcs_sweat += 10
  458. fat -= 2
  459. pcs_mood += 5
  460. pcs_willpwr += 5
  461. if $ARGS[3] = '':
  462. dynamic '<<$ARGS[2]>> += rand(2,3)'
  463. if $ARGS[2] = 'vital_exp' or $ARGS[2] = 'stren_exp':
  464. dynamic '<<$ARGS[2]>> += rand(0,steroid_dose)'
  465. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  466. end
  467. else
  468. i = 2
  469. :exploop2
  470. if $ARGS[i] ! '':
  471. dynamic '<<$ARGS[i]>> += rand(1,2)'
  472. if $ARGS[i] = 'vital_exp' or $ARGS[i] = 'stren_exp': dynamic '<<$ARGS[i]>> += rand(0,steroid_dose) & steroidcheck = 1'
  473. i += 1
  474. jump 'exploop2'
  475. else
  476. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  477. killvar 'steroidcheck'
  478. killvar 'i'
  479. end
  480. end
  481. end
  482. if $ARGS[0] = 'tier3':
  483. if ARGS[1] = 0: minut += 15
  484. pcs_stam -= 15
  485. pcs_sweat += 15
  486. fat -= 3
  487. pcs_mood += 5
  488. pcs_willpwr += 5
  489. if $ARGS[3] = '':
  490. dynamic '<<$ARGS[2]>> += rand(3,5)'
  491. if $ARGS[2] = 'vital_exp' or $ARGS[2] = 'stren_exp':
  492. dynamic '<<$ARGS[2]>> += rand(0,steroid_dose)'
  493. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  494. end
  495. else
  496. i = 2
  497. :exploop3
  498. if $ARGS[i] ! '':
  499. dynamic '<<$ARGS[i]>> += rand(2,3)'
  500. if $ARGS[i] = 'vital_exp' or $ARGS[i] = 'stren_exp': dynamic '<<$ARGS[i]>> += rand(0,steroid_dose) & steroidcheck = 1'
  501. i += 1
  502. jump 'exploop3'
  503. else
  504. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  505. killvar 'steroidcheck'
  506. killvar 'i'
  507. end
  508. end
  509. end
  510. if $ARGS[0] = 'tier4':
  511. if ARGS[1] = 0: minut += 15
  512. pcs_stam -= 25
  513. pcs_sweat += 25
  514. fat -= 4
  515. pcs_mood += 5
  516. pcs_willpwr += 5
  517. if $ARGS[3] = '':
  518. dynamic '<<$ARGS[2]>> += rand(7,10)'
  519. if $ARGS[2] = 'vital_exp' or $ARGS[2] = 'stren_exp':
  520. dynamic '<<$ARGS[2]>> += rand(0,steroid_dose)'
  521. if steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  522. end
  523. else
  524. i = 2
  525. :exploop4
  526. if $ARGS[i] ! '':
  527. dynamic '<<$ARGS[i]>> += rand(3,5)'
  528. if $ARGS[i] = 'vital_exp' or $ARGS[i] = 'stren_exp': dynamic '<<$ARGS[i]>> += rand(0,steroid_dose) & steroidcheck = 1'
  529. i += 1
  530. jump 'exploop4'
  531. else
  532. if steroidcheck = 1 and steroid_dose > 0 and rand(1,5) <= steroid_dose:clit_size += rand(0,1)
  533. killvar 'steroidcheck'
  534. killvar 'i'
  535. end
  536. end
  537. end
  538. if $ARGS[0] = 'timestring':
  539. if timemult = 1: $timestring = 'fifteen'
  540. if timemult = 2: $timestring = 'thirty'
  541. if timemult = 3: $timestring = 'forty-five'
  542. if timemult = 4: $timestring = 'sixty'
  543. end
  544. --- exercise ---------------------------------