1
0

kruchess.qsrc 4.4 KB

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