{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/99815"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/99815","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"Using behaviour patterns to generate scripts for computer role-playing games","abstract":"Character behaviours in computer role-playing games have a significant impact on game-play, but are often difficult for story authors to implement and modify. Many computer games use custom scripts to control the behaviours of non-player characters (NPCs). Therefore, a story author must write fragments of computer code for the hundreds or thousands of NPCs in the game world. The challenge is to create non-repetitive (more entertaining) behaviours for the NPCs without investing substantial programming effort to write custom non-trivial scripts for each NPC. Consequently, current computer games mostly rely on simplistic non-interactive behaviours for NPCs. This research describes the design and implementation of a novel behaviour model for interacting NPCs, based on generative design patterns, that requires no manual script writing. In this model, NPCs assume different roles during the story and select behaviours based on static probabilities or dynamic motivations. We also devised a reinforcement learning algorithm, ALeRT, based on Sarsa(lambda) and we extended our behaviour model to support behaviour selection based on learning. In our model, an NPC can exhibit proactive, reactive, or latent behaviours that may be independent or collaborative. This behaviour architecture supports behaviours that can be interrupted and resumed based on priorities. The implementation of this model produces scripting code for BioWare Corp.'s Neverwinter Nights computer role-playing game.","abstract_html":"Character behaviours in computer role-playing games have a significant impact on game-play, but are often difficult for story authors to implement and modify. Many computer games use custom scripts to control the behaviours of non-player characters (NPCs). Therefore, a story author must write fragments of computer code for the hundreds or thousands of NPCs in the game world. The challenge is to create non-repetitive (more entertaining) behaviours for the NPCs without investing substantial programming effort to write custom non-trivial scripts for each NPC. Consequently, current computer games mostly rely on simplistic non-interactive behaviours for NPCs. This research describes the design and implementation of a novel behaviour model for interacting NPCs, based on generative design patterns, that requires no manual script writing. In this model, NPCs assume different roles during the story and select behaviours based on static probabilities or dynamic motivations. We also devised a reinforcement learning algorithm, ALeRT, based on Sarsa(lambda) and we extended our behaviour model to support behaviour selection based on learning. In our model, an NPC can exhibit proactive, reactive, or latent behaviours that may be independent or collaborative. This behaviour architecture supports behaviours that can be interrupted and resumed based on priorities. The implementation of this model produces scripting code for BioWare Corp.&#x27;s Neverwinter Nights computer role-playing game.","abstract_has_math":false,"creators":["Cutumisu, Maria"],"institution":"University of Alberta","degree_name":"Doctor of Philosophy","degree_level":"Doctoral","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Szafron, Duane (Computing Science)"],"committee_chairs":[],"committee_members":[],"year":2009,"date_issued":"2009-11","date_published":"2009-11","updated_at":"2026-11-26T20:51:49Z","subjects":["NPC behaviours","Behaviour patterns","Reinforcement learning","Computer role-playing games","Content generation"],"languages":["en"],"rights":["This thesis is made available by the University of Alberta Libraries with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/R30W2K","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/R30W2K","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F99815","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F99815","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Szafron, Duane (Computing Science)"]},{"key":"dc:contributor.other","label":"Dc Contributor Other","values":["Schaeffer, Jonathan (Computing Science)","Lu, Paul (Computing Science)","Carbonaro, Michael (Educational Psychology)","Mateas, Michael (Computer Science, University of California, Santa Cruz)"]},{"key":"dc:creator","label":"Author","values":["Cutumisu, Maria"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-05-29T15:00:20Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-05-29T15:00:20Z"]},{"key":"dc:date.issued","label":"Date","values":["2009-11"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Doctoral"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["NPC behaviours","Behaviour patterns","Reinforcement learning","Computer role-playing games","Content generation"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["This thesis is made available by the University of Alberta Libraries with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/R30W2K"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Character behaviours in computer role-playing games have a significant impact on game-play, but are often difficult for story authors to implement and modify. Many computer games use custom scripts to control the behaviours of non-player characters (NPCs). Therefore, a story author must write fragments of computer code for the hundreds or thousands of NPCs in the game world. The challenge is to create non-repetitive (more entertaining) behaviours for the NPCs without investing substantial programming effort to write custom non-trivial scripts for each NPC. Consequently, current computer games mostly rely on simplistic non-interactive behaviours for NPCs. This research describes the design and implementation of a novel behaviour model for interacting NPCs, based on generative design patterns, that requires no manual script writing. In this model, NPCs assume different roles during the story and select behaviours based on static probabilities or dynamic motivations. We also devised a reinforcement learning algorithm, ALeRT, based on Sarsa(lambda) and we extended our behaviour model to support behaviour selection based on learning. In our model, an NPC can exhibit proactive, reactive, or latent behaviours that may be independent or collaborative. This behaviour architecture supports behaviours that can be interrupted and resumed based on priorities. The implementation of this model produces scripting code for BioWare Corp.'s Neverwinter Nights computer role-playing game."]},{"key":"dc:title","label":"Title","values":["Using behaviour patterns to generate scripts for computer role-playing games"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Szafron, Duane (Computing Science)"],"dc:contributor.other":["Schaeffer, Jonathan (Computing Science)","Lu, Paul (Computing Science)","Carbonaro, Michael (Educational Psychology)","Mateas, Michael (Computer Science, University of California, Santa Cruz)"],"dc:creator":["Cutumisu, Maria"],"dc:date.accessioned":["2025-05-29T15:00:20Z"],"dc:date.available":["2025-05-29T15:00:20Z"],"dc:date.issued":["2009-11"],"dc:description.abstract":["Character behaviours in computer role-playing games have a significant impact on game-play, but are often difficult for story authors to implement and modify. Many computer games use custom scripts to control the behaviours of non-player characters (NPCs). Therefore, a story author must write fragments of computer code for the hundreds or thousands of NPCs in the game world. The challenge is to create non-repetitive (more entertaining) behaviours for the NPCs without investing substantial programming effort to write custom non-trivial scripts for each NPC. Consequently, current computer games mostly rely on simplistic non-interactive behaviours for NPCs. This research describes the design and implementation of a novel behaviour model for interacting NPCs, based on generative design patterns, that requires no manual script writing. In this model, NPCs assume different roles during the story and select behaviours based on static probabilities or dynamic motivations. We also devised a reinforcement learning algorithm, ALeRT, based on Sarsa(lambda) and we extended our behaviour model to support behaviour selection based on learning. In our model, an NPC can exhibit proactive, reactive, or latent behaviours that may be independent or collaborative. This behaviour architecture supports behaviours that can be interrupted and resumed based on priorities. The implementation of this model produces scripting code for BioWare Corp.'s Neverwinter Nights computer role-playing game."],"dc:identifier.doi":["https://doi.org/10.7939/R30W2K"],"dc:language.iso":["en"],"dc:rights":["This thesis is made available by the University of Alberta Libraries with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"dc:subject":["NPC behaviours","Behaviour patterns","Reinforcement learning","Computer role-playing games","Content generation"],"dc:title":["Using behaviour patterns to generate scripts for computer role-playing games"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_level":["Doctoral"],"thesis:degree_name":["Doctor of Philosophy"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T20:51:49Z"}