1
0

music_buskingevents.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # music_buskingevents
  2. !! TODO: Add the vocal only scenario
  3. if $ARGS[0] = 'busking':
  4. ml_buskingtime = 60
  5. minut += ml_buskingtime
  6. gs 'exp_gain', 'instrmusic', rand(1,3)
  7. gs 'exp_gain', 'vokal', rand(1,3)
  8. ml_busking['busking_count'] += 1
  9. ml_busking['busking_time'] += ml_buskingtime
  10. if perform_lvl < 50: gs 'exp_gain', 'perform', rand(1,3)
  11. *clr & cla
  12. gs 'music_buskingevents', 'calculate_tips'
  13. money += ml_tipsearned
  14. gs 'stat'
  15. dynamic '<<$ARGS[1]>>_music += rand(0,3)'
  16. ml_performance['total_time_performed'] += ml_buskingtime
  17. ml_performance['performed_minutes'] += ml_buskingtime
  18. ml_busking['busking_count'] += 1
  19. ml_busking['busking_time'] += ml_buskingtime
  20. ml_busking['total_earnings'] += ml_tipsearned
  21. !! TODO: More meat to the scene.
  22. '<center><img <<$set_imgh>> src="images/pc/activities/music/guitarf'+ rand(1,2) +'.jpg"></center>'
  23. 'You start to play the songs you know, pushing your open guitar case forward a little in case people drop some change there.' + iif(ml_online['account'] = 1 and ml_online['active'] = 1, ' You also set up the sign with the link to your webprofile.', '') + ' After playing for an hour you have made <<ml_tipsearned>> <b>P</b> in tips.'
  24. !! act 'Finish': gt $curloc, 'start'
  25. !! Random events come here. The displayed actions depend on the event
  26. act 'Finish': gs 'music_buskingevents', 'finish'
  27. killvar 'ml_buskingtime'
  28. end
  29. !! TODO: Add the vocal only scenario
  30. if $ARGS[0] = 'calculate_tips':
  31. if $region = 'city':
  32. ml_location_mod = 30
  33. elseif $region = 'pav':
  34. ml_location_mod = 0
  35. elseif $region = 'pushkin':
  36. ml_location_mod = 15
  37. end
  38. ml_time_mod = 5
  39. if week >= 5: ml_time_mod += 10
  40. if hour >= 17: ml_time_mod += 10
  41. ml_time_loc_mod = (ml_location_mod + ml_time_mod)
  42. ml_tipsmax = ((pcs_instrmusic + pcs_vokal + pcs_perform + ((pcs_hotcat-4)*35)) * ml_time_loc_mod)/50
  43. ml_tipsearned = (max(rand(ml_time_loc_mod,ml_tipsmax),0)*ml_buskingtime) / 60
  44. killvar 'ml_location_mod'
  45. killvar 'ml_time_mod'
  46. killvar 'ml_tipsmax'
  47. killvar 'ml_time_loc_mod'
  48. end
  49. !! TODO: Add the vocal only scenario ??
  50. if $ARGS[0] = 'anushka':
  51. CLOSE ALL
  52. *clr & cla
  53. menu_off = 1
  54. gs 'stat'
  55. '<center><img <<$set_imgh>> src="images/pc/activities/music/guitarf'+ rand(1,2) +'.jpg"></center>'
  56. if pcs_instrmusic > 80:
  57. gs 'npc_relationship', 'modify', 'A144', 'love'
  58. if npc_rel['A144'] > 50:
  59. 'As you stop playing and get ready to pack up, you spot Anushka standing not far from you, watching you quietly.'
  60. 'When she notices that you saw her, she grins and walks over. "Wow, that was amazing, <<$pcs_nickname>>! You should come over and we can jam together some time."'
  61. 'The two of you talk for a few minutes about music before she says she needs to get going. She walks away with a smile and a wave.'
  62. elseif npc_rel['A144'] > 20:
  63. 'As you stop playing and get ready to pack up you spot Anushka standing not far from you, watching you quietly.'
  64. 'When she notices that you saw her, she grins and walks over. "Wow, that was amazing, <<$pcs_nickname>>!"'
  65. 'The two of you talk for a few minutes about music before she says she needs to get going. She walks away with a smile and a wave.'
  66. else
  67. 'You start losing yourself in the music, occasionally glancing up to look at the people passing by as several leave some rubles in your case. You then see some movement that attracts your attention and spot Anushka watching you play. She seems to have a look of surprise as she bobs her head slightly to the music. You know she doesn''t really like you, but maybe she at least respects your ability. When she sees you looking at her, she disappears into the crowd.'
  68. end
  69. elseif pcs_instrmusic > 60:
  70. gs 'npc_relationship', 'modify', 'A144', 'like'
  71. if npc_rel['A144'] > 50:
  72. 'As you stop playing and get ready to pack up, you spot Anushka standing not far from you, watching you quietly.'
  73. 'When she notices that you saw her, she grins and walks over. "That was pretty damn good, <<$pcs_nickname>>. You should come over and we can jam together some time."'
  74. 'The two of you talk for a few minutes about music before she says she needs to get going. She walks away with a smile and a wave.'
  75. elseif npc_rel['A144'] > 20:
  76. 'As you stop playing and get ready to pack up, you spot Anushka standing not far from you, watching you quietly.'
  77. 'When she notices that you saw her, she grins and walks over. "That was pretty damn good, <<$pcs_nickname>>."'
  78. 'The two of you talk for a few minutes about music before she says she needs to get going. She walks away with a smile and a wave.'
  79. else
  80. 'You start losing yourself in the music, occasionally glancing up to look at the people passing by as some leave some rubles in your case. You then see some movement that attracts your attention and spot Anushka watching you play. She seems to have a look of mild surprise and respect? You know she doesn''t really like you, but maybe she at least respects your ability. When she sees you looking at her, she disappears into the crowd.'
  81. end
  82. elseif pcs_instrmusic > 40:
  83. gs 'npc_relationship', 'modify', 'A144', 'like'
  84. if npc_rel['A144'] > 50:
  85. 'As you stop playing and get ready to pack up, you spot Anushka standing not far from you, watching you quietly.'
  86. 'When she notices that you saw her, she smiles and walks over. "I didn''t know you had turned into a wandering minstrel, <<$pcs_nickname>>. Not bad, not bad at all. You should come over sometime and we can play together. I can give you some tips if you like?"'
  87. 'The two of you talk for a few minutes about music before she says she needs to get going. She walks away with a smile and a wave.'
  88. elseif npc_rel['A144'] > 20:
  89. 'As you stop playing and get ready to pack up, you spot Anushka standing not far from you, watching you quietly.'
  90. 'When she notices that you saw her, she smiles and walks over. "I didn''t know you had turned into a wandering minstrel, <<$pcs_nickname>>. Not bad, not bad at all."'
  91. 'The two of you talk for a few minutes about music before she says she needs to get going. She walks away with a smile and a wave.'
  92. else
  93. 'You start losing yourself in the music, occasionally glancing up to look at the people passing by as some leave some rubles in your case. You then see some movement that attracts your attention and spot Anushka watching you play. She seems to have a look of mild surprise and maybe even mild approval? You know she doesn''t really like you, but maybe she at least respects your ability. When she sees you looking at her, she disappears into the crowd.'
  94. end
  95. elseif pcs_instrmusic > 20:
  96. if npc_rel['A144'] > 50:
  97. 'As you stop playing and get ready to pack up, you spot Anushka standing not far from you, watching you quietly.'
  98. 'When she notices that you saw her, she smiles and walks over. "Not bad, <<$pcs_nickname>>, not bad. I''ve heard better, but also heard worse too. You should come over sometime and we can play together. I can teach you a few things if you like?"'
  99. 'The two of you talk for a few minutes about music before she says she needs to get going. She walks away with a smile and a wave.'
  100. elseif npc_rel['A144'] > 20:
  101. 'As you stop playing and get ready to pack up, you spot Anushka standing not far from you, watching you quietly.'
  102. 'When she notices that you saw her, she smiles and walks over. "Not bad, <<$pcs_nickname>>, not bad. I''ve heard better, but also heard worse too."'
  103. 'The two of you talk for a few minutes about music before she says she needs to get going. She walks away with a smile and a wave.'
  104. else
  105. 'You start losing yourself in the music, occasionally glancing up to look at the people passing by as a few leave some rubles in your case. You then see some movement that attracts your attention and spot Anushka watching you play. She seems to have a look of disdain on her face; you know she doesn''t really like you, but had hoped she would respect your ability at least. When she sees you looking at her, she scoffs before walking away.'
  106. end
  107. else
  108. gs 'npc_relationship', 'modify', 'A144', 'dislike'
  109. if npc_rel['A144'] > 50:
  110. 'As you stop playing and get ready to pack up, you spot Anushka standing not far from you, watching you quietly with a pained expression on her face.'
  111. 'When she notices that you saw her, she forces a smile to her face. "You need to practice. A lot. Honestly, I wouldn''t even be playing in public with that lack of skill."'
  112. 'You frown. "I''m trying!"'
  113. 'She sighs. "Stop by some time and I can teach you the basics you need to know."'
  114. 'The two of you talk for a few minutes about music before she says she needs to get going. She walks away with a hint of disappointment on her face.'
  115. elseif npc_rel['A144'] > 20:
  116. 'As you stop playing and get ready to pack up, you spot Anushka standing not far from you, watching you quietly with a pained expression on her face.'
  117. 'When she notices that you saw her, she forces a smile to her face. "My god, that physically hurt my soul it was so bad! I''ve heard two cats fucking that sounded more pleasant than that!"'
  118. 'You frown. "I''m trying! I''ve been practicing!"'
  119. 'She shakes her head slightly. "Well you need to practice some more. Honestly you shouldn''t even play in public until you''re a lot better than that."'
  120. 'The two of you talk for a few minutes about music before she says she needs to get going. She walks away clearly a little disappointed in your performance.'
  121. else
  122. 'You start losing yourself in the music, occasionally glancing up to look at the people passing by. Most seem to hurry by to try and get away from the racket you''re making as you see some movement that attracts your attention and you spot Anushka watching you play. She seems to have a look of utter pain and disdain on her face; she clearly doesn''t approve of your lack of musical talent. When she sees you looking at her, she scoffs and shakes her head in disgust before walking away.'
  123. end
  124. end
  125. act 'Finish': gs 'music_actions', 'finish'
  126. end
  127. if $ARGS[0] = 'lena_and_lera':
  128. !!TODO: Harassment scene
  129. pcs_mood -= 10
  130. *nl
  131. 'Lena and Lera harasses <<$pcs_nickname>>'
  132. act 'Finish': gs 'music_actions', 'finish'
  133. end
  134. if $ARGS[0] = 'finish':
  135. ml_rand_event = rand(0,100)
  136. if ml_rand_event <= 10 and $region = 'pav' and npc_rel['A144'] > 40:
  137. gs 'music_buskingevents', 'anushka'
  138. elseif ml_rand_event <= 30 and $region = 'pav' and ml_delparcoQW['Stage'] = 0:
  139. gs 'music_gigstarts', 'zariyah_passing_by'
  140. !! elseif ml_rand_event < 15 and $ARGS[1] = 'pav' and ((npc_rel['A20'] < 20 or npc_rel['A21'] < 20):
  141. !! TODO: if the gopniks don''t like the PC and/or her music is awful, there is a chance that Lena and Lera harasses her.
  142. !! gs 'music_buskingevents', 'lena_and_lera', 1
  143. !! elseif ml_rand_event < 15 and $ARGS[1] = 'pav' and ( (npc_rel['A20'] < 40 or npc_rel['A21'] < 40) and (pcs_instrmusic < 30 or pcs_perform < 30 or pcs_vokal < 30) ):
  144. !! gs 'music_buskingevents', 'lena_and_lera', 2
  145. else
  146. gs 'music_actions', 'finish'
  147. end
  148. end
  149. --- music_buskingevents ---------------------------------