| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- {
- "_resourceType": "script",
- "id": "486f2a72-7042-4248-8295-c2cef54255e4",
- "name": "DealDamages",
- "description": "",
- "variables": {
- "V0": {
- "id": "V0",
- "name": "Damages",
- "passByReference": true
- }
- },
- "actors": {},
- "symbol": "script_4",
- "script": [
- {
- "command": "EVENT_TEXT",
- "args": {
- "text": [
- "$01$"
- ],
- "__section": "text",
- "avatarId": "",
- "minHeight": 4,
- "maxHeight": 7,
- "textX": 1,
- "textY": 1,
- "textHeight": 5,
- "position": "bottom",
- "clearPrevious": true,
- "showFrame": "true",
- "speedIn": -1,
- "speedOut": -1,
- "closeWhen": "key",
- "closeButton": "a",
- "closeDelayTime": 0.5,
- "closeDelayFrames": 30
- },
- "id": "7ec7306a-5ad8-4016-95ae-efb710ce8590"
- },
- {
- "command": "EVENT_SET_VALUE",
- "args": {
- "variable": "V0",
- "value": {
- "type": "expression",
- "value": "1 + rnd($05$ - 1)"
- },
- "__collapse": true
- },
- "id": "6e8c0347-0c01-4316-8146-25a3f640634c"
- },
- {
- "command": "EVENT_SET_VALUE",
- "args": {
- "variable": "1",
- "value": {
- "type": "expression",
- "value": "max(0, $01$ - $V0$)"
- },
- "__collapse": true,
- "text": [
- "max(0, $01$ - $V0$)"
- ],
- "__section": "text",
- "avatarId": "",
- "minHeight": 4,
- "maxHeight": 7,
- "textX": 1,
- "textY": 1,
- "textHeight": 5,
- "position": "bottom",
- "clearPrevious": true,
- "showFrame": "true",
- "speedIn": -1,
- "speedOut": -1,
- "closeWhen": "key",
- "closeButton": "a",
- "closeDelayTime": 0.5,
- "closeDelayFrames": 30
- },
- "id": "8f0630a9-319f-491a-9aaf-1fb5f0ad58a4"
- },
- {
- "command": "EVENT_IF",
- "args": {
- "condition": {
- "type": "eq",
- "valueA": {
- "type": "variable",
- "value": "1"
- },
- "valueB": {
- "type": "number",
- "value": 0
- }
- },
- "__collapseElse": true,
- "__collapse": true
- },
- "children": {
- "true": [
- {
- "command": "EVENT_CALL_CUSTOM_EVENT",
- "args": {
- "customEventId": "cc2c82d9-f12a-4a13-8dca-e6354ba7dc57"
- },
- "id": "38350d5c-1b7a-47e4-abb8-ea569d0045a3"
- }
- ],
- "false": []
- },
- "id": "6824afb7-4161-4b56-a3b1-469cf3907406"
- },
- {
- "command": "EVENT_SET_VALUE",
- "args": {
- "variable": "3",
- "value": {
- "type": "expression",
- "value": "$03$ + $V0$"
- },
- "__collapse": true
- },
- "id": "7af95956-43ba-4c70-8c8c-5f9b6084f18c"
- },
- {
- "command": "EVENT_LOOP_WHILE",
- "args": {
- "condition": {
- "type": "expression",
- "value": "$03$ >= $05$*4"
- },
- "__collapse": true
- },
- "children": {
- "true": [
- {
- "command": "EVENT_SET_VALUE",
- "args": {
- "variable": "3",
- "value": {
- "type": "expression",
- "value": "$03$-$05$*4"
- }
- },
- "id": "ef3c2a4e-a377-4c63-8a5b-093ee46ac4ef"
- },
- {
- "command": "EVENT_INC_VALUE",
- "args": {
- "variable": "5"
- },
- "id": "22f2e614-fe15-4bb8-aa3b-a42421cddd7f"
- }
- ]
- },
- "id": "f51a7499-05ee-4ac9-a971-ab41f475614c"
- }
- ]
- }
|