chest.gbsres 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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_TEXT",
  39. "args": {
  40. "text": [
  41. "You obtained\na key!"
  42. ],
  43. "__section": "layout",
  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": false,
  53. "speedIn": -1,
  54. "speedOut": -1,
  55. "closeWhen": "key",
  56. "closeButton": "a",
  57. "closeDelayTime": 0.5,
  58. "closeDelayFrames": 30,
  59. "__collapse": false
  60. },
  61. "id": "0cee22c4-1e1e-4421-8123-f48607875daa"
  62. },
  63. {
  64. "command": "EVENT_TEXT",
  65. "args": {
  66. "text": [
  67. "How could this\nbe useful..."
  68. ],
  69. "__section": "text",
  70. "avatarId": "",
  71. "minHeight": 4,
  72. "maxHeight": 7,
  73. "textX": 1,
  74. "textY": 1,
  75. "textHeight": 5,
  76. "position": "bottom",
  77. "clearPrevious": true,
  78. "showFrame": "true",
  79. "speedIn": -1,
  80. "speedOut": -1,
  81. "closeWhen": "key",
  82. "closeButton": "a",
  83. "closeDelayTime": 0.5,
  84. "closeDelayFrames": 30,
  85. "__collapse": false
  86. },
  87. "id": "c895f703-df44-47d1-8045-f1504833cb9c"
  88. },
  89. {
  90. "command": "EVENT_SET_VALUE",
  91. "args": {
  92. "variable": "13",
  93. "value": {
  94. "type": "true"
  95. },
  96. "__collapse": true
  97. },
  98. "id": "59156717-2e79-4a01-aa53-fc0bec8dd5d4"
  99. }
  100. ]
  101. },
  102. "id": "4d46306d-305e-4942-aaec-08c026c6aa83"
  103. }
  104. ],
  105. "startScript": [],
  106. "updateScript": [],
  107. "hit1Script": [],
  108. "hit2Script": [],
  109. "hit3Script": []
  110. }