docs: add action system documentation

This commit is contained in:
Oliver
2025-03-29 11:13:11 +01:00
parent 906eb4d79b
commit bd90f3fe02
2 changed files with 127 additions and 5 deletions

View File

@@ -183,6 +183,10 @@ Teleports you to the specified NPC.
## Manage interactions
!!!
Learn more about actions and triggers in the [Action System](../tutorials/action-system.md) tutorial.
!!!
### Add action
Adds an action to the specified NPC's trigger.
@@ -190,11 +194,6 @@ Adds an action to the specified NPC's trigger.
- **Syntax**: `/npc action (npc) (trigger) add (actionType) [value]`
- **Permissions**: `fancynpcs.command.npc.action.add`
!!!
You can use any placeholder by PlaceholderAPI in the action value.
The `{player}` placeholder can be used in `console_command` actions without needing PlaceholderAPI.
!!!
### Add action before
Adds an action before the specified index in the NPC's action list for the given trigger.