Type: Prop Brain
Level: not in gallery
Pages: 1
Description: Found in the Astro Pickaxe,Magicians Torch, Woodmans Torch. When you interact with the object it is equipped and the power is turned on. When dropped/unequipped the axe power is automatically turned off.
Kode
Astro Pickaxe
- WHEN [not equipped][and not][attached]
- …WHEN [interacted] DO [it][equip][me]
- …WHEN [started to] DO [power off] // when the object is not equipped (before it is picked up and after it is dropped) its power is off
- …/…WHEN DO [[play sound][sound: Mechanical Astro Pickaxe Power Off]
- …WHEN [else]
- …/…WHEN [started to] DO [power on]
- …/…/…WHEN DO [play sound][sound:Mechanical Astro PickAxe Power On]
Magician’s Torch and Woodman’s Torch
- WHEN [not][equipped]
- …WHEN DO [power off]
- …WHEN [detect][player]
- …/…WHEN [interacted] DO [it][equip][me]
- WHEN [equipped] DO [power on]
Alterations
Astro Pickaxe
Lines 4 and 7 are completely unnecessary as the prop should contain instructions in brain properties/sound to play these sound effects. However the power off sound effect is missing in brain properties. Add it there and you can remove lines 4 and 7.
Magicians Torch
Line 3 is pretty superfluous as interactable objects only activate when detected by the player from the kode in the players brain.