healthchest.gbsres 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "_resourceType": "actorPrefab",
  3. "id": "7eae9937-2a69-4174-966d-1e8f72a39a77",
  4. "name": "HealthChest",
  5. "frame": 0,
  6. "animate": false,
  7. "spriteSheetId": "74382b42-1feb-47d5-934b-2afff2f289e8",
  8. "moveSpeed": 1,
  9. "animSpeed": 15,
  10. "paletteId": "",
  11. "persistent": false,
  12. "collisionGroup": "1",
  13. "script": [
  14. {
  15. "command": "EVENT_ACTOR_SET_STATE",
  16. "args": {
  17. "actorId": "$self$",
  18. "spriteStateId": "Open",
  19. "loopAnim": false,
  20. "__collapse": false
  21. },
  22. "id": "9c2d9ac3-fe85-4441-8af3-a9e6edd237f3"
  23. },
  24. {
  25. "command": "EVENT_SOUND_PLAY_EFFECT",
  26. "args": {
  27. "type": "9447a6ae-4924-4c38-8d51-904f9664f139",
  28. "priority": "medium",
  29. "pitch": 4,
  30. "frequency": 200,
  31. "duration": 0.5,
  32. "wait": true,
  33. "effect": 13
  34. },
  35. "id": "d219778b-7314-41c2-b156-5a52b5782b27"
  36. },
  37. {
  38. "command": "EVENT_TEXT",
  39. "args": {
  40. "text": [
  41. "You obtained \n1 HP!"
  42. ],
  43. "__section": "text",
  44. "avatarId": "",
  45. "minHeight": 4,
  46. "maxHeight": 7,
  47. "textX": 1,
  48. "textY": 1,
  49. "textHeight": 5,
  50. "position": "bottom",
  51. "clearPrevious": true,
  52. "showFrame": "true",
  53. "speedIn": -1,
  54. "speedOut": -1,
  55. "closeWhen": "key",
  56. "closeButton": "a",
  57. "closeDelayTime": 0.5,
  58. "closeDelayFrames": 30,
  59. "__collapse": true
  60. },
  61. "id": "3675db0d-16aa-4a88-9a7c-8e6123954754"
  62. },
  63. {
  64. "command": "EVENT_SET_VALUE",
  65. "args": {
  66. "variable": "0",
  67. "value": {
  68. "type": "expression",
  69. "value": "min(8, $00$ +1)"
  70. }
  71. },
  72. "id": "a322552b-756d-4254-a911-52a5bc8e2141"
  73. },
  74. {
  75. "command": "EVENT_SOUND_PLAY_EFFECT",
  76. "args": {
  77. "type": "9447a6ae-4924-4c38-8d51-904f9664f139",
  78. "priority": "medium",
  79. "pitch": 4,
  80. "frequency": 200,
  81. "duration": 0.5,
  82. "wait": true,
  83. "effect": 18
  84. },
  85. "id": "5ca897bb-5003-42f4-9ad5-f30fcbe12612"
  86. },
  87. {
  88. "command": "EVENT_ACTOR_COLLISIONS_DISABLE",
  89. "args": {
  90. "actorId": "$self$",
  91. "__collapse": true
  92. },
  93. "id": "34ab6265-3460-4cae-8774-2efda35a2338"
  94. },
  95. {
  96. "command": "EVENT_CALL_CUSTOM_EVENT",
  97. "args": {
  98. "customEventId": "4e18c992-1d59-4174-b94b-0db3d744aa3d",
  99. "__collapse": false,
  100. "$actor[0]$": "$self$"
  101. },
  102. "id": "1587bfe7-1d80-4fb9-a46e-5cdfcaeec4f9"
  103. }
  104. ],
  105. "startScript": [],
  106. "updateScript": [],
  107. "hit1Script": [],
  108. "hit2Script": [],
  109. "hit3Script": []
  110. }