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 ​
SourceType | source_type | SourceType.NPC |
int | entity_unique_id | 0 |
int | interactable_unique_id | 0 |
int | response_id | 0 |
bool | must_have_seen | true |
Methods ​
bool | check( entity: Entity ) |
String | get_failure_message( _entity: Entity ) |
String | get_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