Project Zomboid

Project Zomboid

Survivors! (Build 39)
PZ-NOOB 16 Nov, 2016 @ 9:37am
Inventory?
Is it possible to give the NPC's an inventory/equip system like the players? I dunno just an idea not sure if its been mentioned or not.
< >
Showing 1-9 of 9 comments
nolanritchie  [developer] 16 Nov, 2016 @ 12:07pm 
they already have an inventory, would be easy to make the hold / carry stuff...EXCEPT the survivors get destroyed and re-created when they leave the loaded cell. eg when you walk more than a screen length away from them, or exit and rejoin game.
I made a system that tracks their position and re-spawns them when you re-enter the cell. so if you started to give them stuff to hold and carry like backpacks full of backpacks full of packpacks. all that stuff will disapear when the survivor gets destroyed and recreated from leaving the cell.
PZ-NOOB 16 Nov, 2016 @ 12:12pm 
oh ok that makes sense, another idea i had that would be interesting is a base function or patrol function as well as the wait/follow, idk if thats even possible but it would be pretty cool.
Awesomeexplorer 19 Nov, 2016 @ 4:12pm 
so that means you should take their items off them before leaving survivors in your base?
nolanritchie  [developer] 21 Nov, 2016 @ 3:26pm 
you could but some people will not read desc or forget and lose the items and compain for course
ColinaLoro 30 Dec, 2016 @ 9:13am 
cant you try to keep record of theri inventory and respawn that as well? just an idea :) you probably already do that with their weapons.tks again
nolanritchie  [developer] 30 Dec, 2016 @ 9:15am 
yeah its possible sure, but items have moddata, condition, attachmenets etc. it would be a nightmare to try and save all that in string tables.
ColinaLoro 30 Dec, 2016 @ 10:07am 
a xml file where you only save the changed data... I dont know if its even possible but I can try to help. Private message if you want :)
nolanritchie  [developer] 30 Dec, 2016 @ 10:58am 
i have no problem with someone else doing it. it's just a hole that "I" don't want to stick my head into at this time
MagicJ 30 Dec, 2016 @ 10:59pm 
the pain is real.
1. Accelerate forehead toward keyboard
2. Is code done?:
true:
3. exit and sleep like you're dead.
false:
4. repeat until done or COMA=TRUE.
< >
Showing 1-9 of 9 comments
Per page: 1530 50