kruchess.qsrc 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. # kruchess
  2. !2021/05/02
  3. $loc_arg = ''
  4. $loc = 'kruchess'
  5. frost = 0
  6. $menu_loc = 'kruchess'
  7. $menu_arg = ''
  8. menu_off = 0
  9. gs'stat'
  10. gs 'themes', 'indoors'
  11. '<center><b><font color = maroon>Chess Club</font></b></center>'
  12. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/kruchess.jpg"></center>'
  13. *nl
  14. if hour > 20:
  15. 'Chess club is closed. The coach and some players are tidying away the boards and pieces.'
  16. act 'Leave':gt'pav_commclubs'
  17. else
  18. if week ! 6:
  19. 'The kids are sitting around playing practice games, while being watched over and helped by Coach Genrikh.'
  20. act 'Spend an hour practicing with assistance from the coach':
  21. *clr & cla
  22. gs 'exp_gain', 'chess', rand(0,1)
  23. gs 'exp_gain', 'intel', rand(0,1)
  24. minut += 60
  25. gs 'stat'
  26. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/play' + rand(1,2) + '.jpg"></center>'
  27. *nl
  28. '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.'
  29. act 'Return': gt 'kruchess'
  30. end
  31. act 'Talk to the other players':
  32. *clr & cla
  33. minut += 30
  34. pcs_mood += 5
  35. gs 'stat'
  36. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/talk.jpg"></center>'
  37. *nl
  38. '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.'
  39. act 'Return': gt 'kruchess'
  40. end
  41. act 'Talk to Evgeny Kuznetsov':
  42. *clr & cla
  43. minut += 30
  44. gs 'exp_gain', 'chess', 2
  45. npc_rel['A151'] += 5
  46. gs 'stat'
  47. '<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big151.jpg"></center>'
  48. *nl
  49. '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.'
  50. act 'Return': gt 'kruchess'
  51. end
  52. else
  53. 'On Saturdays, after a week''s training, club members spend the whole day playing against each other.'
  54. *nl
  55. if chess_win < 5:
  56. 'You have beaten Vitalik '+str(chess_win)+' times.'
  57. elseif chess_win >= 5 and chess_win < 10:
  58. 'You have beaten Vitalik 5 times. You cannot play against him anymore.'
  59. 'You have beaten Kostya '+str(chess_win-5)+' times.'
  60. elseif chess_win >= 10 and chess_win < 15:
  61. 'You have beaten Vitalik 5 times. You cannot play against him anymore.'
  62. 'You have beaten Kostya 5 times. You cannot play against him anymore.'
  63. 'You have beaten Sergei '+str(chess_win-10)+' times.'
  64. elseif chess_win >= 15 and chess_win < 20:
  65. 'You have beaten Vitalik 5 times. You cannot play against him anymore.'
  66. 'You have beaten Kostya 5 times. You cannot play against him anymore.'
  67. 'You have beaten Sergei 5 times. You cannot play against him anymore.'
  68. 'You have beaten Coach Genrikh '+str(chess_win-15)+' times.'
  69. elseif chess_win >= 20:
  70. 'You have beaten Vitalik 5 times. You cannot play against him anymore.'
  71. 'You have beaten Kostya 5 times. You cannot play against him anymore.'
  72. 'You have beaten Sergei 5 times. You cannot play against him anymore.'
  73. 'You have beaten Coach Genrikh 5 times. You cannot play against him anymore.'
  74. 'You have beaten Evgeny Kuznetsov '+str(chess_win-20)+' times. He is the only opponent left you can challenge.'
  75. end
  76. 'You have won a total of '+str(chess_win)+' chess matches.'
  77. *nl
  78. if chess_win < 5:
  79. '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+.'
  80. act 'Play chess with Vitalik':
  81. *clr & cla
  82. $chess_name='Vitalik'
  83. chessV=10
  84. gt 'chessplay'
  85. end
  86. elseif chess_win < 10:
  87. 'You get to play against Kostya, who recently advanced to rank 3 after passing 1400 ELO points.'
  88. act 'Play chess with Kostya':
  89. *clr & cla
  90. $chess_name='Kostya'
  91. chessV=30
  92. gt 'chessplay'
  93. end
  94. elseif chess_win < 15:
  95. 'You sit down to play Sergei. You recall that he is a rank 2 player with an ELO rating of more than 1600.'
  96. act 'Play chess with Sergei':
  97. *clr & cla
  98. $chess_name='Sergei'
  99. chessV=50
  100. gt 'chessplay'
  101. end
  102. elseif chess_win < 20:
  103. '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.'
  104. act 'Play chess with Coach Genrikh':
  105. *clr & cla
  106. $chess_name='Coach Genrikh'
  107. chessV=70
  108. gt 'chessplay'
  109. end
  110. elseif chess_win >= 20:
  111. '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.'
  112. act 'Play chess with Evgeny':
  113. *clr & cla
  114. $chess_name='Evgeny'
  115. chessV=90
  116. gt 'chessplay'
  117. end
  118. end
  119. end
  120. act 'Leave':gt 'pav_commclubs'
  121. end
  122. --- kruchess ---------------------------------