Follower Melee

Type: Allies brain
Level: 3 star
Pages: 1
Description: An ally NPC that will attack enemies with an axe.


  1. WHEN [once] DO  [equip][Woodsmans Axe]
  2. …WHEN DO [team][equals][team 1]Determines that the player is an ally and offers help
  3. …WHEN [after][objects closer than][5][player][allies] DO [objvar:my leader][equals][it]
  4. …/…WHEN [duration timer][2] DO [say][text:Im here to help]
  5. WHEN [objvar:my leader][equal to][nothing]
  6. …WHEN [objects closer than][5][allies] DO [objvar:my leader][equals][it]

    Attack kode

  7. WHEN [enemies][objects closer than][17]
  8. …WHEN DO [objvar:my enemy][equals][it]
  9. …WHEN [else] DO [move][toward][objvar:my leader][min distance][4]
  10. WHEN [not][objvar:my enemy][is dead] DO [move][toward][objvar:my enemy]
  11. …WHEN [distance to][objvar:my enemy][less than][2]
  12. …/…WHEN [countdown timer][numvar:pause attack][loop] DO [attack][objvar:my enemy][with windup][end combo]
  13. …/…/…WHEN DO [numvar:pause attack][equals][random number][0.5][to][2.5]



Show health bar over head when attacked


WHEN [health][changed] DO [boolvar:show health][equals][true]
WHEN [boolvar:show health] DO [display meter][blue][heath][above][small HUD]
…WHEN [countdown timer] DO [boolvar:show health][equals][false]


Comments are closed.

Website Powered by

Up ↑

%d bloggers like this: