1
0

kruchess.qsrc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # kruchess
  2. $metka = ''
  3. $loc = 'kruchess'
  4. frost = 0
  5. gs'stat'
  6. if night_mode = 1:
  7. fcolor = rgb(255, 255, 255)
  8. bcolor = rgb(0, 0, 0)
  9. lcolor = rgb(106, 90, 205)
  10. else
  11. fcolor = rgb(0, 0, 0)
  12. bcolor = rgb(255, 255, 255)
  13. lcolor = rgb(106, 90, 205)
  14. end
  15. '<center><b><font color = maroon>Chess Club</font></b></center>'
  16. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/kruchess.jpg"></center>'
  17. if hour > 20:
  18. 'Chess club is closed. The coach and some players are tidying away the boards and pieces.'
  19. act 'Leave':gt'gdkkru'
  20. else
  21. if week ! 6:
  22. 'The kids are sitting around playing practice games, while being watched over and helped by coach Genrikh.'
  23. act 'Spend an hour practicing with assistance from the coach':
  24. cla
  25. *nl
  26. chess_exp += rand(pcs_intel/20,pcs_intel/10)
  27. intel_exp += 1
  28. minut += 60
  29. '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.'
  30. act 'Return': gt 'kruchess'
  31. end
  32. act 'Talk to the other players':
  33. *clr & cla
  34. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/talk.jpg"></center>'
  35. minut += 30
  36. pcs_mood +=5
  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. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/talk.jpg"></center>'
  43. minut += 30
  44. chess_exp += 2
  45. npc_rel['A151'] += 5
  46. '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.'
  47. act 'Return': gt 'kruchess'
  48. end
  49. else
  50. 'On Saturdays, after a week''s training, club members spend the whole day playing against each other.'
  51. if chess_win < 5:
  52. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/play' + rand(1,2) + '.jpg"></center>'
  53. '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+.'
  54. act'Play':
  55. *clr & cla
  56. $chess_name='Vitalik'
  57. chessV=40
  58. gt'chessplay'
  59. end
  60. elseif chess_win < 10:
  61. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/play' + rand(1,2) + '.jpg"></center>'
  62. 'You get to play against Kostya, who recently advanced to rank 3 after passing 1400 ELO points.'
  63. act'Play':
  64. *clr & cla
  65. $chess_name='Kostya'
  66. chessV=100
  67. gt'chessplay'
  68. end
  69. elseif chess_win < 15:
  70. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/play' + rand(1,2) + '.jpg"></center>'
  71. 'You sit down to play Sergei. You recall that he is a rank 2 player with an ELO rating of more than 1600.'
  72. act'Play':
  73. *clr & cla
  74. $chess_name='Sergei'
  75. chessV=300
  76. gt'chessplay'
  77. end
  78. elseif chess_win < 20:
  79. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/play' + rand(1,2) + '.jpg"></center>'
  80. 'You are facing the chess coach. 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.'
  81. act'Play':
  82. *clr & cla
  83. $chess_name='Coach Genrikh G.'
  84. chessV=800
  85. gt'chessplay'
  86. end
  87. else
  88. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/chess/play' + rand(1,2) + '.jpg"></center>'
  89. 'You are facing 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.'
  90. act'Play':
  91. *clr & cla
  92. $chess_name='Evgeny'
  93. chessV=900
  94. gt'chessplay'
  95. end
  96. end
  97. end
  98. act 'Leave':gt'gdkkru'
  99. end
  100. --- kruchess ---------------------------------