Problem with "followers" in pixies combat lib
laubwolf
22 Feb 2018, 17:34hi everyone,
while writing my rpg I keep running into a problem with the combat library:
when i set a monster to defend the player via
do(monster, "settodefend")
(described in: https://github.com/ThePix/quest/wiki/CombatLib-Part-13:-Friend-or-Foe%3F)
it seems to work, as it starts to follow me around. but as soon as we encounter enemies it starts attacking itself, without doing any damage... I think I set up the library correctly (incl. running CombatInitialise) since everything else seems to work fine.
Grateful for any advice!

K.V.
22 Feb 2018, 17:46Is there an attribute which holds a list of enemies, by any chance?
Oh... Yep. Says on the page to which you linked:
The list of attackers is maintained in a list on the game object called "attackers"
Is the "defender" on that "attackers" list, by any chance? (This is just a stab in the dark. Not even a shot in the dark, mind you. Just a stab.)
laubwolf
22 Feb 2018, 18:27I checked via the Debugger: He is on the "game.friends" list, but the "game.attackers" is empty, even if i engage enemies
laubwolf
22 Feb 2018, 18:44Now its getting strange:
I put some enemies on the "game.attackers" list and they either start attacking me or themselves (and they will one do one thing repetedly)
I also noticed, they wail themselves to negative health without triggering the makedead script (talking of undead...)
Im getting more and more confused here...

K.V.
22 Feb 2018, 20:03If you can post your code, we'll look over it and see if something stands out.