monsterturn.gbsres.bak 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. {
  2. "_resourceType": "script",
  3. "id": "8dd00dfe-f1f1-4217-8a3b-aaa1a6ccbad7",
  4. "name": "MonsterTurn",
  5. "description": "",
  6. "variables": {},
  7. "actors": {},
  8. "symbol": "script_0",
  9. "script": [
  10. {
  11. "command": "EVENT_SET_VALUE",
  12. "args": {
  13. "variable": "12",
  14. "value": {
  15. "type": "expression",
  16. "value": "rnd(1)"
  17. }
  18. },
  19. "id": "12b633d1-be53-40d3-b2e4-2da588567778"
  20. },
  21. {
  22. "command": "EVENT_IF",
  23. "args": {
  24. "condition": {
  25. "type": "eq",
  26. "valueA": {
  27. "type": "variable",
  28. "value": "12"
  29. },
  30. "valueB": {
  31. "type": "number",
  32. "value": 0
  33. }
  34. },
  35. "__collapseElse": true,
  36. "__collapse": true
  37. },
  38. "children": {
  39. "true": [
  40. {
  41. "command": "EVENT_SET_VALUE",
  42. "args": {
  43. "variable": "11",
  44. "value": {
  45. "type": "expression",
  46. "value": "1 + rnd($05$-1)"
  47. }
  48. },
  49. "id": "b8663728-5e6e-4def-b8fa-e73bda96b34a"
  50. },
  51. {
  52. "command": "EVENT_TEXT",
  53. "args": {
  54. "text": [
  55. "The enemy dealed $11$"
  56. ],
  57. "__section": "text",
  58. "avatarId": "",
  59. "minHeight": 4,
  60. "maxHeight": 7,
  61. "textX": 1,
  62. "textY": 1,
  63. "textHeight": 5,
  64. "position": "bottom",
  65. "clearPrevious": true,
  66. "showFrame": "true",
  67. "speedIn": -1,
  68. "speedOut": -1,
  69. "closeWhen": "key",
  70. "closeButton": "a",
  71. "closeDelayTime": 0.5,
  72. "closeDelayFrames": 30,
  73. "__collapse": true
  74. },
  75. "id": "ef9c3114-7270-4523-b8cc-7eba8e0b67f2"
  76. },
  77. {
  78. "command": "EVENT_SET_VALUE",
  79. "args": {
  80. "variable": "0",
  81. "value": {
  82. "type": "expression",
  83. "value": "max(0, $01$ - $11$)"
  84. },
  85. "__collapse": true
  86. },
  87. "id": "87a16c59-cac3-4dc4-ae4c-725d7937ef83"
  88. },
  89. {
  90. "command": "EVENT_TEXT",
  91. "args": {
  92. "text": [
  93. "You now have $00$HPs"
  94. ],
  95. "__section": "text",
  96. "avatarId": "",
  97. "minHeight": 4,
  98. "maxHeight": 7,
  99. "textX": 1,
  100. "textY": 1,
  101. "textHeight": 5,
  102. "position": "bottom",
  103. "clearPrevious": true,
  104. "showFrame": "true",
  105. "speedIn": -1,
  106. "speedOut": -1,
  107. "closeWhen": "key",
  108. "closeButton": "a",
  109. "closeDelayTime": 0.5,
  110. "closeDelayFrames": 30,
  111. "__collapse": true
  112. },
  113. "id": "9e6f5b86-4109-4f5c-bd18-287b4d776f4b"
  114. },
  115. {
  116. "command": "EVENT_IF",
  117. "args": {
  118. "condition": {
  119. "type": "lte",
  120. "valueA": {
  121. "type": "variable",
  122. "value": "0"
  123. },
  124. "valueB": {
  125. "type": "number",
  126. "value": 0
  127. }
  128. },
  129. "__collapseElse": true
  130. },
  131. "children": {
  132. "true": [
  133. {
  134. "command": "EVENT_CALL_CUSTOM_EVENT",
  135. "args": {
  136. "customEventId": "058cb3f2-19ed-4fdd-a966-a97ae6b63e60"
  137. },
  138. "id": "23be3c80-3a22-4ce4-bb13-d1bd5ea1121f"
  139. }
  140. ],
  141. "false": []
  142. },
  143. "id": "4bdd5850-aee0-464f-be02-7c2b5c11cde0"
  144. }
  145. ],
  146. "false": []
  147. },
  148. "id": "2df6bb2e-1af6-4b4f-a1a5-4795884b2312"
  149. },
  150. {
  151. "command": "EVENT_IF",
  152. "args": {
  153. "condition": {
  154. "type": "eq",
  155. "valueA": {
  156. "type": "variable",
  157. "value": "12"
  158. },
  159. "valueB": {
  160. "type": "number",
  161. "value": 1
  162. }
  163. },
  164. "__collapseElse": true
  165. },
  166. "children": {
  167. "true": [
  168. {
  169. "command": "EVENT_SET_VALUE",
  170. "args": {
  171. "variable": "11",
  172. "value": {
  173. "type": "expression",
  174. "value": "$06$ + rnd(max($06$, $01$/2) - $06$)"
  175. }
  176. },
  177. "id": "750d4028-2a41-4b36-88ff-172a5865816f"
  178. },
  179. {
  180. "command": "EVENT_TEXT",
  181. "args": {
  182. "text": [
  183. "The enemy healed $11$"
  184. ],
  185. "__section": "text",
  186. "avatarId": "",
  187. "minHeight": 4,
  188. "maxHeight": 7,
  189. "textX": 1,
  190. "textY": 1,
  191. "textHeight": 5,
  192. "position": "bottom",
  193. "clearPrevious": true,
  194. "showFrame": "true",
  195. "speedIn": -1,
  196. "speedOut": -1,
  197. "closeWhen": "key",
  198. "closeButton": "a",
  199. "closeDelayTime": 0.5,
  200. "closeDelayFrames": 30
  201. },
  202. "id": "8e22c223-9468-4cdf-b40c-03cf9f41c944"
  203. },
  204. {
  205. "command": "EVENT_TEXT",
  206. "args": {
  207. "text": [
  208. "It now has $01$"
  209. ],
  210. "__section": "text",
  211. "avatarId": "",
  212. "minHeight": 4,
  213. "maxHeight": 7,
  214. "textX": 1,
  215. "textY": 1,
  216. "textHeight": 5,
  217. "position": "bottom",
  218. "clearPrevious": true,
  219. "showFrame": "true",
  220. "speedIn": -1,
  221. "speedOut": -1,
  222. "closeWhen": "key",
  223. "closeButton": "a",
  224. "closeDelayTime": 0.5,
  225. "closeDelayFrames": 30
  226. },
  227. "id": "8f619d2a-392b-44c7-a43f-3c85bbd9e115"
  228. }
  229. ],
  230. "false": []
  231. },
  232. "id": "c3322905-a96b-4424-8ab0-0edfdd7623b1"
  233. }
  234. ]
  235. }