kruchess.qsrc 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # kruchess
  2. $metka = ''
  3. $loc = 'kruchess'
  4. frost = 0
  5. $menu_loc = 'kruchess'
  6. $menu_arg = ''
  7. menu_off = 0
  8. gs'stat'
  9. gs 'themes', 'indoors'
  10. '<center><b><font color = maroon>Chess Club</font></b></center>'
  11. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/kruchess.jpg"></center>'
  12. *nl
  13. if hour > 20:
  14. 'Chess club is closed. The coach and some players are tidying away the boards and pieces.'
  15. act 'Leave':gt'gdkkru'
  16. else
  17. if week ! 6:
  18. 'The kids are sitting around playing practice games, while being watched over and helped by Coach Genrikh.'
  19. act 'Spend an hour practicing with assistance from the coach':
  20. *clr & cla
  21. chess_exp += rand(0,1)
  22. intel_exp += rand(0,1)
  23. minut += 60
  24. gs 'stat'
  25. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/play' + rand(1,2) + '.jpg"></center>'
  26. *nl
  27. 'You spend the next hour practicing against the other players with the coach walking around and stopping to help out or point things out. You learn a little every time. You also discuss the various chess openings and which ones are the best, which can often get lively.'
  28. act 'Return': gt 'kruchess'
  29. end
  30. act 'Talk to the other players':
  31. *clr & cla
  32. minut += 30
  33. pcs_mood += 5
  34. gs 'stat'
  35. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/talk.jpg"></center>'
  36. *nl
  37. 'You take a break from playing and talk to a couple of your fellow chess enthusiasts. After first focusing on chess for a while, the conversation drifts off to other topics. You have a good time chatting and relaxing.'
  38. act 'Return': gt 'kruchess'
  39. end
  40. act 'Talk to Evgeny Kuznetsov':
  41. *clr & cla
  42. minut += 30
  43. chess_exp += 2
  44. npc_rel['A151'] += 5
  45. gs 'stat'
  46. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/head/35.jpg"></center>'
  47. *nl
  48. 'You sit down next to Evgeny to talk. At first you try to catch his interest with ordinary things; he barely even responds to you, preoccupied playing against himself. Then you bring up a recent opening you have been trying and he perks up. Soon the two of you are talking about various openings and he shares with you some of his favorite ones and how he moves them to the mid game. You learn a bit about chess and feel like you are better friends with Evgeny.'
  49. act 'Return': gt 'kruchess'
  50. end
  51. else
  52. 'On Saturdays, after a week''s training, club members spend the whole day playing against each other.'
  53. *nl
  54. if chess_win < 5:
  55. 'You have beaten Vitalik '+str(chess_win)+' times.'
  56. elseif chess_win >= 5 and chess_win < 10:
  57. 'You have beaten Vitalik 5 times. You cannot play against him anymore.'
  58. 'You have beaten Kostya '+str(chess_win-5)+' times.'
  59. elseif chess_win >= 10 and chess_win < 15:
  60. 'You have beaten Vitalik 5 times. You cannot play against him anymore.'
  61. 'You have beaten Kostya 5 times. You cannot play against him anymore.'
  62. 'You have beaten Sergei '+str(chess_win-10)+' times.'
  63. elseif chess_win >= 15 and chess_win < 20:
  64. 'You have beaten Vitalik 5 times. You cannot play against him anymore.'
  65. 'You have beaten Kostya 5 times. You cannot play against him anymore.'
  66. 'You have beaten Sergei 5 times. You cannot play against him anymore.'
  67. 'You have beaten Coach Genrikh '+str(chess_win-15)+' times.'
  68. elseif chess_win >= 20:
  69. 'You have beaten Vitalik 5 times. You cannot play against him anymore.'
  70. 'You have beaten Kostya 5 times. You cannot play against him anymore.'
  71. 'You have beaten Sergei 5 times. You cannot play against him anymore.'
  72. 'You have beaten Coach Genrikh 5 times. You cannot play against him anymore.'
  73. 'You have beaten Evgeny Kuznetsov '+str(chess_win-20)+' times. He is the only opponent left you can challenge.'
  74. end
  75. 'You have won a total of '+str(chess_win)+' chess matches.'
  76. *nl
  77. if chess_win < 5:
  78. 'You are paired against Vitalik, the youngest boy in the club. Despite his age he has already achieved rank 4, the lowest official chess rank corresponding to an ELO rating of 1000+.'
  79. act 'Play chess with Vitalik':
  80. *clr & cla
  81. $chess_name='Vitalik'
  82. chessV=10
  83. gt 'chessplay'
  84. end
  85. elseif chess_win < 10:
  86. 'You get to play against Kostya, who recently advanced to rank 3 after passing 1400 ELO points.'
  87. act 'Play chess with Kostya':
  88. *clr & cla
  89. $chess_name='Kostya'
  90. chessV=30
  91. gt 'chessplay'
  92. end
  93. elseif chess_win < 15:
  94. 'You sit down to play Sergei. You recall that he is a rank 2 player with an ELO rating of more than 1600.'
  95. act 'Play chess with Sergei':
  96. *clr & cla
  97. $chess_name='Sergei'
  98. chessV=50
  99. gt 'chessplay'
  100. end
  101. elseif chess_win < 20:
  102. 'You are facing Coach Genrikh. At his peak he achieved an ELO ranking of just over 2000, and despite his skills declining with age he still plays at the level of a rank 1 player.'
  103. act 'Play chess with Coach Genrikh':
  104. *clr & cla
  105. $chess_name='Coach Genrikh'
  106. chessV=70
  107. gt 'chessplay'
  108. end
  109. elseif chess_win >= 20:
  110. 'You are challenging Evgeny Kuznetsov. He has already won the regional championship twice and placed well at the nationals each year he has attended. He is already rated above a 2200 in the ELO rankings.'
  111. act 'Play chess with Evgeny':
  112. *clr & cla
  113. $chess_name='Evgeny'
  114. chessV=90
  115. gt 'chessplay'
  116. end
  117. end
  118. end
  119. act 'Leave':gt 'gdkkru'
  120. end
  121. --- kruchess ---------------------------------