This unreleased prototype from award-winning indie studio Hexagram proposed a licensed game built around a living city of thousands of simulated NPCs, acting and reacting to complex stimuli. I led the creation of an action library for NPCs: atomic units capable of combining into emergent stories of cause and effect. (Post art courtesy the official Blade Runner roleplaying game.)
The excerpt here shows action code written in Viv, a domain-specific language for action definitions created by James Ryan.