1
0

music_buskingevents.qsrc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # music_buskingevents
  2. if $ARGS[0] = 'busking':
  3. minut += ml_buskingtime
  4. instrmusic_exp += rand(1,3)
  5. vokal_exp += rand(1,3)
  6. ml_busking['busking_count'] += 1
  7. ml_busking['busking_time'] += ml_buskingtime
  8. if perform_lvl < 50: perform_exp += rand(1,3)
  9. *clr & cla
  10. gs 'music_buskingevents', 'calculate_tips', $ARGS[1]
  11. money += ml_tipsearned
  12. gs 'stat'
  13. dynamic '<<$ARGS[1]>>_music += rand(0,3)'
  14. ml_performance['total_time_performed'] += ml_buskingtime
  15. ml_performance['performed_minutes'] += ml_buskingtime
  16. ml_busking['busking_count'] += 1
  17. ml_busking['busking_time'] += ml_buskingtime
  18. ml_busking['total_earnings'] += ml_tipsearned
  19. !! TODO: More meat to the scene.
  20. '<center><img <<$set_imgh>> src="images/pc/activities/music/guitarf'+ rand(1,2) +'.jpg"></center>'
  21. '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.'
  22. !! act 'Finish': gt $curloc, 'start'
  23. !! Random events come here. The displayed actions depend on the event
  24. ml_rand_event = rand(0,100)
  25. if ml_rand_event <= 10 and $ARGS[1] = 'pav' and npc_rel['A144'] > 40: gs 'music_buskingevents', 'anushka'
  26. !! elseif ml_rand_event < 15 and $ARGS[1] = 'pav' and ((npc_rel['A20'] < 20 or npc_rel['A21'] < 20):
  27. !! 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.
  28. !! gs 'music_buskingevents', 'lena_and_lera', 1
  29. !! 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) ):
  30. !! gs 'music_buskingevents', 'lena_and_lera', 2
  31. else
  32. act 'Finish': gt $curloc, 'start'
  33. end
  34. end
  35. if $ARGS[0] = 'calculate_tips':
  36. if $ARGS[1] = 'city':
  37. ml_location_mod = 30
  38. elseif $ARGS[1] = 'pav':
  39. ml_location_mod = 0
  40. elseif $ARGS[1] = 'oldtown':
  41. ml_location_mod = 15
  42. end
  43. if week >= 5: ml_time_mod += 10
  44. if hour >= 17: ml_time_mod += 10
  45. ml_time_loc_mod = (ml_location_mod + ml_time_mod)
  46. ml_tipsmax = ((pcs_instrmusic + pcs_vokal + pcs_perform + ((hotcat-4)*35)) * ml_time_loc_mod)/5
  47. ml_tipsearned = (max(rand(ml_time_loc_mod,ml_tipsmax),0)*ml_buskingtime) / 60
  48. killvar 'ml_location_mod'
  49. killvar 'ml_time_mod'
  50. killvar 'ml_tipsmax'
  51. killvar 'ml_time_loc_mod'
  52. end
  53. if $ARGS[0] = 'anushka':
  54. !!TODO: A few scenarios: Friends, besties, neutral. Player is an awful, bad, ok, good musician. Anushka has seen PC play music before (either busking or they played together).
  55. npc_rel['A144'] += 2
  56. *nl
  57. 'As you stop playing and get ready to pack up you spot <<$npc_firstname['A144']>> standing not far from you, watching you quietly.'
  58. if npc_rel['A144'] > 60:
  59. 'As she notices that you saw her she grins and starts to walk up to you "I didn''t know you turned into a wandering minstrel, <<$pcs_nickname>>."'
  60. elseif pcs_instrmusic > 35 and pcs_vokal > 35:
  61. 'As she notices that you saw her, she nods "Not bad, <<$pcs_nickname>>. I have things to do though, see you at school." she says and walks off.'
  62. else
  63. 'As she notices that you saw her, she just shakes her head with a smirk and walks off.'
  64. end
  65. act 'Finish': gt $curloc, 'start'
  66. end
  67. if $ARGS[0] = 'lena_and_lera':
  68. !!TODO: Harassment scene
  69. mood -= 10
  70. *nl
  71. 'Lena and Lera harasses <<$pcs_nickname>>'
  72. act 'Finish': gt $curloc, 'start'
  73. end
  74. --- music_buskingevents ---------------------------------