Pickup – Poison

Type: Hazards
Level: 3 star
Pages: 1
Description:To be put in objects that are dangerous to touch. When the player bumps it the Damage over Time brain is activated in their brain, it damages the player by 10 health points and then disappears in a cloud of green mist.

Kode

  1. WHEN [bump][Player] DO [it][add brain][Damage over Time]
  2. …WHEN DO [damage][it][10]
  3. …WHEN DO [play sound][UI Warning]
  4. …WHEN DO [play fx][fx:Poison Cloud]
  5. …WHEN DO [destroy]

Alterations

Just dangerous once
You do not need the Damage over time brain to make this work as a hazard. Remove the DO side of line 1 and it will just be a dangerous object the damages the player once.

Play a sound
Despite being made by Team Dakota this brain has a fault in it. Line 3 does not work. Why? There is only one frame for the bump-destroy, so the objects does not have time to play any sounds. If you want the warning sound you will have to do this.
Create a templated speaker gizmo
Add to its brain

WHEN [once]  DO [play sound][UI Warning]
…WHEN DO [destroy]

Change line 3 to
WHEN [started to] DO [create][IWP:Speaker gizmo]

Poisonous area
You can apply this brain (with a little alteration) to a fog special effect and create a poisonous vapour

  1. WHEN [started to][detect][player] DO
  2. …WHEN [not][it][has brain][Damage Over time] DO [it][add brain][Damage over time]
  3. …WHEN DO [damage][it][10]

 

 

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: