Pets State
Change the state of a pet
字段
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
pet | Ref<PetDefinitionEntry> | — | Target pet definition to affect. |
action | PetAction | ACTIVATE | What action should be performed on the pet.可选值:ACTIVATEDEACTIVATEHIDESHOWREMOVE |
TypeWriter 通用字段(criteria, modifiers, triggers)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Pick the pet with pet and the operation with action: ACTIVATE (makes it the active pet and deactivates the others), DEACTIVATE, HIDE, SHOW, or REMOVE (deletes the pet from the player's menu without returning an item). The player must already own the pet, otherwise nothing happens.