Damage Over Time

Type: Hazards
Level: 2 star
Pages: 1
Description: This brain affects the owner by putting a poison cloud around them, activating a countdown and damage them every few seconds. Examples of use may be a poisonous plant, when touched activates this brain. Use this kode.

WHEN [bump][player] DO [it][add brain][brain gallery: Damage Over Time]

Kode

  1. WHEN [duration timer][numvar:PoisonTimer]
  2. …WHEN DO [display][icon:Poison Cloud][round][timer seconds remaining][screen top right][large font]
  3. …WHEN [countdown timer][3.3][loop] DO [play fx][fx:Poison cloud][on][me]
  4. …/…WHEN DO [play sound][sound:UI Warning]
  5. …/…WHEN DO [damage][me][10][without hit reaction]
  6. …WHEN [else] DO [remove brain][this brain]

 

Alterations

Make the poison cloud more localised
The large display of the countdown seems a bit obtrusive to me. I think this is better. It puts a poison cloud on the player all the time, and the countdown above his head.

  1. WHEN [duration timer][numvar:PoisonTimer]
  2. …WHEN DO [display][round][timer seconds remaining][above][large font]
  3. …WHEN DO [play fx][fx:Poison cloud][on][me]
  4. …WHEN [countdown timer][3.3][loop] DO
  5. …/…WHEN DO [play sound][sound:UI Warning]
  6. …/…WHEN DO [damage][me][10][without hit reaction]
  7. …WHEN [else] DO [remove brain][this brain]

Affect the player as the poison takes effect.
At the moment the player can run around and do whatever while the poison cloud damages him. It might be a better effect if he finds it difficult to move or there is an effect.

Controller shake
Add between 3 and 4
WHEN DO [vibrate][light vibrate]

Poisoned emote
Add between 3 and 4
WHEN DO [emote][emote:stunned]

Difficulty moving when poisoned

Add line 2 as child line to line 1
…WHEN DO [numvar:speed][equals][ground speed]

Add as child line to line 3
…WHEN DO [ground speed][equals][0.5]
…WHEN DO [camera shake]

Change line 7 to

…WHEN [else]
…/…WHEN DO[ground speed][equals][numvar:speed]
…/…WHEN DO [remove brain][this brain]

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: