
All checks were successful
Build / Build (push) Successful in 28s
This commit updates the documentation for several Forge modules, adding comprehensive details about their functionalities, user interfaces, and integration with other systems. Key enhancements include: - Expanded descriptions for the Admin, Arsenal, Bank, Garage, Interaction, Locker, Medical, Organization, Service, Store, and other modules. - Added new features such as financial operations, user interface improvements, and integration with organization systems. - Improved clarity on usage instructions and configuration options across modules. These changes aim to provide better guidance for users and developers interacting with the Forge client system.
Forge Dialogue Module
Overview
The Dialogue module provides a comprehensive AI conversation system for the Forge client. It enables dynamic interactions between players and AI units, supporting topic-based conversations, sentence management, and AI behavior control.
Dependencies
- forge_client_main
Authors
- J. Schmidt
- Creedcoder
- IDSolutions
Features
AI Dialogue System
-
AI Selection (
fnc_selectAI.sqf
)- Manages AI unit selection for dialogue
- Controls AI behavior during conversations
- Handles unit state management
- Disables AI actions during dialogue
-
Dialogue Management (
fnc_selectDialogue.sqf
)- Topic-based conversation system
- Sentence management and playback
- AI unit synchronization
- Conversation flow control
-
Conversation Features
-
Topic Management
- Dynamic topic selection
- Context-aware conversations
- Topic-based responses
- Conversation branching
-
Sentence Control
- Sentence playback
- Timing management
- Response coordination
- Conversation state tracking
-
AI Behavior
- Animation control
- Movement management
- State synchronization
- Interaction handling
-
Event Handlers
The module uses several event handlers for initialization and execution:
XEH_preInit.sqf
: Pre-initialization setupXEH_postInit.sqf
: Post-initialization tasksXEH_preStart.sqf
: Pre-start configurationXEH_postInit_client.sqf
: Client-specific post-initializationXEH_preInit_server.sqf
: Server-specific pre-initialization
Usage
To use the dialogue module:
- Ensure the module is properly loaded in your mission
- Select AI units for dialogue:
// Select AI units for dialogue [units group player] call forge_client_dialogue_fnc_selectAI; // Select specific dialogue for AI [units, [["topic", "sentence"]]] call forge_client_dialogue_fnc_selectDialogue;
- Manage conversation flow and AI behavior
Debugging
Debug mode can be enabled by uncommenting the following in script_component.hpp
:
#define DEBUG_MODE_FULL
Version Information
Version information is managed through the main Forge client system configuration.
Technical Details
- Topic-based conversation system
- AI behavior control
- Sentence management
- State synchronization
- Animation handling
- Movement control
- Interaction management
- Conversation flow control
- Response coordination
- Error handling
- Debug support
- Event system integration