# Fuzzy state machine

This topic is 2922 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

In fuzzy state machines, I understood the part about how to do the transitions, what I don't get is which state gets executed currently. Is it the state with the highest degree of representation?

For example, in a shooter game, I can have 2 fuzzy states : Combat and Replenish. Suppose I have DOR for combat as 0.6 and replenish as 0.4

So now,for transition, I will consider transitions of both states. But which state actually gets executed? As in, will the NPC attack the player or look for health/ammo?

##### Share on other sites
It's a dice roll on the percentages. It should attack with a probability of 0.6 and look for health/ammo with a probability of 0.4. Either outcome is possible, and could happen on any given run.

Fuzzy states are the same thing as marking off regions of a circle, and then playing spin the bottle.

[Edited by - AngleWyrm on December 12, 2010 8:30:31 AM]

Alright, thanks!

1. 1
2. 2
3. 3
4. 4
Rutin
13
5. 5

• 19
• 10
• 9
• 9
• 11
• ### Forum Statistics

• Total Topics
633694
• Total Posts
3013363
×