Follower Healer

Type: Allies brain
Level: 3 star
Pages: 1
Description: An ally NPC that will heal the player when they get close as well as attack enemies.
Note: It looks like there is 3 pages but page 2 is blank

Kode

  1. WHEN [once] DO [team][equals][team 1]

    Determines that the player is an ally and offers help

  2. …WHEN [after][objects closer than][5][player][allies] DO [objvar:my leader][equals][it]
  3. …/…WHEN [duration timer][2] DO [say][text:Im here to help]
  4. WHEN [objvar:my leader][equal to][nothing]
  5. …WHEN [objects closer than][5][allies] DO [objvar:my leader][equals][it]
  6. WHEN DO [move][toward][objvar:my leader][min distance][4]

    Healing mechanic

  7. WHEN [for each of][objects closer than][10][allies]
  8. …WHEN [it][health][less than][0.75][multiplied by][it][max health]
  9. …/…WHEN [countdown timer][2][loop][trigger on start]
  10. …/…/…WHEN DO [emote][cheer]
  11. …/…/…WHEN DO [heal][it][15]
  12. …/…/…WHEN DO [play fx][fx:Heal][on][it]

    Attack kode

  13. WHEN [hit by attack][enemies] DO [objvar:my enemy][equals][it]
  14. WHEN [not][objvar:my enemy][is dead] DO [move][toward][objvar:my enemy]
  15. …WHEN [distance to][objvar:my enemy][less than][1] DO [attack][objvar:my enemy][end combo]

 

Alterations

Heal regardless of how much damage and heal completely rather than a small amount

  1. WHEN [it][health][less than][it][max health]
  2. …/…WHEN [countdown timer][2][loop][trigger on start]
  3. …/…/…WHEN DO [emote][cheer]
  4. …/…/…WHEN DO [heal][it][(][it][ max health][)]

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: