Type: Allies brain
Level: not in gallery
Pages: 2
Description: Found in the Royal King character model. The NPC is part of the player’s team but is not a follower. The Royal Queen brain is a variation on this. Changes are
Line 1 cut
Line 6 addition of [with windup]
Line 7 pause attack between 0.5 and 2.5
page 2 text says Im the Queen of….
Kode
page 1 @Melee Logic
- WHEN [once] DO [equip][Royal Scepter]
- …WHEN DO [team][equals][team 1] //Determines that the player is an ally
Attack kode - WHEN [enemies][objects closer than][17] 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][2]
- …/…WHEN [countdown timer][#pause attack][loop] DO [attack][objvar:my enemy][end combo]
- …/…/…WHEN DO [#pause attack][equals][random number][0.5][to][1.5]
- WHEN [hit by attack][enemies] DO [objvar:my enemy][equals][it]
- WHEN [interacted][by][player] DO [turn][toward][it]
- …WHEN DO [switch page][page: @Talk]
page 2 @Talk
- WHEN [page entered] DO [emote][Talk]
- WHEN DO [say][text: Im the King of….]
- WHEN [countdown timer][4] DO [switch page][page:@Melee Logic]