memory.has_milestone
Overview
- Checks whether the target character has acquired the given milestone.
Metadata
| Field | Value |
|---|---|
| Display | Has Milestone |
| Category | memory |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | no | — | Target entity ID (default: possessed) |
| milestone_id | name | yes | — | Milestone ID to check |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
entity_id | entityId | yes | Owner entity id |
milestone_id | string | yes | Milestone id checked |
has_milestone | bool | yes | Whether the milestone is acquired |
Usage
await inzoi.cli.execute('memory.has_milestone', {
entity_id: 0, // optional
milestone_id: '',
});