kruchess 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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/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 practise games and watched over and helped by coach Genrikh G.'
  23. act 'Spend an hour practising with assistance from the coach':
  24. chess_exp += rand(pcs_intel/20,pcs_intel/10)
  25. intel_exp += 1
  26. minut += 60
  27. gt 'kruchess'
  28. end
  29. else
  30. 'On Saturdays, after a week''s training, club members spend the whole day playing against each other.'
  31. if chess_win<5:
  32. '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+.'
  33. act'Play':
  34. cls
  35. $chess_name='Vitalik'
  36. chessV=40
  37. gt'chessplay'
  38. end
  39. end
  40. if chess_win>=5 and chess_win<10:
  41. 'You get to play against Kostya, who recently advanced to rank 3 after passing 1400 ELO points.'
  42. act'Play':
  43. cls
  44. $chess_name='Kostya'
  45. chessV=100
  46. gt'chessplay'
  47. end
  48. end
  49. if chess_win>=10 and chess_win<15:
  50. 'You sit down to play Sergei. You recall that he is a rank 2 player with an ELO rating of more than 1600.'
  51. act'Play':
  52. cls
  53. $chess_name='Sergei'
  54. chessV=300
  55. gt'chessplay'
  56. end
  57. end
  58. if chess_win>=15:
  59. 'You are facing the chess coach. At his peak he achieved an ELO ranking of over 2000, and despite his skills declining with age he still plays at the level of a rank 1 player.'
  60. act'Play':
  61. cls
  62. $chess_name='Coach Genrikh G.'
  63. chessV=800
  64. gt'chessplay'
  65. end
  66. end
  67. end
  68. act 'Leave':gt'gdkkru'
  69. end
  70. --- kruchess ---------------------------------