Re:Secret Identities in Dwarf Fortress (2017)
by serf on Monday July 31, 2023 @07:37PM
(#36950384)
>But how to combine this with needs is unclear to me, I would love to see a good explanation of this.
some inefficient ways off the top of my head: create a threshold filter on the object with logic something like "only agents with need > X allowed", or iterate through the agents until you find one with the greatest need score that is pertinent to the object, or a combination of the two to reduce the list size that must be iterated. sprinkle in agent range from object and specific traits preferably before the list generation to further reduce iterations needed.
i've thought about all of this a lot because i'm addicted to games with agency and emergent behavior. rimworld is a lot of fun in that regard because it's easy to jump into modding it, which makes agency experimentation a lot of fun.
some inefficient ways off the top of my head: create a threshold filter on the object with logic something like "only agents with need > X allowed", or iterate through the agents until you find one with the greatest need score that is pertinent to the object, or a combination of the two to reduce the list size that must be iterated. sprinkle in agent range from object and specific traits preferably before the list generation to further reduce iterations needed.
i've thought about all of this a lot because i'm addicted to games with agency and emergent behavior. rimworld is a lot of fun in that regard because it's easy to jump into modding it, which makes agency experimentation a lot of fun.