Integrating Articy:draft X into your custom game engine involves several steps, depending on how deep you want the integration to be. Articy:draft X is a narrative design tool, and it exports structured data (JSON, XML, or via the Articy SDK) that your engine can consume at runtime or during build time.
Here’s a practical roadmap to integrate it:
✅ Step 1: Understand What You Need from Articy
Decide what parts of your Articy project you want to use:
- Dialogues / Flow fragments
- Variables / Global state
- Entities (characters, items, locations)
- Scripts / Conditions / Instructions
✅ Step 2: Export from Articy
Articy:draft X supports several export formats:
- JSON (recommended for custom engines)
- XML
- Articy SDK (C++ API, more complex but powerful)
Option A: JSON Export (Easiest)
- In Articy:draft X, go to File > Export > JSON Export.
- Choose what to include (dialogues, objects, variables, etc.).
- Export to a folder in your project.
✅ Step 3: Parse the JSON in Your Engine
Write a parser in your engine to load the JSON and build internal representations.
Example (C++-like pseudocode):
struct DialogueNode {
string id;
string text;
vector<string> children;
map<string, string> properties;
};
vector<DialogueNode> LoadDialogueFromJSON(const string& path);
Use a JSON library like:
- nlohmann/json (C++)
- RapidJSON
- simdjson
✅ Step 4: Runtime Integration
You’ll need:
- A dialogue system that can traverse the flow based on player input.
- A variable system that mirrors Articy’s global variables.
- A script interpreter if you use Articy’s expressions or conditions.
Optional: Replicate Articy’s Flow Logic
Articy uses a node-based flow. You can:
- Pre-compile the flow into a state machine.
- Or interpret it dynamically at runtime.
✅ Step 5: Handle Articy Scripts & Conditions
Articy allows scripts like:
if Global.Mood > 5 then ShowNode("HappyPath")
You’ll need:
- A script parser or expression evaluator.
- A variable store that matches Articy’s global variables.
You can use:
- Lua (embeddable and lightweight)
- Custom expression parser
- Articy SDK (if using C++ and want full fidelity)
✅ Step 6: Optional – Use Articy SDK (Advanced)
If you want real-time access to the Articy project (e.g., for live editing or debugging), use the Articy SDK:
- C++ API
- Requires linking against Articy runtime
- More complex, but gives full access to the project
Docs: Articy SDK Documentation
✅ Step 7: Build Pipeline Integration
Automate the export:
- Add a build step that runs Articy’s CLI exporter.
- Or use a pre-commit hook to ensure JSON is up to date.
✅ Tools & Libraries That Help
- ArticyJsonParser (community tools for parsing JSON)
- ArticyImporter for Unreal/Unity (reference for how they do it)
- Custom scripting engine (if you want to support Articy’s expressions)
✅ Summary Checklist
| Task | Status |
|---|
| Export JSON from Articy | ✅ |
| Parse JSON in engine | ✅ |
| Build dialogue system | ✅ |
| Mirror global variables | ✅ |
| Handle scripts/conditions | ✅ |
| Optional: Use Articy SDK | ⬜ |
🔧 Want a Code Example?
Let me know your engine’s language (C++, C#, Rust, etc.), and I can give you a minimal working parser or dialogue runner.
Would you like a sample JSON parser in C++ or C#?