chest.gbsres 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "_resourceType": "actorPrefab",
  3. "id": "5b00b49d-f211-42f5-83f7-794be197e4c8",
  4. "name": "Chest",
  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_IF",
  16. "args": {
  17. "condition": {
  18. "type": "variable",
  19. "value": "13"
  20. },
  21. "__collapseElse": false,
  22. "__collapse": false
  23. },
  24. "children": {
  25. "true": [],
  26. "false": [
  27. {
  28. "command": "EVENT_ACTOR_SET_STATE",
  29. "args": {
  30. "actorId": "$self$",
  31. "spriteStateId": "Open",
  32. "loopAnim": false,
  33. "__collapse": true
  34. },
  35. "id": "999e5545-4965-4431-874e-00acd09504ee"
  36. },
  37. {
  38. "command": "EVENT_SOUND_PLAY_EFFECT",
  39. "args": {
  40. "type": "9447a6ae-4924-4c38-8d51-904f9664f139",
  41. "priority": "medium",
  42. "pitch": 4,
  43. "frequency": 200,
  44. "duration": 0.5,
  45. "wait": true,
  46. "effect": 13
  47. },
  48. "id": "12652774-8da4-44c3-8fc1-17d6874969b9"
  49. },
  50. {
  51. "command": "EVENT_TEXT",
  52. "args": {
  53. "text": [
  54. "You obtained\na key!"
  55. ],
  56. "__section": "layout",
  57. "avatarId": "",
  58. "minHeight": 4,
  59. "maxHeight": 7,
  60. "textX": 1,
  61. "textY": 1,
  62. "textHeight": 5,
  63. "position": "bottom",
  64. "clearPrevious": true,
  65. "showFrame": false,
  66. "speedIn": -1,
  67. "speedOut": -1,
  68. "closeWhen": "key",
  69. "closeButton": "a",
  70. "closeDelayTime": 0.5,
  71. "closeDelayFrames": 30,
  72. "__collapse": false
  73. },
  74. "id": "0cee22c4-1e1e-4421-8123-f48607875daa"
  75. },
  76. {
  77. "command": "EVENT_TEXT",
  78. "args": {
  79. "text": [
  80. "How could this\nbe useful..."
  81. ],
  82. "__section": "text",
  83. "avatarId": "",
  84. "minHeight": 4,
  85. "maxHeight": 7,
  86. "textX": 1,
  87. "textY": 1,
  88. "textHeight": 5,
  89. "position": "bottom",
  90. "clearPrevious": true,
  91. "showFrame": "true",
  92. "speedIn": -1,
  93. "speedOut": -1,
  94. "closeWhen": "key",
  95. "closeButton": "a",
  96. "closeDelayTime": 0.5,
  97. "closeDelayFrames": 30,
  98. "__collapse": false
  99. },
  100. "id": "c895f703-df44-47d1-8045-f1504833cb9c"
  101. },
  102. {
  103. "command": "EVENT_SET_VALUE",
  104. "args": {
  105. "variable": "13",
  106. "value": {
  107. "type": "true"
  108. },
  109. "__collapse": true
  110. },
  111. "id": "59156717-2e79-4a01-aa53-fc0bec8dd5d4"
  112. }
  113. ]
  114. },
  115. "id": "4d46306d-305e-4942-aaec-08c026c6aa83"
  116. }
  117. ],
  118. "startScript": [],
  119. "updateScript": [],
  120. "hit1Script": [],
  121. "hit2Script": [],
  122. "hit3Script": []
  123. }