Power up – Invulnerability

Type: Player Brain
Level: 2 star
Pages: 1
Description: When activated this kode gives the player 10 seconds of invulnerability which is indicated by a hologram effect.

This kode is not standalone and needs to be added to a player brain through call page or Multibrain. Is designed to be used with the Weapon brain Melee Weapon – Ice Armor.


  1. WHEN [once]
  2. …WHEN DO [numvar:invulnerability duration][equals][10 ]// change this number for longer or shorter invulnerability time
  3. …WHEN DO [numvar: default color intensity][equals][color intensity]
  4. …WHEN DO [play fx][fx:Metal Debris]
  5. WHEN DO [color intensity][equals][0]
  6. WHEN DO [hologram][custom color]
  7. WHEN DO [plax fx][fx:Sparkle]
  8. WHEN DO [invulnerable][equals][true]
  9. WHEN [equipment][changed][or][countdown timer][invulnerability duration]
  10. …WHEN DO [play fx][fx:Metal debris]
  11. …WHEN DO [color intensity][equals][numvar: default color intensity]
  12. …WHEN DO  [invulnerable][equals][false]
  13. …WHEN DO [remove brain][this brain]


Add this ability on a cooldown
At the moment this invulnerability only happens when you first activate the brain, then it is gone. It is designed to be added to a weapon brain like this:
WHEN[started to] [equipped] DO [owner][add brain][Power Up – Invulnerability]
This is a cooldown mechanic. When the player presses the Left button they get 3 seconds of invulnerability and a 10 second cooldown period until they can activate it again. To implement this you will need to make a new brain (best use a templated logic cube) and use IWP instead of the gallery brain.

  1. WHEN [not][boolvar:cooldown]
  2. …WHEN [left bumper][pressed] DO [boolvar:skill][equals][true]
  3. WHEN [boolvar:skill]
  4. …WHEN [started to] DO [numvar:invulnerability duration][equals][3]
  5. …/…WHEN DO [numvar: default color intensity][equals][color intensity]
  6. …/…WHEN DO [play fx][fx:Metal Debris]
  7. …WHEN DO [color intensity][equals][0]
  8. …WHEN DO [hologram][custom color]
  9. …WHEN DO [plax fx][fx:Sparkle]
  10. …WHEN DO [invulnerable][equals][true]
  11. …WHEN [equipment][changed][or][countdown timer][invulnerability duration]
  12. …/…WHEN DO [play fx][fx:Metal debris]
  13. …/…WHEN DO [color intensity][equals][numvar: default color intensity]
  14. …/…WHEN DO [invulnerable][equals][false]
  15. …/…WHEN DO [boolvar:skill][equals][false]
  16. …/…WHEN DO [boolvar:cooldown][equals][true]
  17. WHEN [boolvar:cooldown]
  18. …WHEN [started to] DO [numvar:default cooldown][equals][10] // the length of the cooldown
  19. …/…WHEN DO [numvar:cooldown][equals][numvar:default cooldown]
  20. …WHEN [countdown timer][numvar:default cooldown] DO [boolvar:countdown][equals][false]
  21. …WHEN [countdown timer][loop] DO [numvar:cooldown][decrement by][1]
  22. …WHEN [duration][numvar:default cooldown] DO [display meter][numvar:cooldown][max][numvar:default cooldown][screen top center][color:blue]



Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: