Research Article

Application of machine learning algorithms to character interaction in single-player role-playing games

Haoran Huang*
Nanjing University Of Posts And Telecommunications

* Corresponding author: [email protected]

Abstract

Character interaction in single-player role-playing games refers to the role interactions between the player character and the non-player characters (NPCs) in the game including dialogue, social interaction, cooperation, and competition, which are designed and implemented to achieve certain game goals and effects. This paper summarizes and compares machine learning algorithms applied to game development using a paper review and theoretical analysis, aiming to provide new solutions for optimizing and improving algorithms commonly used in game design. The ADEM algorithm can automate the evaluation of semantic relevance and logical coherence of character dialogues, but it is more costly in the pre-training phase and more difficult to perform domain adaptation for specific game content. The BERT algorithm can improve the speed of character dialogue generation through the training of unlabeled text, and then improve the flexibility of the dialogue through a small amount of labeled text for domain adaptation and fine-tuning, but it lacks in the generation of smooth and complex text and other aspects. The GAN algorithm can learn from a single or a small number of action sequences to achieve the transformation and mixing of character actions, thus generating multiple action gestures. However, its training process may suffer from problems such as pattern collapse leading to degradation in the quality of the generation, and it is also difficult to set a uniform objective criterion to determine the loss function.

Keywords: Machine Learning; Role Playing Game (RPG); ADEM; BRET; GAN
Published: February 7, 2024
DOI: 10.54254/2755-2721/38/20230550
Volume: ACE Vol.38
pp. 176-183
Download PDF

References

  1. Hitchens M, Drachen A. The many faces of role-playing games[J]. International journal of role-playing, 2008 (1): 3-21.
  2. Nam S G, Ikeda K. Generation of diverse stages in turn-based role-playing game using reinforcement learning[C]//2019 IEEE Conference on Games (CoG). IEEE, 2019: 1-8.
  3. Mackay D. The fantasy role-playing game: A new performing art[M]. McFarland, 2017.
  4. Hammer J, Beltrán W, Walton J, et al. Power and control in role-playing games[M]//Role-Playing Game Studies. Routledge, 2018: 448-467.
  5. Ryan Lowe, Michael Noseworthy, Iulian Vlad Serban, Nicolas Angelard-Gontier, Yoshua Bengio, and Joelle Pineau. 2017. Towards an Automatic Turing Test: Learning to Evaluate Dialogue Responses. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1116–1126, Vancouver, Canada. Association for Computational Linguistics.
  6. Lowe R, Noseworthy M, Serban I V, et al. Towards an automatic turing test: Learning to evaluate dialogue responses[J]. arXiv preprint arXiv:1708.07149, 2017.
  7. Shreyashree S, Sunagar P, Rajarajeswari S, et al. A Literature Review on Bidirectional Encoder Representations from Transformers[J]. Inventive Computation and Information Technologies: Proceedings of ICICIT 2021, 2022: 305-320.
  8. Sun F, Liu J, Wu J, et al. BERT4Rec: Sequential recommendation with bidirectional encoder representations from transformer[C]//Proceedings of the 28th ACM international conference on information and knowledge management. 2019: 1441-1450.
  9. Creswell A, White T, Dumoulin V, et al. Generative adversarial networks: An overview[J]. IEEE signal processing magazine, 2018, 35(1): 53-65.
  10. Jin L, Tan F, Jiang S. Generative adversarial network technologies and applications in computer vision[J]. Computational intelligence and neuroscience, 2020, 2020.
  11. Oliehoek F A, Savani R, Gallego-Posada J, et al. GANGs: Generative adversarial network games[J]. arXiv preprint arXiv:1712.00679, 2017.