music_buskingevents.qsrc 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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:
  26. gs 'music_buskingevents', 'anushka'
  27. !! elseif ml_rand_event < 15 and $ARGS[1] = 'pav' and ((npc_rel['A20'] < 20 or npc_rel['A21'] < 20):
  28. !! 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.
  29. !! gs 'music_buskingevents', 'lena_and_lera', 1
  30. !! 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) ):
  31. !! gs 'music_buskingevents', 'lena_and_lera', 2
  32. else
  33. act 'Finish': gt $curloc, 'start'
  34. end
  35. end
  36. if $ARGS[0] = 'calculate_tips':
  37. if $ARGS[1] = 'city':
  38. ml_location_mod = 30
  39. elseif $ARGS[1] = 'pav':
  40. ml_location_mod = 0
  41. elseif $ARGS[1] = 'oldtown':
  42. ml_location_mod = 15
  43. end
  44. if week >= 5: ml_time_mod += 10
  45. if hour >= 17: ml_time_mod += 10
  46. ml_time_loc_mod = (ml_location_mod + ml_time_mod)
  47. ml_tipsmax = ((pcs_instrmusic + pcs_vokal + pcs_perform + ((hotcat-4)*35)) * ml_time_loc_mod)/5
  48. ml_tipsearned = (max(rand(ml_time_loc_mod,ml_tipsmax),0)*ml_buskingtime) / 60
  49. killvar 'ml_location_mod'
  50. killvar 'ml_time_mod'
  51. killvar 'ml_tipsmax'
  52. killvar 'ml_time_loc_mod'
  53. end
  54. if $ARGS[0] = 'anushka':
  55. !!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).
  56. npc_rel['A144'] += 2
  57. *nl
  58. 'As you stop playing and get ready to pack up you spot <<$npc_firstname[''A144'']>> standing not far from you, watching you quietly.'
  59. if npc_rel['A144'] > 60:
  60. '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>>."'
  61. elseif pcs_instrmusic > 35 and pcs_vokal > 35:
  62. '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.'
  63. else
  64. 'As she notices that you saw her, she just shakes her head with a smirk and walks off.'
  65. end
  66. act 'Finish': gt $curloc, 'start'
  67. end
  68. if $ARGS[0] = 'lena_and_lera':
  69. !!TODO: Harassment scene
  70. mood -= 10
  71. *nl
  72. 'Lena and Lera harasses <<$pcs_nickname>>'
  73. act 'Finish': gt $curloc, 'start'
  74. end
  75. --- music_buskingevents ---------------------------------