1
0

music_onlinemusic.qsrc 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. # music_onlinemusic
  2. if $ARGS[0] = 'setupAccount':
  3. ml_online['account'] = 1
  4. 'You log into Youtube to set up a channel for your music. You can upload videos or live stream, but you will need to open a bank account if you want to receive any tips from viewers of your stream.'
  5. !! TODO: Ask for a screen name?
  6. act 'Leave': gt $loc, 'start'
  7. end
  8. if $ARGS[0] = 'liveStream':
  9. internet -= 1
  10. if komp = 0 or webcamera = 0:
  11. !! TODO: Much, much better scene.
  12. minut += 60
  13. ml_maxsuperchats = ( pav_music/2 + city_music + oldtown_music/2 + village_music/2 + global_performer + pcs_apprnc )
  14. ml_superchats = rand( 0, ml_maxsuperchats)
  15. ml_famebase = ( pcs_instrmusic + pcs_vokal + pcs_perform + ( (hotcat-5) * 20 ) ) / 100
  16. pav_music += rand(0, ml_famebase)
  17. city_music += rand(0, ml_famebase)
  18. instrmusic_exp += rand(0,2)
  19. vokal_exp += rand(0,2)
  20. perform_exp += rand(0,3)
  21. karta += superchats
  22. ml_online['livestreamcount'] += 1
  23. ml_performed_minutes += 60
  24. '<center><img <<$set_imgh>> src="images/pc/activities/music/gomixer_hero.jpg"/></center>'
  25. 'You set up your phone on a little tri-pod and log into your account. After settling down comfortably, you start to stream.'
  26. 'Your fans tipped you <<superchats>> rubels for your performance.'
  27. if bankAccount = 0:
  28. 'You need to open a bank account before you can receive the money.'
  29. end
  30. end
  31. act 'Stop the stream': gt $loc, 'start'
  32. end
  33. if $ARGS[0] = 'recordSong':
  34. !! TODO: Write a scene. It should describe that a song is recorded and then edited properly before uploading it to the net.
  35. '<center><img <<$set_imgh>> src="images/pc/activites/music/phonerecording.jpg"/></center>'
  36. 'You set up your phone and settle down comfortably to record a song. After several tries you finally end up with a version you are content with and upload it to your account.'
  37. 'As you don''t have a computer you can''t really do much with the songs quality. But then you have seen quite a few people work with only with their phones. Like Ling Ling.'
  38. minut += 30
  39. instrmusic_exp += rand(1,4)
  40. vokal_exp += rand(1,4)
  41. perform_exp += rand(1,3)
  42. ml_performed_minutes += 15
  43. ml_onlinesong_hotcat[ml_onlinesongcount] = hotcat
  44. ml_onlinesong_skilllevel[ml_onlinesongcount] = pcs_instrmusic + pcs_vokal + pcs_perform
  45. ml_onlinesong_lastcalcday[ml_onlinesongcount] = daystart
  46. ml_onlinesong_freshness[ml_onlinesongcount] = pcs_instrmusic + pcs_vokal + pcs_perform + ((hotcat-4)*10)
  47. ml_onlinesong_uploaded[ml_onlinesongcount] = 0
  48. ml_uploadablemusic += 1
  49. ml_onlinesongcount += 1
  50. if ml_online['account'] = 1 and internet > 0:
  51. if pcs_inhib < 30:
  52. if pcs_inhib < 10:
  53. $diff = 'hard'
  54. elseif pcs_inhib < 20:
  55. $diff = 'medium'
  56. else
  57. $diff = 'easy'
  58. end
  59. gs 'willpower', 'skill', 'self', $diff
  60. will_cost = (will_cost * 2) - (pcs_perform)
  61. if will_cost <= pcs_willpwr:
  62. act 'Upload music (<<will_cost>> Willpower)': gt 'music_onlinemusic', 'uploadmusic'
  63. else
  64. act 'Upload music (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  65. end
  66. else
  67. act 'Upload music': gt 'music_onlinemusic', 'uploadmusic'
  68. end
  69. else
  70. act 'Leave': gt $loc, 'start'
  71. end
  72. end
  73. if $ARGS[0] = 'recordAndEditSong':
  74. !! TODO: Write a scene. It should describe that a song is recorded and then edited properly before uploading it to the net.
  75. '<center><img <<$set_imgh>> src="images/pc/activities/music/phonerecording.jpg"/></center>'
  76. 'You open plug in your home studio kit and start up the recording software. After several tries you finally end up with a version you are content with.'
  77. 'The next hour just flies by as you edit the video and the audio, trying to increate the quality of the recording as much as you can'
  78. minut += 90
  79. instrmusic_exp += rand(1,4)
  80. vokal_exp += rand(1,4)
  81. perform_exp += rand(1,3)
  82. musicprod_exp += rand(1,3)
  83. ml_performed_minutes += 15
  84. ml_onlinesong_hotcat[ml_onlinesongcount] = hotcat
  85. ml_onlinesong_skilllevel[ml_onlinesongcount] = pcs_instrmusic + pcs_vokal + pcs_perform + pcs_musicprod
  86. ml_onlinesong_lastcalcday[ml_onlinesongcount] = daystart
  87. ml_onlinesong_freshness[ml_onlinesongcount] = pcs_instrmusic + pcs_vokal + pcs_perform + pcs_musicprod + ((hotcat-4)*10)
  88. ml_onlinesong_uploaded[ml_onlinesongcount] = 0
  89. ml_uploadablemusic += 1
  90. ml_onlinesongcount += 1
  91. if ml_online['account'] = 1 and internet > 0:
  92. if pcs_inhib < 30:
  93. if pcs_inhib < 10:
  94. $diff = 'hard'
  95. elseif pcs_inhib < 20:
  96. $diff = 'medium'
  97. else
  98. $diff = 'easy'
  99. end
  100. gs 'willpower', 'skill', 'self', $diff
  101. will_cost = (will_cost * 2) - (pcs_perform)
  102. if will_cost <= pcs_willpwr:
  103. act 'Upload music (<<will_cost>> Willpower)': gt 'music_onlinemusic', 'uploadmusic'
  104. else
  105. act 'Upload music (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  106. end
  107. else
  108. act 'Upload music': gt 'music_onlinemusic', 'uploadmusic'
  109. end
  110. else
  111. if $loc = 'sitr':
  112. act 'Leave': gt $loc
  113. else
  114. act 'Leave': gt $loc, 'start'
  115. end
  116. end
  117. end
  118. if $ARGS[0] = 'uploadmusic':
  119. if will_cost > 0:
  120. 'You hesitate for a long moment, but finally take a deep breath and click on the "Upload" button and your newly recorded song moves over to the internet for all to see.'
  121. 'You bite in your lip, then close the screen before you change your mind and delete it.'
  122. else
  123. 'You smile brightly and click on the "Upload" button. Now the whole world can see you play. And if they don''t like it, well... "Haters gonna hate" you shrug mentally and close the screen. They will like it."'
  124. end
  125. ml_uploadablemusic -= 1
  126. ml_onlinesong_uploaded[ml_onlinesongcount-1] = 1
  127. killvar 'will_cost'
  128. if $loc = 'sitr':
  129. act 'Leave': gt $loc
  130. else
  131. act 'Leave': gt $loc, 'start'
  132. end
  133. end
  134. if $ARGS[0] = 'uploadallmusic':
  135. '<center><img src="images/pc/activities/music/uploadmusic.jpg"/></center>'
  136. if will_cost > 0:
  137. 'You hesitate for a long moment, but finally take a deep breath and click on the "Upload" button and all your recorded songs, one by one move over to the internet for all to see.'
  138. 'You bite in your lip, then close the screen before you change your mind and delete them.'
  139. else
  140. 'You smile brightly and click on the "Upload" button. Now the whole world can see you play. And if they don''t like it, well... "Haters gonna hate" you shrug mentally and close the screen, this is how art grows."'
  141. end
  142. i = 0
  143. :uploadallmusic
  144. if ml_onlinesong_uploaded[i] = 0:
  145. ml_onlinesong_uploaded[i] = 1
  146. ml_uploadablemusic -= 1
  147. end
  148. i += 1
  149. if i < ml_onlinesongcount:jump 'uploadallmusic'
  150. killvar 'will_cost'
  151. if $loc = 'sitr':
  152. act 'Leave': gt $loc
  153. else
  154. act 'Leave': gt $loc, 'start'
  155. end
  156. end
  157. --- music_onlinemusic ---------------------------------