kruchess.qsrc 4.2 KB

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