Fuzzy Logic

'There are two types of logic commonly used which are Fuzzy logic and Boolean logic, the difference between these two is that you have something like a sliding scale. Boolean logic only recognizes "false" and "true" or 0 and 1, whereas fuzzy logic will recognize any number. For example 0.4 or 0.5746 etc.' Mike Prinke, Video game technical designer - Nov 6 2016
https://www.quora.com/How-is-Fuzzy-Logic-used-in-game-development

This also applies to integers such as 1.5 or 5 which comes down to a series of discrete Boolean operations, fuzzy logic requires it to be a continuous scale.

A couple of examples include games like "Knights of the old republic and Fable" both of which use a system in which a light sided/good interaction with npcs means the majority or npcs will have a positive response to you. Whereas a dark sided/evil interaction will receive negative reactions from npcs. Of course the scale doesn't go from one end to the other instantly it’s a gradual effect that acclimates over the course of the game (basically taking a bunch of binary choices and turning them into a fuzzy value).


Image result for fuzzy logic in video games

Another example would be where the AI evaluates not direct input but off of abstract variables so that if an npc/AI is low on ammo or health a will to fight scale (cowardice or bravery) will shift towards cowardice whereas if the AI hits the player for a critical it may gain bravery. This is often seen in AI currently in games such as "lord of the rings shadow of war" in which a horde of orcs may attack the player and if the player kills or injures the majority of the horde they will attempt to flee and regain health or find reinforcements.

Comments