Implementation of Finite State Machine to Determine The Behaviour of Non-Playabale Character in Leadership Simulation Game

Main Article Content

Muhammad Bagus Rizqi Alvian
Saiful Bukhori
Muhammad ‘Ariful Furqon


In today's era, games are widely enjoyed by the Indonesian society, and one of them is simulation games. Simulation games have many advantages, including allowing players to experiment freely and encouraging them to learn. Therefore, the use of simulation games can be utilized as a training medium, such as leadership training. There are five levels of leadership based on The 5 Levels of Leadership: position, permission, production, people development, and pinnacle. Direct practice is necessary in training these levels of leadership through the implementation of Artificial Intelligence (AI) in simulation games. One of the AIs used for this implementation is the Finite State Machine (FSM). FSM will be implemented in Non-Playable Characters (NPCs) to determine behavior that is adjusted to the 5 levels of leadership. There are three State Machines (SM) applied to NPCs: Core Game SM, Movement SM, and Status SM. The use of FSM in NPCs results in dynamic NPC behavior in terms of physical movement and changes in NPC status according to 5 Levels of Leadership


Plum Analytics

Article Details



V. Azkiya, “The Third Highest Number of Indonesian Gamers in the World (translate)”. Accessed: Oct. 28, 2022. [Online]. Available:

J. J. Vargas-Iglesias, “Making Sense of Genre: The Logic of Video Game Genre Organization,” Games Cult, vol. 15, no. 2, pp. 158–178, Mar. 2020, doi: 10.1177/1555412017751803.

H. Wise, “10 Reasons Real Life Simulation Games Are So Head-Scratchingly Successful.” Accessed: Feb. 08, 2023. [Online]. Available:

J. J. Padilla et al., “Using simulation games for teaching & learning discrete-event simulation,” Proceedings - Winter Simulation Conference, pp. 3375–3384, Jul. 2016, doi: 10.1109/WSC.2016.7822368.

J. Maxwell, The 5 Levels of Leadership, 2nd ed. Surabaya: Media Distribusi Cemerlang, 2017.

D. Aversa, Unity artificial intelligence programming : Add powerful, believable, and fun AI entities in your game with the power of Unity, 5th ed. Birmingham: Packt, 2022.

A. Taru, “Penerapan Finite State Machine Pada Perancangan Game.” Accessed: Jan. 27, 2023. [Online]. Available:

J. Ellis, “What is a Sim Game?,” EasyTechJunkie. Accessed: Jan. 27, 2023. [Online]. Available:

M. Arshavskiy, “Simulations And Games: Making Learning Fun! - eLearning Industry.” Accessed: Nov. 27, 2022. [Online]. Available:

C. Buttice, “Finite State Machine: How It Has Affected Your Gaming For Over 40 Years.” Accessed: Jan. 27, 2023. [Online]. Available:

D. Jagdale, “Finite State Machine in Game Development,” International Journal of Advanced Research in Science, Communication and Technology, pp. 384–390, Oct. 2021, doi: 10.48175/IJARSCT-2062.

H. F. Ramadhan, S. H. Sitorus, and S. Rahmayuda, “Educational Game Introduction to West Kalimantan Culture and Tourism Using Android-Based Metdoe Finite State Machine (Translate)” at Coding: Journal Komputer dan Aplikasi, 7(1):108-119 2019.

A. Silva, “What is Leadership?,” Journal of Business Studies Quarterly, 8(1), 2016.

M. Asrar-ul-Haq and T. Anjum, “Impact of narcissistic leadership on employee work outcomes in banking sector of Pakistan,” Future Business Journal, vol. 6, no. 1, Dec. 2020, doi: 10.1186/s43093-020-00040-x.

R. Krisdiawan, “Implementation of Gdlc System Development Model and Linear Congruential Generator Algorithm in Puzzle Game (translate)”. Jurnal Nuansa Informatika, 12(2), Jul. 2018.

M. T. Trilaksono, “Designing Game Design Document,” Jan. 2022.