Skip to content

UMIPNPCSecondaryActionAsset

Overview

UMIPNPCSecondaryActionAsset defines extra dialogue actions for an NPC beyond the main dialogue tree — e.g. open vendor, open exchange, play a cutscene. Each entry is FMIPNPCSecondaryDialogueActionStruct (handler class, display text, gating). The dialogue UI uses this list to populate secondary buttons.

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


Key Classes & Files

Class File
UMIPNPCSecondaryActionAsset Public/DataAsset/MIPNPCSecondaryActionAsset.h
FMIPNPCSecondaryDialogueActionStruct Public/NPC/SecondaryAction/MIPNPCSecondaryDialogueActionStruct.h
IsDataValid Private/DataAsset/MIPNPCSecondaryActionAsset.cpp

Properties

Property Type Description
SecondaryDialogueActions TArray<FMIPNPCSecondaryDialogueActionStruct> Secondary actions for this NPC.

Editor validation

Severity Condition Message
Error SecondaryDialogueActions empty SecondaryDialogueActions is empty — NPC has no secondary actions.

Implementation: Private/DataAsset/MIPNPCSecondaryActionAsset.cpp (#if WITH_EDITOR).


Integration

Topic Link
NPC NPC
Vendor / exchange Vendor, Exchange
Data assets index Data assets index