music_actions.qsrc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # music_actions
  2. if ARGS[0] = 'start':
  3. cla
  4. if $location_type = 'private':
  5. if ml_guitar['carried'] = 1:
  6. act 'Place the guitar next to your desk':
  7. ml_guitar['carried'] = 0
  8. ml_guitar['location'] = $ARGS[0]
  9. end
  10. elseif ml_guitar['location'] = $ARGS[0]:
  11. act 'Pick up the guitar':
  12. ml_guitar['carried'] = 1
  13. ml_guitar['location'] = 'carried'
  14. end
  15. end
  16. if $ARGS[0] = 'sitr':
  17. gt 'sitr'
  18. elseif ARGS[0] = 'dachain':
  19. gt 'dachain'
  20. else
  21. gt ARGS[0], 'start'
  22. end
  23. end
  24. if ml_guitar['carried'] = 1:
  25. act 'Play something on the guitar (10 minutes)':
  26. pcs_mood += 10
  27. minut += 10
  28. gs 'stat'
  29. 'You pick up your guitar and start to play some songs you know, just for your own entertainment.'
  30. 'You hum along the tune, relaxing into the music, just enjoying it. When you look up a quarter of an hour passed and you are in a much better mood.'
  31. end
  32. end
  33. if ml_online['account'] = 0 and internet > 0:
  34. act 'Set up an online music account (0:30)': gt 'music_onlinemusic', 'setupAccount'
  35. end
  36. !!Uploading recorded music if there are any not uploaded yet
  37. if ml_uploadablemusic > 0 and internet > 0 and ml_online['account'] = 1:
  38. if pcs_inhib < 30:
  39. if pcs_inhib < 10:
  40. $diff = 'hard'
  41. elseif pcs_inhib < 20:
  42. $diff = 'medium'
  43. else
  44. $diff = 'easy'
  45. end
  46. gs 'willpower', 'skill', 'self', $diff
  47. will_cost = (will_cost * 2) - (pcs_perform)
  48. if will_cost <= pcs_willpwr:
  49. act 'Upload music (<<will_cost>> Willpower)': gt 'music_onlinemusic', 'uploadmusic'
  50. else
  51. 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>'
  52. end
  53. end
  54. act 'Upload music': gt 'music_onlinemusic', 'uploadallmusic'
  55. end
  56. if ml_uploadablemusic > 0:
  57. act 'Delete old recordings': gt 'music_onlinemusic', 'deleteoldmusic'
  58. end
  59. end
  60. --- music_actions ---------------------------------