An event-driven state manager inspired by RPG Maker, bringing the classic RPG event system to Unity 3D.
The RPG System library is designed for developers who have worked with RPG Maker and want to implement a similar event system in Unity 3D. It provides a powerful and flexible way to create interactive events in your game world.
- Event-Driven System: Create interactive events similar to RPG Maker
- Multiple Pages: Each event can have multiple pages with different conditions
- Condition System: Events trigger based on switches, variables, and local conditions
- Action System: Execute various actions when events are triggered
- Performance: Uses UniTask instead of Unity coroutines for better performance
- Cross-Platform: Works in 3D, 2D, and VR environments
- Save/Load: Seamless state management at runtime
- Extensible: Easy to add custom functionality
- Unity 2023.2 or later
- Odin Inspector (License required)
- Optional: DoTween
- Optional: Feel Package
- Download the repository
- Open the Sample Scene in the
Scenes
folder - Add the RPG Event component to any GameObject
The main component that allows you to manage GameObjects like RPG Maker events. Each event can have multiple pages with different conditions and actions.
- Multiple pages per event
- Only one page active at a time
- Condition-based activation
- Customizable actions
- Touch: Activates when player touches the event
- Interaction: Activates when player interacts with the event
- Autorun: Automatically runs when conditions are met
- Sprite display
- Collision detection
- Directional facing
- Automatic sprite renderer and collider management
- UniTask - For better async operations
- NavMeshPlus - For 2D pathfinding
- DoTween - For smooth animations
- Odin Inspector - For enhanced editor UI
Just add RPGEvent to any GameObject and you are ready to play with it!
This project is licensed under the MIT License - see the LICENSE file for details.
Note: You will need a license for Odin Inspector to use this system.
Contributions are welcome! Please feel free to submit a Pull Request.
For more detailed documentation, please refer to the Documentation folder.
Ayoze Manuel Fernández Acosta
MO is back.