1
0

music_guitarlesson.qsrc 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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 rubels, but if you are under 18' +iif(vidage < 18, ', which I assume you are,', '')+ ' then it''s only 300 rubels."'
  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. end
  50. if $ARGS[0] = 'firstLesson':
  51. !! TODO: Write a proper scene here
  52. gt 'music_guitarlesson', 'lesson'
  53. end
  54. if $ARGS[0] = 'lesson':
  55. !! TODO: Do the guitarlesson stuff here - a few different scenes maybe?
  56. money -= ml_guitarlesson['lessoncost']
  57. ml_guitarlesson['nextlesson'] = 0
  58. ml_guitarlesson['lessoncount'] += 1
  59. minut += 45
  60. npc_rel['ML1'] += 1
  61. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/guitarlesson/guitarteach_'+ rand(1,2) +'.jpg"></center>'
  62. if pcs_instrmusic < 15:
  63. instrmusic_exp += rand(1,3)
  64. '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.'
  65. else
  66. instrmusic_exp += rand(1,3)
  67. 'You spend the next 45 minutes working on songs you have learned and improving some specific techniques.'
  68. end
  69. 'Select your next lesson'
  70. '<a href="exec: ml_guitarlesson[''lessonday''] = 1 & $ml_guitarlesson[''lessonday''] = ''Monday'' & gt ''music_guitarlesson'', ''goodbye''">Monday</a>'
  71. '<a href="exec: ml_guitarlesson[''lessonday''] = 2 & $ml_guitarlesson[''lessonday''] = ''Tuesday'' & gt ''music_guitarlesson'', ''goodbye''">Tuesday</a>'
  72. '<a href="exec: ml_guitarlesson[''lessonday''] = 3 & $ml_guitarlesson[''lessonday''] = ''Wednesday'' & gt ''music_guitarlesson'', ''goodbye''">Wednesday</a>'
  73. '<a href="exec: ml_guitarlesson[''lessonday''] = 4 & $ml_guitarlesson[''lessonday''] = ''Thursday'' & gt ''music_guitarlesson'', ''goodbye''">Thursday</a>'
  74. '<a href="exec: ml_guitarlesson[''lessonday''] = 5 & $ml_guitarlesson[''lessonday''] = ''Friday'' & gt ''music_guitarlesson'', ''goodbye''">Friday</a>'
  75. '<a href="exec: ml_guitarlesson[''lessonday''] = 6 & $ml_guitarlesson[''lessonday''] = ''Saturday'' & gt ''music_guitarlesson'', ''goodbye''">Saturday</a>'
  76. '<a href="exec: ml_guitarlesson[''lessonday''] = 8 & $ml_guitarlesson[''lessonday''] = ''None'' & gt ''music_guitarlesson'', ''goodbye''">You don''t know yet</a>'
  77. end
  78. if $ARGS[0] = 'goodbye':
  79. !! TODO: Kinda ok for now but needs a less awkward phrasing
  80. *clr & cla
  81. ml_guitarlesson['nextlesson'] = daystart + (ml_guitarlesson['lessonday'] + 7 - week)
  82. ml_guitarlesson['lessonhour'] = 15
  83. if ml_guitarlesson['lessonday'] < 8:
  84. gs 'music_guitarlesson', 'getdate'
  85. '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 good bye before you leave.'
  86. killvar 'newday'
  87. killvar 'newmonth'
  88. else
  89. 'You are not sure when it would be a good day right now, so you agree to decide on a day later, you say good bye and leave.'
  90. end
  91. act 'Leave': gt 'pav_commclubs'
  92. end
  93. if $ARGS[0] = 'advertisement':
  94. ml_guitarlesson['advertisement'] = 1
  95. '<center>As you pass by the community centre door you see a new colour note screaming "Guitar Lessons!" in bright letters over the image of a guitar.<center>'
  96. *nl
  97. '<center><img src="images/locations/pavlovsk/community/guitarlesson/glessonad.jpg"></center>'
  98. act 'Leave': gt 'pav_commcenter'
  99. end
  100. if $ARGS[0] = 'getdate':
  101. newday = day + (ml_guitarlesson['lessonday'] + 7 - week)
  102. newmonth = month
  103. if (month = 1 or month = 3 or month = 5 or month = 7 or month = 8 or month = 10 or month = 12) and newday > 31:
  104. newday -= 31
  105. elseif month = 2:
  106. if (year mod 4 = 0):
  107. if newday > 29:
  108. newday -= 29
  109. newmonth += 1
  110. end
  111. else
  112. if newday > 28:
  113. newday -= 28
  114. newmonth += 1
  115. end
  116. end
  117. elseif newday > 30:
  118. newday -= 30
  119. newmonth += 1
  120. end
  121. end
  122. --- music_guitarlesson ---------------------------------