Prelim 03
Prelim 03
What is AI?
•Artificial Intelligence
• “the science and engineering of making intelligent
machines”
• Refer to intelligence as exhibited by an artificial (man
•Graphical RPGs
• Console RPGs
• Real-time combat based because more action-oriented input
controllers
Text based RPG
NetHack
Action RPG
Turn-based RPG
http://www.mobygames.com/game/windows/final-fantasy-vii/screenshots/gameShotId,11754/
MMORPG
•MMORPG
• Massively Multiplayer Online Role-Playing Game
(MMORPG) is a genre of online computer role-playing
games (RPGs) in which a large number of players interact
with one another in a virtual world.
• distinguished from single-player or small multi-player
RPGs
• number of players
• game's persistent world
• Ex. Neverwinter Nights, World of Warcraft
AI in RPGs
Common AI elements
•Enemies
• An almost endless supply for the
player • Provide level points, money,
items
•Behavior patterns
• Statistical AI (monsters’ database)
• Complex behavior patterns
• Running away
• Healing themselves
• Fighting in groups
Common AI elements
•Bosses
• Monster leaders
• Increased life point, skill, power, brain
• Bosses are usually heavily scripted
• The AI needs to include use of the dialogue system for the game
Common AI elements
•Shopkeepers
• Special NPCs who do business with the player
• Have extended interfaces
• Have a notion about the player attitude that affects the
shopkeepers dialogue, prices, and items.
Common AI elements
•Party Members
• Members of the player’s adventuring party (special NPCs) • Simple
AI on Party members but allow the player to customize the
scripting system
• Use pathfinding in real time combat
AI techniques
•Scripting
• Computer programming languages that are
typically interpreted and can be typed directly
from a keyboard.
• Common technique to improve the AI system
without hiring more programmers
• Programs are converted permanently into binary executable files
• Scripts remain in their original form and are interpreted
command-by-command each time they are run.
AI techniques
•Scripting
•Most RPGs are linear (objectives of the game
must be completed in a fixed sequence) or at
most branching linear
•In game,
• Dialogue Flow
• Stage Direction
• Game event flags
• NPC behavior
• AI Logic
AI techniques
•Scripting
Pros:
• Save time and increase
productivity • Increase creativity
• Provide extensibility
Cons:
• Require scripting learning time
• Scripted code slower than binary
AI techniques
• Finite-State Machine (FSMs)
• Split the game into explicit states
http://www.programmingbasics.org/en/fsm.html
FSM
AI techniques
•Messaging
• Messaging system
• Parse information between party members,
facilitate group combat or dialogue
Messaging
ttp://www.enterbrain.co.jp/tkool/RPG_XP/eng/
RPG Maker XP
http://www.enterbrain.co.jp/tkool/RPG_XP/eng/
RPG’s AI Improvement
•AI Storyteller
• A series of events with multiple variables, and a
"pacing manager" that ensures the story remains
interesting throughout the game.
• Create dynamic game story to satisfy the player
Ex.
Harvest Moon:
• to plant seeds to grow fruits and vegetables in
different seasons
• to balance the character physical resources
RPG’s AI Improvement
•Quest Generators
•More varied and long lasting gameplay situation
•Generate quests according to the players interest
•Use ad-lib system to generate unique quests or
add new content
RPG’s AI Improvement
•Better Party Member AI
• The character can keep track of the often player
actions when fighting and using items
• Learning by imitation
• Party members script editor
END