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
- WHEN [duration timer][numvar:PoisonTimer]
- …WHEN DO [display][icon:Poison Cloud][round][timer seconds remaining][screen top right][large font]
- …WHEN [countdown timer][3.3][loop] DO [play fx][fx:Poison cloud][on][me]
- …/…WHEN DO [play sound][sound:UI Warning]
- …/…WHEN DO [damage][me][10][without hit reaction]
- …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.
- WHEN [duration timer][numvar:PoisonTimer]
- …WHEN DO [display][round][timer seconds remaining][above][large font]
- …WHEN DO [play fx][fx:Poison cloud][on][me]
- …WHEN [countdown timer][3.3][loop] DO
- …/…WHEN DO [play sound][sound:UI Warning]
- …/…WHEN DO [damage][me][10][without hit reaction]
- …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]