What Do I Do: Interact Scripts (PARTIAL)
TODO: Write-up explaining the basics of interact scripts, including listing the 4 basic triggers, the concept of steps (and the zap command), and how to enable an interact script on the relevant assignment script. Demonstrate a click trigger.
Placeholder
Until this page is written, you can view the old tutorial video here.
Sample Script
Here's a quick sample of a modern interact script with two basic steps.
my_assignment:
type: assignment
actions:
on assignment:
- trigger name:click state:true
interact scripts:
- my_interact
my_interact:
type: interact
steps:
1:
click trigger:
script:
- chat "Hello, <player.name>!"
- zap 2
2:
click trigger:
script:
- chat "Hello part 2, <player.name>!"
- zap *
This script can be assigned to your selected NPC via /ex assignment set my_assignment