volley 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # volley
  2. minut += 30
  3. gs 'stat'
  4. if volltime = 0:
  5. '<center><img src="images/qwest/alter/gdksport.jpg"></center>'
  6. 'Teams took to the field and started playing.'
  7. if volleysostav = 1:'You sit on the bench watching your team plays.'
  8. poverkomandV = rand(500, 1500)
  9. if poverkomand > poverkomandV:
  10. volpoint += 1
  11. 'Your team plays with the team opponents.'
  12. elseif poverkomand = poverkomandV:
  13. volpoint += 1
  14. volpointv += 1
  15. 'The scales vary in one, then the other, obviously teams are equal on forces.'
  16. elseif poverkomand < poverkomandV:
  17. volpointv += 1
  18. 'Team beats rivals your team.'
  19. end
  20. act 'further':volltime=1 & gt $curloc
  21. elseif volltime = 1:
  22. '<center><img src="images/qwest/alter/gdksport.jpg"></center>'
  23. 'There was a break, and both teams have a rest.'
  24. if volleysostav = 1:
  25. 'You are sitting on the bench.'
  26. act 'Ask to play':
  27. cls
  28. gs 'stat'
  29. trenereparand = rand(0, 80)
  30. if trenerepa >= trenereparand:
  31. volleysostav = 2
  32. dom += 1
  33. poverkomand -= 100
  34. poverkomand += volleyboll
  35. 'The coach has agreed to release you on the field.'
  36. act 'further':volltime = 2 & gt $curloc
  37. else
  38. 'You have been asking the coach to play, but he shook his head and went on to explain the strategy of girls.'
  39. act 'further':volltime = 2 & gt $curloc
  40. end
  41. end
  42. end
  43. act 'further':volltime = 2 & gt $curloc
  44. elseif volltime=2:
  45. '<center><img src="images/qwest/alter/gdksport.jpg"></center>'
  46. 'Break is over and the team started to play again.'
  47. if volleysostav = 1:'You are sitting on the bench watching how your team plays.'
  48. if poverkomand > poverkomandV:
  49. volpoint += 1
  50. 'Your team plays with the team opponents.'
  51. if volleysostav = 2:
  52. if volpointv > 0:trenerepa += 10
  53. end
  54. elseif poverkomand = poverkomandV:
  55. volpoint += 1
  56. volpointv += 1
  57. 'The scales vary in one, then the other, obviously teams are equal on forces.'
  58. if volleysostav = 2:
  59. if volpointv > 0:trenerepa += 5
  60. end
  61. elseif poverkomand < poverkomandV:
  62. volpointv += 1
  63. 'Team beats rivals your team.'
  64. if volleysostav = 2:
  65. if volpoint > 0:trenerepa -= 10
  66. end
  67. end
  68. act 'further':volltime = 3 & gt $curloc
  69. elseif volltime = 3:
  70. volsesongame += 1
  71. '<center><img src="images/qwest/alter/gdksport.jpg"></center>'
  72. 'Final whistle.'
  73. if volpoint > volpointv:
  74. volsesonwin += 1
  75. 'Your team won.'
  76. elseif volpoint = volpointv:
  77. volsesondraw += 1
  78. 'draw.'
  79. elseif volpoint < volpointv:
  80. volsesonloss += 1
  81. 'Your team lost.'
  82. end
  83. if volleysostav = 2:volleysostav = 1 & poverkomand -= volleyboll & poverkomand += 100
  84. volpoint = 0
  85. volpointv = 0
  86. act 'Leave':gt 'gdksport'
  87. act 'Go to coaching':gt 'Voltrener'
  88. end
  89. --- volley ---------------------------------