music_buskingevents.qsrc 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # music_buskingevents
  2. if $ARGS[0] = 'busking':
  3. minut += ml_buskingtime
  4. gs 'exp_gain', 'instrmusic', rand(1,3)
  5. gs 'exp_gain', 'vokal', rand(1,3)
  6. ml_busking['busking_count'] += 1
  7. ml_busking['busking_time'] += ml_buskingtime
  8. if perform_lvl < 50: gs 'exp_gain', 'perform', 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 $loc, $loc_arg
  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. ml_time_mod = 5
  45. if week >= 5: ml_time_mod += 10
  46. if hour >= 17: ml_time_mod += 10
  47. ml_time_loc_mod = (ml_location_mod + ml_time_mod)
  48. ml_tipsmax = ((pcs_instrmusic + pcs_vokal + pcs_perform + ((hotcat-4)*35)) * ml_time_loc_mod)/50
  49. ml_tipsearned = (max(rand(ml_time_loc_mod,ml_tipsmax),0)*ml_buskingtime) / 60
  50. killvar 'ml_location_mod'
  51. killvar 'ml_time_mod'
  52. killvar 'ml_tipsmax'
  53. killvar 'ml_time_loc_mod'
  54. end
  55. if $ARGS[0] = 'anushka':
  56. !!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).
  57. npc_rel['A144'] += 2
  58. *nl
  59. 'As you stop playing and get ready to pack up you spot <<$npc_firstname[''A144'']>> standing not far from you, watching you quietly.'
  60. if npc_rel['A144'] > 60:
  61. '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>>."'
  62. elseif pcs_instrmusic > 35 and pcs_vokal > 35:
  63. '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.'
  64. else
  65. 'As she notices that you saw her, she just shakes her head with a smirk and walks off.'
  66. end
  67. act 'Finish': gt $loc, $loc_arg
  68. end
  69. if $ARGS[0] = 'lena_and_lera':
  70. !!TODO: Harassment scene
  71. pcs_mood -= 10
  72. *nl
  73. 'Lena and Lera harasses <<$pcs_nickname>>'
  74. act 'Finish': gt $loc, $loc_arg
  75. end
  76. --- music_buskingevents ---------------------------------