Artificial intelligence in video games plays an important role in managing the behavior of non-player characters (NPC) to make them appear dynamic and unpredictable. One method often used is the Finite State Machine (FSM), but this method has limitations because the transitions between states are deterministic and not varied. This study aims to design and implement a Probabilistic Finite State …