Skip to content

Chat Notifier Component

Overview

UMIPChatNotifierComponent listens to inventory and quest events and broadcasts notifications to chat: item added (FNotifyAddItemResult from UMIPPlayerServerIMC), quest accepted, pre-quest rewards claimed, and EXP obtained. It can broadcast local (client) or global notifications and uses ClientBroadcastLocalNotification RPC for client-side chat messages.

Key traits:

  • Attachment: PlayerController.
  • Subscriptions: PlayerServerIMC NotifyAddItemResultDelegate; quest OnQuestUpdated (accept), OnPreQuestRewardsClaimed; EXP from level/quest grants.
  • Output: Pushes messages into the chat system (local or global depending on notification type).

All paths below are relative to Plugins/ModularInventoryPlus/Source/ModularInventoryPlus/.


Key Classes & Files

Class File
UMIPChatNotifierComponent Public/Notifier/MIPChatNotifierComponent.h

UMIPChatNotifierComponent

  • Base: UMIPBasePlayerControllerComponent.
  • Flow: BeginPlay/ClientBeginPlay → bind to PlayerServerIMC and quest component; OnNotifyAddItemResult, OnQuestAccepted, OnPreQuestRewardsClaimed; NotifyExpObtained(InExp, InSource); ClientBroadcastLocalNotification (Client RPC); internal BroadcastGlobalNotification, BroadcastItemLocalNotification, BroadcastGenericNotification.

Integration

  • UMIPPlayerServerIMC – NotifyAddItemResultDelegate.
  • UMIPBaseQuestComponent – quest list and pre-claim delegates.
  • Chat system (MIPChatSystem or game-specific) – receives the broadcast strings/widgets.