dealdamages.gbsres.bak 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. {
  2. "_resourceType": "script",
  3. "id": "486f2a72-7042-4248-8295-c2cef54255e4",
  4. "name": "DealDamages",
  5. "description": "",
  6. "variables": {
  7. "V0": {
  8. "id": "V0",
  9. "name": "Damages",
  10. "passByReference": true
  11. }
  12. },
  13. "actors": {},
  14. "symbol": "script_4",
  15. "script": [
  16. {
  17. "command": "EVENT_TEXT",
  18. "args": {
  19. "text": [
  20. "$01$"
  21. ],
  22. "__section": "text",
  23. "avatarId": "",
  24. "minHeight": 4,
  25. "maxHeight": 7,
  26. "textX": 1,
  27. "textY": 1,
  28. "textHeight": 5,
  29. "position": "bottom",
  30. "clearPrevious": true,
  31. "showFrame": "true",
  32. "speedIn": -1,
  33. "speedOut": -1,
  34. "closeWhen": "key",
  35. "closeButton": "a",
  36. "closeDelayTime": 0.5,
  37. "closeDelayFrames": 30
  38. },
  39. "id": "7ec7306a-5ad8-4016-95ae-efb710ce8590"
  40. },
  41. {
  42. "command": "EVENT_SET_VALUE",
  43. "args": {
  44. "variable": "V0",
  45. "value": {
  46. "type": "expression",
  47. "value": "1 + rnd($05$ - 1)"
  48. },
  49. "__collapse": true
  50. },
  51. "id": "6e8c0347-0c01-4316-8146-25a3f640634c"
  52. },
  53. {
  54. "command": "EVENT_SET_VALUE",
  55. "args": {
  56. "variable": "1",
  57. "value": {
  58. "type": "expression",
  59. "value": "max(0, $01$ - $V0$)"
  60. },
  61. "__collapse": true,
  62. "text": [
  63. "max(0, $01$ - $V0$)"
  64. ],
  65. "__section": "text",
  66. "avatarId": "",
  67. "minHeight": 4,
  68. "maxHeight": 7,
  69. "textX": 1,
  70. "textY": 1,
  71. "textHeight": 5,
  72. "position": "bottom",
  73. "clearPrevious": true,
  74. "showFrame": "true",
  75. "speedIn": -1,
  76. "speedOut": -1,
  77. "closeWhen": "key",
  78. "closeButton": "a",
  79. "closeDelayTime": 0.5,
  80. "closeDelayFrames": 30
  81. },
  82. "id": "8f0630a9-319f-491a-9aaf-1fb5f0ad58a4"
  83. },
  84. {
  85. "command": "EVENT_IF",
  86. "args": {
  87. "condition": {
  88. "type": "eq",
  89. "valueA": {
  90. "type": "variable",
  91. "value": "1"
  92. },
  93. "valueB": {
  94. "type": "number",
  95. "value": 0
  96. }
  97. },
  98. "__collapseElse": true,
  99. "__collapse": true
  100. },
  101. "children": {
  102. "true": [
  103. {
  104. "command": "EVENT_CALL_CUSTOM_EVENT",
  105. "args": {
  106. "customEventId": "cc2c82d9-f12a-4a13-8dca-e6354ba7dc57"
  107. },
  108. "id": "38350d5c-1b7a-47e4-abb8-ea569d0045a3"
  109. }
  110. ],
  111. "false": []
  112. },
  113. "id": "6824afb7-4161-4b56-a3b1-469cf3907406"
  114. },
  115. {
  116. "command": "EVENT_SET_VALUE",
  117. "args": {
  118. "variable": "3",
  119. "value": {
  120. "type": "expression",
  121. "value": "$03$ + $V0$"
  122. },
  123. "__collapse": true
  124. },
  125. "id": "7af95956-43ba-4c70-8c8c-5f9b6084f18c"
  126. },
  127. {
  128. "command": "EVENT_LOOP_WHILE",
  129. "args": {
  130. "condition": {
  131. "type": "expression",
  132. "value": "$03$ >= $05$*4"
  133. },
  134. "__collapse": true
  135. },
  136. "children": {
  137. "true": [
  138. {
  139. "command": "EVENT_SET_VALUE",
  140. "args": {
  141. "variable": "3",
  142. "value": {
  143. "type": "expression",
  144. "value": "$03$-$05$*4"
  145. }
  146. },
  147. "id": "ef3c2a4e-a377-4c63-8a5b-093ee46ac4ef"
  148. },
  149. {
  150. "command": "EVENT_INC_VALUE",
  151. "args": {
  152. "variable": "5"
  153. },
  154. "id": "22f2e614-fe15-4bb8-aa3b-a42421cddd7f"
  155. }
  156. ]
  157. },
  158. "id": "f51a7499-05ee-4ac9-a971-ab41f475614c"
  159. }
  160. ]
  161. }