SphereCommunity
Karma don't make NPC aggressive - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Karma don't make NPC aggressive (/Thread-Karma-don-t-make-NPC-aggressive)



Karma don't make NPC aggressive - pyrilin - 11-20-2017 04:29 AM

Hi guys Bye
I am moving my shard from 56b to last 56d build.
But I am stuck with a problem.

The NPC's no long attack players based on their own karma.
So if a put a bandit with -8000 karma, he still pacific

There is a way to change it?

tyvm Smile


RE: Karma don't make NPC aggressive - darksun84 - 11-20-2017 04:32 AM

You have to set the NPC's brain as brain_monster


RE: Karma don't make NPC aggressive - pyrilin - 11-20-2017 04:49 AM

ouch Sad

The problem is:
I would like to have this feature

Code:
// NPC_AI_EXTRA                00004    Make NPCs human (brain_human) equip/unequip weapons on combat or light sources at night

and if I change the brain it will not work anymore. The same will happen with paperdoll behavior.(dclick will open the healthbar not the paperdoll)


RE: Karma don't make NPC aggressive - Coruja - 11-26-2017 06:23 AM

I think this got changed some years ago to optimize AI engine, where "evil humans NPCs" should be changed from brain_human to brain_monster to act like an real monster instead waste time processing speech entries, vendor behaviors, etc

changing brain_human to brain_monster should not create any conflict with NPC_AI_EXTRA since brain_monster NPCs doesn't equip/unequip items, so you can safely put an sword on NPC hands and it will keep holding this sword forever