Skip to main content

memory.has_memory

Overview

  • Checks whether the target character has a memory. If target_entity_id is given, checks the latest memory with that target.

Metadata

FieldValue
DisplayHas Memory
Categorymemory
AccessPublic
ScopeB2Authority
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdno—Owner entity ID (default: possessed)
memory_dt_idnameyes—Memory data table ID to check
target_entity_identityIdno—Optional: restrict to memory with this target

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
entity_identityIdyesOwner entity id
memory_dt_idstringyesMemory data table id checked
has_memoryboolyesWhether the memory exists

Usage

await inzoi.cli.execute('memory.has_memory', {
entity_id: 0, // optional
memory_dt_id: '',
target_entity_id: 0, // optional
});