Skip to content

RequirementResponseSeen ​

Inherits: Requirement < Resource

Requirement that checks if a player has seen/selected a specific response Useful for branching conversations based on player choices

Properties ​

SourceTypesource_typeSourceType.NPC
intentity_unique_id0
intinteractable_unique_id0
intresponse_id0
boolmust_have_seentrue

Methods ​

boolcheck( entity: Entity )
Stringget_failure_message( _entity: Entity )
Stringget_summary()

Enumerations ​

enum SourceType ​

The options of source type: npc, interactable.

  • NPC = 0
  • INTERACTABLE = 1

Property descriptions ​

SourceType source_type = SourceType.NPC ​

Source type - NPC or Interactable

int entity_unique_id = 0 ​

Unique ID of the NPC (used when source_type == NPC)

int interactable_unique_id = 0 ​

Unique ID of the interactable (used when source_type == INTERACTABLE)

int response_id = 0 ​

ID of the response to check

bool must_have_seen = true ​

If true, requirement passes if response was seen. If false, passes if NOT seen.

Method descriptions ​

bool check( entity: Entity ) ​

Check if the requirement is met

String get_failure_message( _entity: Entity ) ​

Get the failure message with entity-specific context

String get_summary() ​

Get a summary of this requirement for tooltips/UI