createenemy.gbsres 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "_resourceType": "script",
  3. "id": "e6cd7f23-a889-4a99-b34c-c456ab3544f8",
  4. "name": "CreateEnemy",
  5. "description": "",
  6. "variables": {},
  7. "actors": {},
  8. "symbol": "script_2",
  9. "script": [
  10. {
  11. "command": "EVENT_SET_VALUE",
  12. "args": {
  13. "variable": "1",
  14. "value": {
  15. "type": "expression",
  16. "value": "($06$ + $05$ + $07$) + rnd(($06$ + $05$ + $07$))"
  17. }
  18. },
  19. "id": "b8420a04-57fc-40cd-8a94-d358353ea30f"
  20. },
  21. {
  22. "command": "EVENT_IF",
  23. "args": {
  24. "condition": {
  25. "type": "gt",
  26. "valueA": {
  27. "type": "variable",
  28. "value": "1"
  29. },
  30. "valueB": {
  31. "type": "number",
  32. "value": 8
  33. }
  34. },
  35. "__collapseElse": true
  36. },
  37. "children": {
  38. "true": [
  39. {
  40. "command": "EVENT_SET_VALUE",
  41. "args": {
  42. "variable": "1",
  43. "value": {
  44. "type": "number",
  45. "value": 8
  46. }
  47. },
  48. "id": "9f13a412-57a4-4263-a182-61cfd554b581"
  49. }
  50. ],
  51. "false": []
  52. },
  53. "id": "8f85c7b0-35a8-46cb-8807-cffb7e5810a4"
  54. }
  55. ]
  56. }