heal.gbsres.bak 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "_resourceType": "script",
  3. "id": "280e5aa4-5546-4c2e-bb9d-53f591afbcd1",
  4. "name": "Heal",
  5. "description": "",
  6. "variables": {
  7. "V0": {
  8. "id": "V0",
  9. "name": "Heal",
  10. "passByReference": true
  11. }
  12. },
  13. "actors": {},
  14. "symbol": "script_3",
  15. "script": [
  16. {
  17. "command": "EVENT_SET_VALUE",
  18. "args": {
  19. "variable": "V0",
  20. "value": {
  21. "type": "expression",
  22. "value": "$06$ + rnd(max(0, $01$ / 2 - $06$))"
  23. },
  24. "__collapse": true
  25. },
  26. "id": "e7b0376a-baef-4bc8-b5a7-b04b1bfb660b"
  27. },
  28. {
  29. "command": "EVENT_SET_VALUE",
  30. "args": {
  31. "variable": "0",
  32. "value": {
  33. "type": "expression",
  34. "value": "max(100, $00$ + $V0$)"
  35. },
  36. "__collapse": true
  37. },
  38. "id": "b92bf361-43eb-437f-a8ae-b6612816d3ca"
  39. },
  40. {
  41. "command": "EVENT_SET_VALUE",
  42. "args": {
  43. "variable": "4",
  44. "value": {
  45. "type": "expression",
  46. "value": "$04$ + $V0$"
  47. },
  48. "__collapse": false
  49. },
  50. "id": "8da63f87-fdfd-4a34-a391-dc45d97017c2"
  51. },
  52. {
  53. "command": "EVENT_SET_VALUE",
  54. "args": {
  55. "variable": "5",
  56. "value": {
  57. "type": "gte",
  58. "valueA": {
  59. "type": "variable",
  60. "value": "3"
  61. },
  62. "valueB": {
  63. "type": "expression",
  64. "value": "$05$*4"
  65. }
  66. },
  67. "__collapse": true
  68. },
  69. "id": "db790ba6-2dbd-4c7f-be66-ca9de16c8485"
  70. },
  71. {
  72. "command": "EVENT_LOOP_WHILE",
  73. "args": {
  74. "condition": {
  75. "type": "expression",
  76. "value": "$03$ >= $05$*4"
  77. },
  78. "__collapse": true
  79. },
  80. "children": {
  81. "true": [
  82. {
  83. "command": "EVENT_SET_VALUE",
  84. "args": {
  85. "variable": "3",
  86. "value": {
  87. "type": "expression",
  88. "value": "$03$-$05$*4"
  89. }
  90. },
  91. "id": "3c74e449-ec47-4e84-9533-7133eb87416f"
  92. },
  93. {
  94. "command": "EVENT_INC_VALUE",
  95. "args": {
  96. "variable": "5"
  97. },
  98. "id": "4792f3da-e387-41e8-8166-bb9694d73387"
  99. }
  100. ]
  101. },
  102. "id": "a370918a-4017-4ded-b85d-5040c0bb8cba"
  103. }
  104. ]
  105. }