Skip to content

Monsters attacking self at random #9

@Himesjb

Description

@Himesjb

With CombatLib, any given monster (or NPC) in my game will attack itself at random during various sessions of play instead of attacking the player. I have tried reloading the CombatLib files into my game folder, just to make sure I didn't tweak something I should not have, but even with completely original CombatLib files, it still does this.

I have isolated the problem by creating a brand new game without interference from any tweaks in my other (actual) game. All I did in this new game (just 3 rooms, 2 monsters, 1 NPC, nothing else at all, no descriptions or anything else) was add the NPCLib and CombatLib. I have the same problem.

The problem of monsters attacking themselves only occurs if you implement the 'friend' option whereby an NPC can fight alongside the player by using this starting script:

do (NpcName, "settodefend")

My guess is that somehow this 'settodefend' code is not updating lists (attackers or friends) correctly, or in some other way Quest is making the monster or NPC select itself as a target instead of other monsters.

This addition of the 'settodefend' starting script was the lone factor that made monsters or NPCs attack themselves.

I have never seen anyone else refer to this feature of Quest, but I would love to have NPCs fighting alongside my player. Is this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions