Follower – Ranged and Melee

Type: Allies brain
Level: 3 star
Pages: 1
Description: NPC Ally brain. This character is armed with a Kodian Blaster and will fire at the enemy at distance but unequip the blaster and punch them at distance.

Kode

  1. WHEN [once] DO  [equip][Kodian Blaster]
  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:I will protect you]
  5. WHEN [objvar:my leader][equal to][nothing]
  6. …WHEN [objects closer than][5][allies] DO [objvar:my leader][equals][it]
  7. WHEN [enemies][objects closer than][20] [minus][dead objects]
  8. …WHEN [countdown timer][1][loop] DO [objvar:myenemy][equals][it]
  9. …WHEN [else] DO [move][toward][my leader][min distance][4]Attack kode
  10. WHEN [not][objvar:my enemy][is dead] DO [move][toward][objvar:my enemy][min distance][2]
  11. …WHEN [countdown timer][pause attack][loop]
  12. …/…WHEN [distance to][objvar:my enemy][less than][3]
  13. …/…/…WHEN DO[unequip][to inventory]
  14. …/…/…WHEN DO [attack][objvar:my enemy]
  15. …/…/…WHEN [else] DO [equip][inventory]
  16. …/…/…/…WHEN DO [shoot][at][objvar:my enemy][without hit reaction]
  17. …/…WHEN DO [numvar:pause attack][equals][random number][0.5][to [1.25]

Alterations

Bare in mind that all Follower Brains can be made into enemy brains by changing [Team 1][to [Team 2]. This brain made into an enemy is particularly deadly.

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: