bosstrigger.gbsres.bak 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. {
  2. "_resourceType": "triggerPrefab",
  3. "id": "cd80a9a0-d506-49b6-8958-cff8fe998280",
  4. "name": "BossTrigger",
  5. "script": [
  6. {
  7. "command": "EVENT_IF",
  8. "args": {
  9. "condition": {
  10. "type": "eq",
  11. "valueA": {
  12. "type": "variable",
  13. "value": "0"
  14. },
  15. "valueB": {
  16. "type": "number",
  17. "value": 1
  18. }
  19. },
  20. "__collapseElse": true
  21. },
  22. "children": {
  23. "true": [
  24. {
  25. "command": "EVENT_TEXT",
  26. "args": {
  27. "text": [
  28. "Here we go..."
  29. ],
  30. "__section": "text",
  31. "avatarId": "",
  32. "minHeight": 4,
  33. "maxHeight": 7,
  34. "textX": 1,
  35. "textY": 1,
  36. "textHeight": 5,
  37. "position": "bottom",
  38. "clearPrevious": true,
  39. "showFrame": "true",
  40. "speedIn": -1,
  41. "speedOut": -1,
  42. "closeWhen": "key",
  43. "closeButton": "a",
  44. "closeDelayTime": 0.5,
  45. "closeDelayFrames": 30,
  46. "__collapse": true
  47. },
  48. "id": "90b079c4-220f-41f8-a944-6a8806ad678d"
  49. },
  50. {
  51. "command": "EVENT_CAMERA_SHAKE",
  52. "args": {
  53. "time": 0.5,
  54. "frames": 30,
  55. "shakeDirection": "horizontal",
  56. "magnitude": {
  57. "type": "number",
  58. "value": 5
  59. },
  60. "__collapse": true
  61. },
  62. "id": "5e10106f-ecd5-49d7-9819-a591dd78cd59"
  63. },
  64. {
  65. "command": "EVENT_SET_VALUE",
  66. "args": {
  67. "variable": "0",
  68. "value": {
  69. "type": "expression",
  70. "value": "max(0, $00$-2)"
  71. },
  72. "__collapse": true
  73. },
  74. "id": "220fd6eb-943e-4cba-88a2-85108a01caad"
  75. },
  76. {
  77. "command": "EVENT_SOUND_PLAY_EFFECT",
  78. "args": {
  79. "type": "9447a6ae-4924-4c38-8d51-904f9664f139",
  80. "priority": "medium",
  81. "pitch": 4,
  82. "frequency": 200,
  83. "duration": 0.5,
  84. "wait": true,
  85. "effect": 20,
  86. "__collapse": true
  87. },
  88. "id": "5e5ec3c0-2585-4e20-b811-d07d04db5e38"
  89. },
  90. {
  91. "command": "EVENT_CALL_CUSTOM_EVENT",
  92. "args": {
  93. "customEventId": "4e18c992-1d59-4174-b94b-0db3d744aa3d",
  94. "$actor[0]$": "25ffce94-3e2e-4a60-a123-b334029dbc98",
  95. "__collapse": true
  96. },
  97. "id": "98525654-2bbd-41ec-a842-dd31beeb4beb"
  98. },
  99. {
  100. "command": "EVENT_IF",
  101. "args": {
  102. "condition": {
  103. "type": "gt",
  104. "valueA": {
  105. "type": "variable",
  106. "value": "0"
  107. },
  108. "valueB": {
  109. "type": "number",
  110. "value": 0
  111. }
  112. },
  113. "__collapseElse": true,
  114. "__collapse": true
  115. },
  116. "children": {
  117. "true": [
  118. {
  119. "command": "EVENT_TEXT",
  120. "args": {
  121. "text": [
  122. "The final enemy..."
  123. ],
  124. "__section": "text",
  125. "avatarId": "",
  126. "minHeight": 4,
  127. "maxHeight": 7,
  128. "textX": 1,
  129. "textY": 1,
  130. "textHeight": 5,
  131. "position": "bottom",
  132. "clearPrevious": true,
  133. "showFrame": "true",
  134. "speedIn": -1,
  135. "speedOut": -1,
  136. "closeWhen": "key",
  137. "closeButton": "a",
  138. "closeDelayTime": 0.5,
  139. "closeDelayFrames": 30
  140. },
  141. "id": "8c8cda58-dcec-44e0-a1e3-28258a9be244"
  142. },
  143. {
  144. "command": "EVENT_CAMERA_SHAKE",
  145. "args": {
  146. "time": 0.5,
  147. "frames": 30,
  148. "shakeDirection": "horizontal",
  149. "magnitude": {
  150. "type": "number",
  151. "value": 5
  152. }
  153. },
  154. "id": "97edb0f9-8395-4261-b22b-def5744686d1"
  155. },
  156. {
  157. "command": "EVENT_SET_VALUE",
  158. "args": {
  159. "variable": "0",
  160. "value": {
  161. "type": "expression",
  162. "value": "max(0, $00$-2)"
  163. }
  164. },
  165. "id": "0a3748d7-8fb0-4092-9838-b97a0646535e"
  166. },
  167. {
  168. "command": "EVENT_SOUND_PLAY_EFFECT",
  169. "args": {
  170. "type": "9447a6ae-4924-4c38-8d51-904f9664f139",
  171. "priority": "medium",
  172. "pitch": 4,
  173. "frequency": 200,
  174. "duration": 0.5,
  175. "wait": true,
  176. "effect": 20
  177. },
  178. "id": "1260aacd-1a1e-4935-b208-4b483e24f4dd"
  179. },
  180. {
  181. "command": "EVENT_CALL_CUSTOM_EVENT",
  182. "args": {
  183. "customEventId": "4e18c992-1d59-4174-b94b-0db3d744aa3d",
  184. "$actor[0]$": "25ffce94-3e2e-4a60-a123-b334029dbc98"
  185. },
  186. "id": "6fd12b5e-ca00-4dc4-82fa-3ff940e46cee"
  187. },
  188. {
  189. "command": "EVENT_IF",
  190. "args": {
  191. "condition": {
  192. "type": "gt",
  193. "valueA": {
  194. "type": "variable",
  195. "value": "0"
  196. },
  197. "valueB": {
  198. "type": "number",
  199. "value": 0
  200. }
  201. },
  202. "__collapseElse": true,
  203. "__collapse": true
  204. },
  205. "children": {
  206. "true": [
  207. {
  208. "command": "EVENT_TEXT",
  209. "args": {
  210. "text": [
  211. "Will I defeat it?"
  212. ],
  213. "__section": "text",
  214. "avatarId": "",
  215. "minHeight": 4,
  216. "maxHeight": 7,
  217. "textX": 1,
  218. "textY": 1,
  219. "textHeight": 5,
  220. "position": "bottom",
  221. "clearPrevious": true,
  222. "showFrame": "true",
  223. "speedIn": -1,
  224. "speedOut": -1,
  225. "closeWhen": "key",
  226. "closeButton": "a",
  227. "closeDelayTime": 0.5,
  228. "closeDelayFrames": 30
  229. },
  230. "id": "ddb5916f-df9e-4398-96f5-fc2af2d158ee"
  231. },
  232. {
  233. "command": "EVENT_CAMERA_SHAKE",
  234. "args": {
  235. "time": 1,
  236. "frames": 30,
  237. "shakeDirection": "horizontal",
  238. "magnitude": {
  239. "type": "number",
  240. "value": 5
  241. }
  242. },
  243. "id": "6999570b-d8cf-4175-bd56-1f817eab56d2"
  244. },
  245. {
  246. "command": "EVENT_SET_VALUE",
  247. "args": {
  248. "variable": "0",
  249. "value": {
  250. "type": "expression",
  251. "value": "max(0, $00$-2)"
  252. }
  253. },
  254. "id": "fce3264d-1a8c-4946-92a4-0a42fa240bd5"
  255. },
  256. {
  257. "command": "EVENT_SOUND_PLAY_EFFECT",
  258. "args": {
  259. "type": "9447a6ae-4924-4c38-8d51-904f9664f139",
  260. "priority": "medium",
  261. "pitch": 4,
  262. "frequency": 200,
  263. "duration": 0.5,
  264. "wait": true,
  265. "effect": 20
  266. },
  267. "id": "16636184-9c21-4ea6-bf6e-5a57af8cc04d"
  268. },
  269. {
  270. "command": "EVENT_CALL_CUSTOM_EVENT",
  271. "args": {
  272. "customEventId": "4e18c992-1d59-4174-b94b-0db3d744aa3d",
  273. "$actor[0]$": "25ffce94-3e2e-4a60-a123-b334029dbc98"
  274. },
  275. "id": "b263c556-d597-45c2-a881-d1edb7124056"
  276. },
  277. {
  278. "command": "EVENT_IF",
  279. "args": {
  280. "condition": {
  281. "type": "gt",
  282. "valueA": {
  283. "type": "variable",
  284. "value": "0"
  285. },
  286. "valueB": {
  287. "type": "number",
  288. "value": 0
  289. }
  290. },
  291. "__collapseElse": false
  292. },
  293. "children": {
  294. "true": [
  295. {
  296. "command": "EVENT_TEXT",
  297. "args": {
  298. "text": [
  299. "This is my last\nchance..."
  300. ],
  301. "__section": "text",
  302. "avatarId": "",
  303. "minHeight": 4,
  304. "maxHeight": 7,
  305. "textX": 1,
  306. "textY": 1,
  307. "textHeight": 5,
  308. "position": "bottom",
  309. "clearPrevious": true,
  310. "showFrame": "true",
  311. "speedIn": -1,
  312. "speedOut": -1,
  313. "closeWhen": "key",
  314. "closeButton": "a",
  315. "closeDelayTime": 0.5,
  316. "closeDelayFrames": 30
  317. },
  318. "id": "7f91239d-b17b-404e-8816-1a262880d2a6"
  319. },
  320. {
  321. "command": "EVENT_CAMERA_SHAKE",
  322. "args": {
  323. "time": 3,
  324. "frames": 30,
  325. "shakeDirection": "horizontal",
  326. "magnitude": {
  327. "type": "number",
  328. "value": 7
  329. }
  330. },
  331. "id": "acc68a1a-c263-4b06-91a7-a37cf6931b8c"
  332. },
  333. {
  334. "command": "EVENT_TEXT",
  335. "args": {
  336. "text": [
  337. "The enemy has \ncollapsed."
  338. ],
  339. "__section": "text",
  340. "avatarId": "",
  341. "minHeight": 4,
  342. "maxHeight": 7,
  343. "textX": 1,
  344. "textY": 1,
  345. "textHeight": 5,
  346. "position": "bottom",
  347. "clearPrevious": true,
  348. "showFrame": "true",
  349. "speedIn": -1,
  350. "speedOut": -1,
  351. "closeWhen": "key",
  352. "closeButton": "a",
  353. "closeDelayTime": 0.5,
  354. "closeDelayFrames": 30
  355. },
  356. "id": "d9f22590-16ca-4786-a8e9-95f204ca354c"
  357. },
  358. {
  359. "command": "EVENT_SET_VALUE",
  360. "args": {
  361. "variable": "15",
  362. "value": {
  363. "type": "true"
  364. }
  365. },
  366. "id": "348c8cfb-0e52-4dc2-9d17-812496f456af"
  367. },
  368. {
  369. "command": "EVENT_ACTOR_DEACTIVATE",
  370. "args": {
  371. "actorId": "adf6bcf0-41c5-4eb1-a73e-9574e1d94036",
  372. "__collapse": false
  373. },
  374. "id": "9531bfb7-b1d4-4f79-aa43-734b973f1e86"
  375. }
  376. ],
  377. "false": [
  378. {
  379. "command": "EVENT_CALL_CUSTOM_EVENT",
  380. "args": {
  381. "customEventId": "058cb3f2-19ed-4fdd-a966-a97ae6b63e60"
  382. },
  383. "id": "d5ec8fb2-f87e-46f5-bcd9-849589d75b2b"
  384. }
  385. ]
  386. },
  387. "id": "fd59b589-e25e-40ce-b782-9fb085bae9f4"
  388. }
  389. ],
  390. "false": [
  391. {
  392. "command": "EVENT_CALL_CUSTOM_EVENT",
  393. "args": {
  394. "customEventId": "058cb3f2-19ed-4fdd-a966-a97ae6b63e60",
  395. "__collapse": true
  396. },
  397. "id": "56abe7e8-8781-4b9b-b325-6b7282c81a8c"
  398. }
  399. ]
  400. },
  401. "id": "d2869856-4cad-45ac-88ab-5b609aeba2da"
  402. }
  403. ],
  404. "false": [
  405. {
  406. "command": "EVENT_CALL_CUSTOM_EVENT",
  407. "args": {
  408. "customEventId": "058cb3f2-19ed-4fdd-a966-a97ae6b63e60",
  409. "__collapse": true
  410. },
  411. "id": "80eb8450-10a4-4908-88c4-5fde7b150668"
  412. }
  413. ]
  414. },
  415. "id": "e6afe68d-a688-4ec8-847d-908ec0f67fdb"
  416. }
  417. ],
  418. "false": []
  419. },
  420. "id": "b0ef2cea-e2ef-4165-b3bb-55dcefe6443a"
  421. }
  422. ],
  423. "leaveScript": []
  424. }