![]() |
Npc go starving.. - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Npc go starving.. (/Thread-Npc-go-starving) |
Npc go starving.. - Handred - 07-24-2012 01:21 PM Hello! I teleport into a random city, let's say, Vesper. I wake up the sector, then all the npcs show that they are starving all at the same time. Thing is.. here are my flags: // NPC AI settings // NPC_AI_PATH 0001 NPC pathfinding // NPC_AI_FOOD 0002 NPC food search (objects + grass) // NPC_AI_EXTRA 0004 NPC magics, etc // NPC_AI_ALWAYSINT 0008 Always be as smart as possible with pathfinding // NPC_AI_INTFOOD 0010 NPC food search (more intelligent and trusworthy) // NPC_AI_COMBAT 0040 Look for friends in combat // NPC_AI_VEND_TIME 0080 vendors closing their shops at nighttime // NPC_AI_LOOTING 0100 loot corpses an the way // NPC_AI_MOVEOBSTACLES 0200 if moveable items block my way, try to move them NPCAI=0001|0008|0040|0200 What the hell? RE: Npc go starving.. - Gil Amarth - 07-24-2012 07:03 PM The trigger @Hunger only fires when a sector is awake, so it is normal that all your npcs fires the trigger at the same time when you awake a sector. All the timers drop to 0 into your npcs, and don“t fires until this sector is awake. RE: Npc go starving.. - Khaos - 07-25-2012 08:17 AM Code: on=@hunger Might be src.food=<src.maxfood>; not sure. Not looking at the trigger functions ![]() I mean unless you are really needing them to find food or what not realistically... there is no point in starving them. If needed I can generate a more advaced code for you, but that would do the trick when then sector activates. RE: Npc go starving.. - Handred - 07-25-2012 01:48 PM That's a lot of on=@hunger to add, because it seems to not be fired inside a common npc event..? RE: Npc go starving.. - Anarch Cassius - 07-26-2012 10:19 AM It fires in a common event for me. RE: Npc go starving.. - Shaklaban - 07-26-2012 10:25 AM yeah me too. |