music_guitarlesson.qsrc 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # music_guitarlesson
  2. if $ARGS[0] = 'enquiry':
  3. if age < 18:
  4. ml_guitarlesson['lessoncost'] = 300
  5. else
  6. ml_guitarlesson['lessoncost'] = 500
  7. end
  8. 'You follow the directions from the receptionist and reach the room where the guitar lessons take place.
  9. The door is half open, and peeking in you see a dark haired man in his thirties sitting at a table, scribbling in a note book.'
  10. '"Uhm, hi, I''m looking for the guitar lessons?" you call out as you step into the room.
  11. The man looks up, then smiles as he sees you "Please, come in. I''m Viktor Zenchuk, and yes, this is where I teach guitar. Would you be interested?"'
  12. *nl
  13. 'You shift on your feet "I''m <<$pcs_firstname>>, and yes, I think. Can you please tell me a bit more?"'
  14. ' "Sure. I assume you are a beginner..." he looks at you, and you nod "Then obviously we would start at the basics. The instrument, chords, some basic theory. We would meet once a week, here.
  15. If you have a guitar, that''s great, if not, you can use mine. But you will really need to get a guitar to practice at home. The lessons cost 500 <b>₽</b>, but if you are under 18' +iif(vidage < 18, ', which I assume you are,', '')+ ' then it''s only 300 <b>₽</b>."'
  16. *nl
  17. 'He looks at you "So, <<$pcs_firstname>>, do you think you would be interested in taking lessons?"'
  18. npc_rel['ML1'] = 45
  19. ml_guitarlesson['enquired'] = 1
  20. act 'Sign up':
  21. 'You nod "Yes, I really would like to learn to play the guitar. When can we start?"'
  22. 'The teacher pushes the book closer to you "I will need your name here, and the school and class you attend, and also, I need to see your passport, to confirm you are under 18." You write down the information, and show him your passport.'
  23. '"Eccellent, now, what day would you like to come for your first lesson?"'
  24. 'Select your next lesson'
  25. '<a href="exec: ml_guitarlesson[''lessonday''] = 1 & $ml_guitarlesson[''lessonday''] = ''Monday'' & gt ''music_guitarlesson'', ''goodbye''">Monday</a>'
  26. '<a href="exec: ml_guitarlesson[''lessonday''] = 2 & $ml_guitarlesson[''lessonday''] = ''Tuesday'' & gt ''music_guitarlesson'', ''goodbye''">Tuesday</a>'
  27. '<a href="exec: ml_guitarlesson[''lessonday''] = 3 & $ml_guitarlesson[''lessonday''] = ''Wednesday'' & gt ''music_guitarlesson'', ''goodbye''">Wednesday</a>'
  28. '<a href="exec: ml_guitarlesson[''lessonday''] = 4 & $ml_guitarlesson[''lessonday''] = ''Thursday'' & gt ''music_guitarlesson'', ''goodbye''">Thursday</a>'
  29. '<a href="exec: ml_guitarlesson[''lessonday''] = 5 & $ml_guitarlesson[''lessonday''] = ''Friday'' & gt ''music_guitarlesson'', ''goodbye''">Friday</a>'
  30. '<a href="exec: ml_guitarlesson[''lessonday''] = 6 & $ml_guitarlesson[''lessonday''] = ''Saturday'' & gt ''music_guitarlesson'', ''goodbye''">Saturday</a>'
  31. '<a href="exec: ml_guitarlesson[''lessonday''] = 8 & $ml_guitarlesson[''lessonday''] = ''None'' & gt ''music_guitarlesson'', ''goodbye''">You don''t know yet</a>'
  32. end
  33. act 'You have to think':
  34. 'You hesitate for a moment "I would be, but I have to talk with my <<$npc_nickname[''A29'']>> first."'
  35. 'The teacher nods "That''s understandable. Just come in when you know and we can set up the lesson" He smiles at you "It was a pleasure to meet you, <<$pcs_firstname>>, and I''m looking forward to seeing you again."'
  36. act 'Leave': gt 'pav_commclubs'
  37. end
  38. end
  39. if $ARGS[0] = 'setlessonday':
  40. !! TODO: Write the proper scene here
  41. 'You meet the teacher and agree on your next lesson.'
  42. 'Select your next lesson'
  43. '<a href="exec: ml_guitarlesson[''lessonday''] = 1 & $ml_guitarlesson[''lessonday''] = ''Monday'' & gt ''music_guitarlesson'', ''goodbye''">Monday</a>'
  44. '<a href="exec: ml_guitarlesson[''lessonday''] = 2 & $ml_guitarlesson[''lessonday''] = ''Tuesday'' & gt ''music_guitarlesson'', ''goodbye''">Tuesday</a>'
  45. '<a href="exec: ml_guitarlesson[''lessonday''] = 3 & $ml_guitarlesson[''lessonday''] = ''Wednesday'' & gt ''music_guitarlesson'', ''goodbye''">Wednesday</a>'
  46. '<a href="exec: ml_guitarlesson[''lessonday''] = 4 & $ml_guitarlesson[''lessonday''] = ''Thursday'' & gt ''music_guitarlesson'', ''goodbye''">Thursday</a>'
  47. '<a href="exec: ml_guitarlesson[''lessonday''] = 5 & $ml_guitarlesson[''lessonday''] = ''Friday'' & gt ''music_guitarlesson'', ''goodbye''">Friday</a>'
  48. '<a href="exec: ml_guitarlesson[''lessonday''] = 6 & $ml_guitarlesson[''lessonday''] = ''Saturday'' & gt ''music_guitarlesson'', ''goodbye''">Saturday</a>'
  49. act 'Don''t arrange a lesson day': gt 'pav_commclubs'
  50. end
  51. if $ARGS[0] = 'firstLesson':
  52. !! TODO: Write a proper scene here
  53. gt 'music_guitarlesson', 'lesson'
  54. end
  55. if $ARGS[0] = 'lesson':
  56. !! TODO: Do the guitarlesson stuff here - a few different scenes maybe?
  57. money -= ml_guitarlesson['lessoncost']
  58. ml_guitarlesson['nextlesson'] = 0
  59. ml_guitarlesson['lessoncount'] += 1
  60. minut += 45
  61. npc_rel['ML1'] += 1
  62. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/guitarlesson/guitarteach_'+ rand(1,2) +'.jpg"></center>'
  63. if pcs_instrmusic < 15:
  64. gs 'exp_gain', 'instrmusic', rand(1,3)
  65. 'You spend the next 45 minutes learning the basics of the guitar and some chords. At the end of the lesson your fingers and hands hurt, but you feel that you have learned a lot.'
  66. else
  67. gs 'exp_gain', 'instrmusic', rand(1,3)
  68. 'You spend the next 45 minutes working on songs you have learned and improving some specific techniques.'
  69. end
  70. 'Select your next lesson'
  71. '<a href="exec: ml_guitarlesson[''lessonday''] = 1 & $ml_guitarlesson[''lessonday''] = ''Monday'' & gt ''music_guitarlesson'', ''goodbye''">Monday</a>'
  72. '<a href="exec: ml_guitarlesson[''lessonday''] = 2 & $ml_guitarlesson[''lessonday''] = ''Tuesday'' & gt ''music_guitarlesson'', ''goodbye''">Tuesday</a>'
  73. '<a href="exec: ml_guitarlesson[''lessonday''] = 3 & $ml_guitarlesson[''lessonday''] = ''Wednesday'' & gt ''music_guitarlesson'', ''goodbye''">Wednesday</a>'
  74. '<a href="exec: ml_guitarlesson[''lessonday''] = 4 & $ml_guitarlesson[''lessonday''] = ''Thursday'' & gt ''music_guitarlesson'', ''goodbye''">Thursday</a>'
  75. '<a href="exec: ml_guitarlesson[''lessonday''] = 5 & $ml_guitarlesson[''lessonday''] = ''Friday'' & gt ''music_guitarlesson'', ''goodbye''">Friday</a>'
  76. '<a href="exec: ml_guitarlesson[''lessonday''] = 6 & $ml_guitarlesson[''lessonday''] = ''Saturday'' & gt ''music_guitarlesson'', ''goodbye''">Saturday</a>'
  77. '<a href="exec: ml_guitarlesson[''lessonday''] = 8 & $ml_guitarlesson[''lessonday''] = ''None'' & gt ''music_guitarlesson'', ''goodbye''">You don''t know yet</a>'
  78. end
  79. if $ARGS[0] = 'goodbye':
  80. !! TODO: Kinda ok for now but needs a less awkward phrasing
  81. *clr & cla
  82. ml_guitarlesson['nextlesson'] = daystart + (ml_guitarlesson['lessonday'] + 7 - week)
  83. ml_guitarlesson['lessonhour'] = 15
  84. if ml_guitarlesson['lessonday'] < 8:
  85. gs 'music_guitarlesson', 'getdate'
  86. 'You agree to meet for your next lesson on <<$ml_guitarlesson[''lessonday'']>> at <<ml_guitarlesson[''lessonhour'']>>:00 next week, on <<newday>>/<<newmonth>>. The teacher enters it in the diary and you say goodbye before you leave.'
  87. killvar 'newday'
  88. killvar 'newmonth'
  89. else
  90. 'You are not sure when it would be a good day right now, so you agree to decide on a day later, you say goodbye and leave.'
  91. end
  92. act 'Leave': gt 'pav_commclubs'
  93. end
  94. if $ARGS[0] = 'advertisement':
  95. ml_guitarlesson['advertisement'] = 1
  96. '<center>As you pass by the community center door you see a new colour note screaming "Guitar Lessons!" in bright letters over the image of a guitar.<center>'
  97. *nl
  98. '<center><img src="images/locations/pavlovsk/community/guitarlesson/glessonad.jpg"></center>'
  99. act 'Leave': gt 'pav_commcenter'
  100. end
  101. if $ARGS[0] = 'getdate':
  102. newday = day + (ml_guitarlesson['lessonday'] + 7 - week)
  103. newmonth = month
  104. if (month = 1 or month = 3 or month = 5 or month = 7 or month = 8 or month = 10 or month = 12) and newday > 31:
  105. newday -= 31
  106. elseif month = 2:
  107. if (year mod 4 = 0):
  108. if newday > 29:
  109. newday -= 29
  110. newmonth += 1
  111. end
  112. else
  113. if newday > 28:
  114. newday -= 28
  115. newmonth += 1
  116. end
  117. end
  118. elseif newday > 30:
  119. newday -= 30
  120. newmonth += 1
  121. end
  122. end
  123. --- music_guitarlesson ---------------------------------