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
- WHEN [once] DO [team][equals][team 1]
Determines that the player is an ally and offers help
- …WHEN [after][objects closer than][5][player][allies] DO [objvar:my leader][equals][it]
- …/…WHEN [duration timer][2] DO [say][text:Im here to help]
- WHEN [objvar:my leader][equal to][nothing]
- …WHEN [objects closer than][5][allies] DO [objvar:my leader][equals][it]
- WHEN DO [move][toward][objvar:my leader][min distance][4]
Healing mechanic
- WHEN [for each of][objects closer than][10][allies]
- …WHEN [it][health][less than][0.75][multiplied by][it][max health]
- …/…WHEN [countdown timer][2][loop][trigger on start]
- …/…/…WHEN DO [emote][cheer]
- …/…/…WHEN DO [heal][it][15]
- …/…/…WHEN DO [play fx][fx:Heal][on][it]
Attack kode
- WHEN [hit by attack][enemies] DO [objvar:my enemy][equals][it]
- WHEN [not][objvar:my enemy][is dead] DO [move][toward][objvar:my enemy]
- …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
- WHEN [it][health][less than][it][max health]
- …/…WHEN [countdown timer][2][loop][trigger on start]
- …/…/…WHEN DO [emote][cheer]
- …/…/…WHEN DO [heal][it][(][it][ max health][)]