Enhances the single-player campaign with dynamic random events. This README details the mod components for contribution and creation.
- Required for mod functionality, loads settings, and adds RandomEventBehavior.
- Manages event generation and execution. Accessible via static instance for external DLLs. Includes a command line for testing.
- Handles weighted random event selection. Determines the frequency of each event.
- Core methods:
CanExecuteEvent,StartEvent,StopEvent,CancelEvent. Each random event inherits from this class.
- Essential for generating event instances. Override
GetBaseEvent()to return new instances.
- Simplifies party setup on the map.
randomevent.run: Triggers a specific event.randomevent.next: Launches the next event in the queue.randomevent.cancelevent: Cancels the current event.randomevent.list: Lists all events.randomevent.queue: Shows upcoming events.randomevent.history: Displays executed event history.
Recent updates include queue-based event management and history tracking.