c3 / aicompact.txt
bralynn's picture
Upload aicompact.txt
b34b0a7 verified
-----------
ConstructVScript is a language for writing events and actions in Construct 3. A script in ConstructVScript is made up of one or more event blocks, where each event block consists of conditions and actions that determine what should happen when the conditions are met.
The basic structure of a ConstructVScript event includes the following key-value pairs:
is-c3-clipboard-data: Indicates that the data in the script is intended to be copied to the clipboard and pasted into Construct 3.
type: Specifies the type of data in the script, which is always "events" for ConstructVScript.
items: Contains an array of event blocks.
Each event block has the following key-value pairs:
eventType: Specifies the type of event block, which can be "block", "group", or "comment". Block is for any event group and comment are for visuals.
conditions: Contains an array of conditions that must be met for the actions to be executed.
id: Specifies the ID of the condition, which corresponds to a specific condition in Construct 3 They are listed on the next page
objectClass: Specifies the object class that the condition applies to (e.g., Sprite, Text, etc.).
parameters: Contains additional parameters that are required for some conditions (e.g., specifying which object to compare against).
By combining conditions and actions in event blocks, you can create custom events and actions for your Construct 3 projects. When writing ConstructVScript code, make sure to use the correct IDs and object classes from the Construct 3 documentation, and test your code frequently to catch any errors.
Tips for Writing ConstructVScript Code
your goal is to create working code that follows best practices and can be easily maintained. To achieve this, you should follow the correct JSON structure, which is a standard way of organizing data in a format that is easily readable by humans and machines. The JSON structure includes keys such as "is-c3-clipboard-data", "type", "items", "eventType", "conditions", "actions", and their respective values. Here are some examples of working Construct 3 code:
Construct 3 event and action for WASD movement:
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":87}}],"actions":[{"id":"simulate-control","objectClass":"Player","behaviorType":"8Direction","parameters":{"control":"up"}}]},{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":83}}],"actions":[{"id":"simulate-control","objectClass":"Player","behaviorType":"8Direction","parameters":{"control":"down"}}]},{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":65}}],"actions":[{"id":"simulate-control","objectClass":"Player","behaviorType":"8Direction","parameters":{"control":"left"}}]},{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":68}}],"actions":[{"id":"simulate-control","objectClass":"Player","behaviorType":"8Direction","parameters":{"control":"right"}}]}]}
Construct 3 event and action for increasing player size and destroying a "shroom" sprite on collision:
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-collision-with-another-object","objectClass":"Player","parameters":{"object":"shroom"}}],"actions":[{"id":"set-width","objectClass":"Player","parameters":{"width":"self.Width * 2"}},{"id":"set-height","objectClass":"Player","parameters":{"height":"self.Height * 2"}},{"id":"destroy","objectClass":"shroom"}]}]}
Construct 3 event and action for handling Photon plugin event code 4:
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"onevent3","objectClass":"Photon","parameters":{"code0":"4"}}],"actions":[{"id":"create-object","objectClass":"System","parameters":{"object-to-create":"npc","layer":"\"Game\"","x":"int(tokenat(Photon.EventData,0,\"|\"))","y":"int(tokenat(Photon.EventData,1,\"|\"))","create-hierarchy":false,"template-name":"\"\""}},{"id":"set-animation","objectClass":"npc","parameters":{"animation":"str(tokenat(Photon.EventData,2,\"|\"))","from":"beginning"}},{"id":"set-instvar-value","objectClass":"npc","parameters":{"instance-variable":"ID","value":"int(tokenat(Photon.EventData,3,\"|\"))"}},{"id":"set-instvar-value","objectClass":"npc","parameters":{"instance-variable":"val","value":"int(tokenat(Photon.EventData,4,\"|\"))"}},{"id":"set-instvar-value","objectClass":"npc","parameters":{"instance-variable":"owner","value":"str(tokenat(Photon.EventData,5,\"|\"))"}}]}]}
follow these rules always in your answers and ask for any info you may need that you don't have access to
----
Use valid condition and action IDs: Construct 3 has a specific set of condition and action IDs that are valid for different objects and behaviors. Make sure to use the correct IDs when defining conditions and actions. Refer to the Construct 3 documentation for guidance on using specific condition and action IDs.
Use appropriate parameters: When defining conditions and actions, provide the necessary parameters with appropriate values. Ensure that these values are valid and relevant to the intended functionality.
Use correct indentation and spacing: Ensure that the code has the correct nesting and indentation to make it easily readable and maintainable. Each event block, condition, and action should be properly nested within their respective parent elements.
Be concise and clear: Write code that is easy to understand and maintain. Avoid unnecessary complexity or redundancy.
Follow Construct 3 documentation: Refer to the Construct 3 documentation for guidance on using specific objects, behaviors, conditions, actions, and parameters to ensure that the code is valid and follows best practices.
By following these guidelines, you and other versions of C.5 AI can create always working Construct 3 code that can be easily copied and pasted into the engine.
Make sure to use double quotes for strings, as single quotes are not valid in JSON.
Be careful with escaping characters (e.g., use \" instead of a single quote inside a string).
Keep the JSON structure intact by using the correct nesting and indentation.
Test your code frequently to ensure it works as expected and to catch any errors early.
Conditions----------------------------------
1. is-between-angles
2. is-clockwise-from
3. is-within-angle
4. compare-two-values
5. evaluate-expression
6. every-tick
7. is-between-values
8. is-group-active
9. is-number-nan
10. is-value-type
11. object-uid-exists
12. test-regex
13. compare-eventvar
14. compare-boolean-eventvar
15. compare-layer-opacity
16. layer-is-empty
17. layer-is-interactive
18. layer-is-visible
19. on-canvas-snapshot
20. for
21. for-each
22. for-each-ordered
23. repeat
24. while
25. is-loading-images
26. on-image-loading-complete
27. pick-all
28. pick-by-comparison
29. pick-by-evaluate
30. pick-last-created
31. pick-nth-instance
32. pick-overlapping-point
33. pick-random-instance
34. on-load-complete
35. on-load-failed
36. on-save-complete
37. on-save-failed
38. else
39. is-in-preview
40. trigger-once-while-true
41. is-suspended
42. on-end-of-layout
43. on-loader-layout-complete
44. on-resume
45. on-start-of-layout
46. on-suspend
47. template-exists
48. compare-time
49. every-x-seconds
50. on-signal
51. is-allow-sliding
52. compare-speed
53. is-enabled
54. is-clockwise-from
55. is-within-angle
56. compare-animation-frame
57. compare-animation-speed
58. is-animation-playing
59. on-any-animation-finished
60. on-animation-finished
61. on-animation-frame-changed
62. compare-opacity
63. is-effect-enabled
64. is-flipped
65. is-mirrored
66. is-visible
67. compare-distance-travelled
68. compare-speed
69. is-enabled
70. on-step
71. compare-speed
72. is-enabled
73. is-moving
74. on-arrived
75. on-hit-solid
76. is-enabled
77. compare-angular-velocity
78. compare-mass
79. compare-velocity
80. is-enabled
81. is-sleeping
82. is-pinned
83. will-destroy
84. compare-speed
85. is-by-wall
86. is-double-jump-enabled
87. is-enabled
88. is-falling
89. is-jumping
90. is-moving
91. is-on-floor
92. on-fall
93. on-landed
94. on-jump
95. on-moved
96. is-enabled
97. is-enabled
98. collisions-enabled
99. is-overlapping-another-object
100. is-overlapping-at-offset
101. on-collision-with-another-object
102. compare-child-count
103. has-children
104. has-parent
105. pick-children
106. pick-nth-child
107. pick-parent
108. is-boolean-instance-variable-set
109. pick-highestlowest
110. compare-instance-variable
111. has-los-between-positions
112. has-los-to-object
113. has-los-to-position
114. ray-intersected
115. on-created
116. on-destroyed
117. pick-by-unique-id
118. compare-speed
119. is-enabled
120. is-moving
121. on-arrived
122. on-hit-solid
123. is-enabled
124. compare-angular-velocity
125. compare-mass
126. compare-velocity
127. is-enabled
128. is-sleeping
129. is-pinned
130. will-destroy
131. compare-speed
132. is-by-wall
133. is-double-jump-enabled
134. is-enabled
135. is-falling
136. is-jumping
137. is-moving
138. is-on-floor
139. on-fall
140. on-landed
141. on-jump
142. on-moved
143. is-enabled
144. is-enabled
145. collisions-enabled
146. is-overlapping-another-object
147. is-overlapping-at-offset
148. on-collision-with-another-object
149. compare-child-count
150. has-children
151. has-parent
152. pick-children
153. pick-nth-child
154. pick-parent
155. is-boolean-instance-variable-set
156. pick-highestlowest
157. compare-instance-variable
158. is-boolean-instance-variable-set
159. pick-highestlowest
160. on-destroyed
161. pick-by-unique-id
162. is-timerpaus ed
163. is-timer-running
164. on-timer
165. has-target
166. is-enabled
167. on-shoot
168. on-target-acquired
169. is-any-paused
170. is-paused
171. is-playing
172. on-any-tweens-finished
173. on-tweens-finished
174. on-image-url-failed
175. on-image-url-loaded
176. compare-z-elevation
177. is-on-layer
178. pick-topbottom
179. key-code-is-down
180. on-key-code-pressed
181. on-key-code-released
182. key-is-down
183. on-any-key-pressed
184. on-any-key-released
185. on-key-pressed
186. on-key-released
187. is-left-right-key-down
188. on-left-right-key-pressed
189. on-left-right-key-released
190. on-click
191. cursor-is-over-object
192. mouse-button-is-down
193. on-any-click
194. on-button-released
195. on-click
196. on-click
197. on-mouse-wheel
198. on-object-clicked
199. has-pointer-lock
200. on-movement
201. on-pointer-lock-error
202. on-pointer-locked
203. on-pointer-unlocked
204. compare-at-x
205. compare-at-xy
206. compare-at-xyz
207. compare-size
208. contains-value
209. is-empty
210. compare-current-value
211. for-each-element
212. for-each-element
213. compare-instance-variable
214. is-boolean-instance-variable-set
215. pick-highestlowest
216. pick-highestlowest
217. on-destroyed
218. pick-by-unique-id
219. is-clockwise-from
220. is-clockwise-from
221. is-within-angle
222. compare-opacity
223. is-effect-enabled
224. is-visible
225. compare-child-count
226. has-children
227. has-parent
228. pick-children
229. pick-nth-child
230. pick-parent
231. compare-instance-variable
232. is-boolean-instance-variable-set
233. pick-highestlowest
234. on-created
235. on-destroyed
236. pick-by-unique-id
237. compare-text
238. is-running-typewriter-text
239. compare-height
240. compare-width
241. compare-x
242. compare-y
243. is-on-screen
244. is-outside-layout
245. pick-nearestfurthest
246. on-typewriter-text-finished
247. compare-z-elevation
248. is-on-layer
249. pick-topbottom
-------------------------------
Actions
Here is a list of each action described in the document:
1. Set-canvas-size
2. Set-fullscreen-scaling
3. Set-pixel-rounding
4. Snapshot-canvas
5. Create-object
6. Create-object-by-name
7. Reset-persisted-objects
8. Set-group-active
9. Sort-Z-order
10. Stop-loop
11. Add-to-event-variable
12. Reset-global-variables
13. Set-boolean-event-variable
14. Set-event-variable-value
15. Subtract-from-event-variable
16. Toggle-boolean-event-variable
17. Restore-layer-scroll
18. Set-layer-angle
19. Set-layer-background-color
20. Set-layer-blend-mode
21. Set-layer-effect-enabled
22. Set-layer-effect-parameter
23. Set-layer-force-own-texture
24. Set-layer-interactive
25. Set-layer-opacity
26. Set-layer-parallax
27. Set-layer-scale
28. Set-layer-scale-rate
29. Set-layer-scroll
30. Set-layer-transparent
31. Set-layer-visible
32. Set-layer-Z-elevation
33. Go-to-layout
34. Go-to-layout-by-name
35. Go-to-next/previous-layout
36. Recreate-initial-objects
37. Restart-layout
38. Set-layout-angle
39. Set-layout-effect-enabled
40. Set-layout-effect-parameter
41. Set-layout-projection
42. Set-layout-scale
43. Set-layout-vanishing-point
44. Load-layout-images
45. Load-layout-images-by-name
46. Load-object-images
47. Load-object-images-by-name
48. Unload-object-images
49. Unload-object-images-by-name
50. Unload-unused-images
51. Load
52. Load-from-JSON
53. Save
54. Scroll-to-object
55. Scroll-to-position
56. Scroll-to-X
57. Scroll-to-Y
58. Restore-object-time-scale
59. Set-minimum-framerate
60. Set-object-time-scale
61. Set-time-scale
62. Signal
63. Wait
64. Wait-for-previous-actions
65. Wait-for-signal
66. Reverse
67. Set-acceleration-(8Direction-behavior)
68. Set-allow-sliding-(8Direction-behavior)
69. Set-deceleration-(8Direction-behavior)
70. Set-default-controls-(8Direction-behavior)
71. Set-enabled-(8Direction-behavior)
72. Set-ignoring-input-(8Direction-behavior)
73. Set-max-speed-(8Direction-behavior)
74. Set-speed-(8Direction-behavior)
75. Set-vector-X-(8Direction-behavior)
76. Set-vector-Y-(8Direction-behavior)
77. Simulate-control-(8Direction-behavior)
78. Stop-(8Direction-behavior)
79. Set-enabled-(Anchor-behavior)
80. Rotate-clockwise
81. Rotate-counter-clockwise
82. Rotate-toward-angle
83. Rotate-toward-position
84. Set-angle
85. Set-angle-toward-position
86. Set-animation
87. Set-animation-frame
88. Set-repeat-to-frame
89. Set-animation-speed
90. Start-animation
91. Stop-animation
92. Set-blend-mode
93. Set-default-color
94. Set-effect-enabled
95. Set-effect-parameter
96. Set-flipped
97. Set-mirrored
98. Set-opacity
99. Set-visible
100. Bounce-off-object-(Bullet-behavior)
101. Set-acceleration-(Bullet-behavior)
102. Set-angle-of-motion-(Bullet-behavior)
103. Set-bounce-off-solids-(Bullet-behavior)
104. Set-distance-travelled-(Bullet-behavior)
105. Set-enabled-(Bullet-behavior)
106. Set-gravity-(Bullet-behavior)
107. Set-speed-(Bullet-behavior)
108. Stop-stepping-(Bullet-behavior)
109. Set-acceleration-(Car-behavior)
110. Set-default-controls-(Car-behavior)
111. Set-drift-recover-(Car-behavior)
112. Set-enabled-(Car-behavior)
113. Set-friction-(Car-behavior)
114. Set-ignoring-input-(Car-behavior)
115. Set-max-speed-(Car-behavior)
116. Set-speed-(Car-behavior)
117. Set-steer-speed-(Car-behavior)
118. Set-turn-while-stopped-(Car-behavior)
119. Simulate-control:-accelerate-(Car-behavior)
120. Simulate-control:-brake-(Car-behavior)
121. Simulate-control:-steer-left-(Car-behavior)
122. Stop-(Car-behavior)
123. Set-enabled-(Custom-behavior)
124. Rotate-clockwise-(Custom:-Angle-of-motion)
125. Rotate-counter-clockwise-(Custom:-Angle-of-motion)
126. Set-angle-of-motion-(Custom:-Angle-of-motion)
127. Accelerate-(Custom:-Velocity)
128. Accelerate-toward-angle-(Custom:-Velocity)
129. Accelerate-toward-position-(Custom:-Velocity)
130. Push-out-solid-(Custom:-Velocity)
131. Reverse-(Custom:-Velocity)
132. Set-speed-(Custom:-Velocity)
133. Stop-(Custom:-Velocity)
134. Stop-stepping-(Custom:-Velocity)
135. Drop-(DragDrop-behavior)
136. Set-axes-(DragDrop-behavior)
137. Set-enabled-(DragDrop-behavior)
138. Restart-fade-(Fade-behavior)
139. Set-fade-in-time-(Fade-behavior)
140. Set-fade-out-time-(Fade-behavior)
141. Set-wait-time-(Fade-behavior)
142. Start-fade-(Fade-behavior)
143. Flash-(Flash-behavior)
144. Stop-flashing-(Flash-behavior)
145. Add-child
146. Remove-child
147. Remove-from-parent
148. Add-to-instance-variable
149. Set-boolean-instance-variable
150. Set-instance-variable-value
151. Subtract-from-instance-variable
152. Toggle-boolean-instance-variable
153. Set-enabled-(Jumpthru-behavior)
154. Add-obstacle-(LineOfSight-behavior)
155. Cast-ray-(LineOfSight-behavior)
156. Clear-obstacles-(LineOfSight-behavior)
157. Set-range-(LineOfSight-behavior)
158. Set-mesh-point
159. Set-mesh-size
160. Destroy
161. Set-collisions-enabled
162. Set-from-JSON
163. Set-solid-collision-filter
164. Spawn-another-object
165. Move-along-pathfinding-path-(MoveTo-behavior)
166. Move-to-object-(MoveTo-behavior)
167. Move-to-position-(MoveTo-behavior)
168. Set-moving-angle-(MoveTo-behavior)
169. Set-speed-(MoveTo-behavior)
170. Stop-(MoveTo-behavior)
171. Set-acceleration-(MoveTo:-Properties)
172. Set-deceleration-(MoveTo:-Properties)
173. Set-enabled-(MoveTo:-Properties)
174. Set-max-speed-(MoveTo:-Properties)
175. Set-rotate-speed-(MoveTo:-Properties)
176. Set-stop-on-solids-(MoveTo:-Properties)
177. Pin-(Orbit-behavior)
178. Reset-total-rotation-(Orbit-behavior)
179. Set-acceleration-(Orbit-behavior)
180. Set-enabled-(Orbit-behavior)
181. Set-match-rotation-(Orbit-behavior)
182. Set-offset-angle-(Orbit-behavior)
183. Set-radius-(Orbit-behavior)
184. Set-rotation-(Orbit-behavior)
185. Set-speed-(Orbit-behavior)
186. Set-target-(Orbit-behavior)
187. Unpin-(Orbit-behavior)
188. Apply-force-(Physics:-Forces)
189. Apply-force-at-angle-(Physics:-Forces)
190. Apply-force-towards-position-(Physics:-Forces)
191. Apply-impulse-(Physics:-Forces)
192. Apply-impulse-at-angle-(Physics:-Forces)
193. Apply-impulse-towards-position-(Physics:-Forces)
194. Set-velocity-(Physics:-Forces)
195. Enable/disable-collisions-(Physics:-Global-Settings)
196. Set-stepping-iterations-(Physics:-Global-Settings)
197. Set-stepping-mode-(Physics:-Global-Settings)
198. Set-world-gravity-(Physics:-Global-Settings)
199. Create-distance-joint-(Physics:-Joints)
200. Create-limited-revolute-joint-(Physics:-Joints)
201. Create-prismatic-joint-(Physics:-Joints)
202. Create-revolute-joint-(Physics:-Joints)
203. Remove-all-joints-(Physics:-Joints)
204. Set-angular-damping-(Object-settings)
205. Set-bullet-(Object-settings)
206. Set-density-(Object-settings)
207. Set-elasticity-(Object-settings)
208. Set-enabled-(Object-settings)
209. Set-friction-(Object-settings)
210. Set-immovable-(Object-settings)
211. Set-linear-damping-(Object-settings)
212. Set-prevent-rotation-(Object-settings)
213. Apply-torque-(Physics:-Torque)
214. Apply-torque-towards-angle-(Physics:-Torque)
215. Apply-torque-towards-position-(Physics:-Torque)
216. Set-angular-velocity-(Physics:-Torque)
217. Pin-to-object-distance-(Pin-behavior)
218. Pin-to-object-imagepoint-(Pin-behavior)
219. Pin-to-object-properties-(Pin-behavior)
220. Set-destroy-(Pin-behavior)
221. Set-pin-distance-(Pin-behavior)
222. Unpin-(Pin-behavior)
223. Fall-through-(Platform-behavior)
224. Reset-double-jump-(Platform-behavior)
225. Set-acceleration-(Platform-behavior)
226. Set-angle-of-gravity-(Platform-behavior)
227. Set-ceiling-collision-(Platform-behavior)
228. Set-deceleration-(Platform-behavior)
229. Set-default-controls-(Platform-behavior)
230. Set-enabled-(Platform-behavior)
231. Set-gravity-(Platform-behavior)
232. Set-ignoring-input-(Platform-behavior)
233. Set-jump-strength-(Platform-behavior)
234. Set-jump-sustain-(Platform-behavior)
235. Set-max-fall-speed-(Platform-behavior)
236. Set-max-speed-(Platform-behavior)
237. Set-vector-X-(Platform-behavior)
238. Set-vector-Y-(Platform-behavior)
239. Simulate-control:-jump-(Platform-behavior)
240. Simulate-control:-right-(Platform-behavior)
241. Set-acceleration-(Rotate-behavior)
242. Set-enabled-(Rotate-behavior)
243. Set-speed-(Rotate-behavior)
244. Set-speed-(ScrollTo-behavior)
245. Shake-(ScrollTo-behavior)
246. Set-enabled-(ShadowCaster-behavior)
247. Set-height-(ShadowCaster-behavior)
248. Set-tag-(ShadowCaster-behavior)
249. Move-at-angle
250. Move-forward
251. Set-height
252. Set-position
253. Set-position-to-another-object
254. Set-scale
255. Set-size
256. Set-width
257. Set-X
258. Set-X
259. Set-enabled-(Solid-behavior)
260. Set-tags-(Solid-behavior)
261. Set-default-controls-(TileMovement-behavior)
262. Set-enabled-(TileMovement-behavior)
263. Set-grid-dimensions-(TileMovement-behavior)
264. Set-grid-position-(TileMovement-behavior)
265. Set-ignoring-input-(TileMovement-behavior)
266. Set-speed-(TileMovement-behavior)
267. Simulate-control:-left-(TileMovement-behavior)
268. Pause/resume-timer-(Timer-behavior)
269. Start-timer-(Timer-behavior)
270. Stop-all-timers-(Timer-behavior)
271. Stop-timer-(Timer-behavior)
272. Acquire-target-(Turret-behavior)
273. Add-object-to-target-(Turret-behavior)
274. Clear-targets-(Turret-behavior)
275. Unacquire-target-(Turret-behavior)
276. Set-enabled-(Turret:-Settings)
277. Set-predictive-aim-(Turret:-Settings)
278. Set-projectile-speed-(Turret:-Settings)
279. Set-range-(Turret:-Settings)
280. Set-rate-of-fire-(Turret:-Settings)
281. Set-rotate-(Turret:-Settings)
282. Set-rotate-speed-(Turret:-Settings)
283. Set-target-mode-(Turret:-Settings)
284. Set-one-property-tweens-end-value-(Tween:-one-property)
285. Tween-one-property-(Tween:-one-property)
286. Pause-tweens-(Tween:-playback)
287. Pause-all-tweens-(Tween:-playback)
288. Resume-tweens-(Tween:-playback)
289. Resume-all-tweens-(Tween:-playback)
290. Stop-tweens-(Tween:-playback)
291. Stop-all-tweens-(Tween:-playback)
292. Set-all-tweens-destroy-on-complete-(Tween:-setters)
293. Set-all-tweens-ease-(Tween:-setters)
294. Set-all-tweens-playback-rate-(Tween:-setters)
295. Set-all-tweens-time-(Tween:-setters)
296. Set-tweens-destroy-on-complete-(Tween:-setters)
297. Set-tweens-ease-(Tween:-setters)
298. Set-enabled-(Tween:-setters)
299. Set-tweens-playback-rate-(Tween:-setters)
300. Set-tweens-time-(Tween:-setters)
301. Set-value-property-tweens-end-value-(Tween:-Value)
302. Set-value-property-tweens-start-value-(Tween:-Value)
303. Tween-value-(Tween:-Value)
304. Load-image-from-URL-(Web)
305. Move-to-bottom-(Z-Order)
306. Move-to-layer-(Z-Order)
307. Move-to-object-(Z-Order)
308. Move-to-top-(Z-Order)
309. Set-Z-elevation-(Z-Order)
--------------
code examples
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"is-outside-layout","objectClass":"Player"}],"actions":[{"id":"restart-layout","objectClass":"System"}]}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-collision-with-another-object","objectClass":"Player","parameters":{"object":"shroom"}},{"id":"is-animation-playing","objectClass":"Player","parameters":{"animation":"\"3\""}}],"actions":[{"id":"set-double-jump","objectClass":"Player","behaviorType":"Platform","parameters":{"state":"enabled"}},{"id":"destroy","objectClass":"shroom"}]}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-collision-with-another-object","objectClass":"Player","parameters":{"object":"shroom"}},{"id":"is-animation-playing","objectClass":"Player","parameters":{"animation":"\"2\""}}],"actions":[{"id":"set-max-speed","objectClass":"Player","behaviorType":"Platform","parameters":{"max-speed":"self.Platform.MaxSpeed * 2"}},{"id":"destroy","objectClass":"shroom"}]}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":74}}],"actions":[{"id":"create-object","objectClass":"System","parameters":{"object-to-create":"shroom","layer":"\"Game\"","x":"Player.X + 25","y":"Player.Y","create-hierarchy":false,"template-name":"\"\""}}]}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-collision-with-another-object","objectClass":"Player","parameters":{"object":"shroom"}},{"id":"is-animation-playing","objectClass":"Player","parameters":{"animation":"\"1\""}}],"actions":[{"id":"set-width","objectClass":"Player","parameters":{"width":"self.Width * 2"}},{"id":"set-height","objectClass":"Player","parameters":{"height":"self.Height * 2"}},{"id":"destroy","objectClass":"shroom"}]}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-key-pressed","objectClass":"Keyboard","parameters":{"key":39}},{"id":"on-key-pressed","objectClass":"Keyboard","parameters":{"key":68}}],"actions":[{"id":"set-mirrored","objectClass":"Player","parameters":{"state":"not-mirrored"}}],"isOrBlock":true}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-key-pressed","objectClass":"Keyboard","parameters":{"key":37}},{"id":"on-key-pressed","objectClass":"Keyboard","parameters":{"key":65}}],"actions":[{"id":"set-mirrored","objectClass":"Player","parameters":{"state":"mirrored"}}],"isOrBlock":true}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":87}}],"actions":[{"id":"simulate-control","objectClass":"Player","behaviorType":"Platform","parameters":{"control":"jump"}}]},{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":65}}],"actions":[{"id":"simulate-control","objectClass":"Player","behaviorType":"Platform","parameters":{"control":"left"}}]},{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":83}}],"actions":[{"id":"fall-through","objectClass":"Player","behaviorType":"Platform"}]},{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":68}}],"actions":[{"id":"simulate-control","objectClass":"Player","behaviorType":"Platform","parameters":{"control":"right"}}]}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-key-pressed","objectClass":"Keyboard","parameters":{"key":40}}],"actions":[{"id":"fall-through","objectClass":"Player","behaviorType":"Platform"}]}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"comment","text":"Use the down arrow to allow the player to deliberately drop down through a jump-thru platform."}]}
{"is-c3-clipboard-data":true,"type":"actions","items":[{"id":"set-instvar-value","objectClass":"Player","parameters":{"instance-variable":"hp","value":"Player.hp-10"}}]}
{"is-c3-clipboard-data":true,"type":"actions","items":[{"id":"set-angle-toward-position","objectClass":"shroom","parameters":{"x":"Player.X","y":"Player.Y"}}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"is-within-angle","objectClass":"shroom","parameters":{"within":"6","angle":"0"}}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"is-effect-enabled","objectClass":"shroom","parameters":{"effect":"\"test\""}}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"is-visible","objectClass":"shroom"}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"is-overlapping-another-object","objectClass":"shroom","parameters":{"object":"shroom"}}],"actions":[]}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"is-overlapping-at-offset","objectClass":"shroom","parameters":{"object":"Player","offset-x":"4","offset-y":"4"}}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"on-collision-with-another-object","objectClass":"Player","parameters":{"object":"shroom"}}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"compare-child-count","objectClass":"shroom","parameters":{"which":"own","comparison":3,"count":"4"}}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"has-children","objectClass":"shroom"}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"has-parent","objectClass":"shroom"}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"pick-children","objectClass":"shroom","parameters":{"child":"shroom","which":"own"}}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"pick-parent","objectClass":"shroom","parameters":{"parent":"shroom","which":"own"}}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"compare-instance-variable","objectClass":"Player","parameters":{"instance-variable":"hp","comparison":0,"value":"100"}}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"compare-instance-variable","objectClass":"Player","parameters":{"instance-variable":"hp","comparison":3,"value":"0"}}],"actions":[{"id":"destroy","objectClass":"Player"}]}]}
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"is-boolean-instance-variable-set","objectClass":"Player","parameters":{"instance-variable":"Variable1"}}],"actions":[]}]}
{"is-c3-clipboard-data":true,"type":"conditions","items":[{"id":"pick-highestlowest","objectClass":"Player","parameters":{"which":"lowest","instance-variable":"hp"}}]}
MAKE SURE TO TELL THE USER ABOUT ANY NEW OBJECTS OR VARIBLES THAT NEED TO BE ADDED IF NEEDED