1
0

kruchess 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # kruchess
  2. $metka = ''
  3. $loc = 'kruchess'
  4. frost = 0
  5. gs'stat'
  6. FColor = RGB(0,0,0)
  7. BColor = RGB(255,255,255)
  8. LColor = RGB(106,90,205)
  9. '<center><b><font color = maroon>Chess Club</font></b></center>'
  10. '<center><img src="images/locations/pavlovsk/community/kruchess.jpg"></center>'
  11. if hour > 20:
  12. 'Chess club is closed. The coach and some players are tidying away the boards and pieces.'
  13. act 'Leave':gt'gdkkru'
  14. else
  15. if week ! 6:
  16. 'The kids are sitting around playing practise games and watched over and helped by coach Genrikh G.'
  17. act 'Spend an hour practising with assistance from the coach':
  18. chess_exp += rand(pcs_intel/20,pcs_intel/10)
  19. intel_exp += 1
  20. minut += 60
  21. gt 'kruchess'
  22. end
  23. else
  24. 'On Saturdays, after a week''s training, club members spend the whole day playing against each other.'
  25. if chess_win<5:
  26. '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+.'
  27. act'Play':
  28. cls
  29. $chess_name='Vitalik'
  30. chessV=40
  31. gt'chessplay'
  32. end
  33. end
  34. if chess_win>=5 and chess_win<10:
  35. 'You get to play against Kostya, who recently advanced to rank 3 after passing 1400 ELO points.'
  36. act'Play':
  37. cls
  38. $chess_name='Kostya'
  39. chessV=100
  40. gt'chessplay'
  41. end
  42. end
  43. if chess_win>=10 and chess_win<15:
  44. 'You sit down to play Sergei. You recall that he is a rank 2 player with an ELO rating of more than 1600.'
  45. act'Play':
  46. cls
  47. $chess_name='Sergei'
  48. chessV=300
  49. gt'chessplay'
  50. end
  51. end
  52. if chess_win>=15:
  53. '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.'
  54. act'Play':
  55. cls
  56. $chess_name='Coach Genrikh G.'
  57. chessV=800
  58. gt'chessplay'
  59. end
  60. end
  61. end
  62. act 'Leave':gt'gdkkru'
  63. end
  64. --- kruchess ---------------------------------