Remove resource.index completely. Fix NPC id of zero being treated as falsy value. Fix NPCs not reactivating if player does not move from a spot.