Dialog system with branching, conditions and events for single-player games
- Flexible dialog trees with node types: Start, Work, Transfer, Finish
- Conditions and events for NPCs and player responses
- UMG widget integration for dialog UI
- Helper functions for player management
- Unreal Engine 5.0 or later
- UMG module enabled
- Copy the RPG_DialogSystem folder to YourProject/Source/
- Rebuild your project
- Add the dependency to YourProject.Build.cs
Create a child class of URPG_DialogObjectBase and add nodes using the editor.
In Work nodes:
- Add NPC dialog text
- Add player response options
- Set up conditions and events
- Add URPG_DialogComponentBase to your NPC
- Call RunDialog() to start conversation
Class | Description |
---|---|
URPG_DialogObjectBase | Base dialog object |
URPG_DialogNodeWork | Node with dialog options |
URPG_DialogWidget | UI widget implementation |
URPG_DialogFunctionLibrary | Helper utilities |
- Creating a dialog asset in the editor
- Example of a dialog object's viewport editor
Enable logging with these console commands:
- DialogSystem.ShowLog 1
- DialogSystem.ShowDialogData 1