bosstrigger.gbsres 15 KB

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