Make NPC dialogue scriptable to allow NPCs to give you items, pick random pieces of dialogue, end conversations and go to lines of dialogue. This is part of a series where we create an Adventure Game using Python and Pygame.
Full Adventure Game in Pygame Playlist:
• Tiles and Sprites in Pygame - Adventure Ga...
Starting Code (Code from Previous Video):
https://github.com/AlexanderFarrell/a...
Completed Source Code:
https://github.com/AlexanderFarrell/a...
Download assets from the game:
https://www.alexanderfarrell.com/arti...
Timestamps
00:00 - Intro
00:14 - Commands Explanation
01:25 - Create our First Command
02:39 - Parse Commands
04:26 - The Give Command
06:18 - Test 1
06:34 - Fixing a Bug - Empty Lines
07:42 - The End Command
08:04 - The Goto Command
10:00 - Test 2
10:28 - The Random Command
13:38 - Test 3
14:11 - A Challenge
14:57 - A Suggestion for Adding NPCs
15:31 - Conclusion