How to use Actions
Note: The properties shown here may not be real properties
Using the Action System
Introduction
Id: 101
Name: Super Heal Potion
Description: A potion that heals you and tells everyone.
Actions:
- 'if {Player.Health} < 100 then Heal {Player.UserId} 25 & Broadcast 5 "{Player.DisplayName} used a Super Heal Potion!"'
- '{Player.StaminaRemaining} += 50.0'Core Concepts
1. Placeholders
2. Collection Operations
3. Collection Indexing & Predicates
Conditional Logic (if/unless)
if/unless)Supported Operators
Operator
Description
Example
Examples
Modifying Properties (Assignments)
Supported Operators
Operator
Description
Example
Example
Advanced Features
1. Calling C# Methods
Shortcut
Full Type
2. Executing Other Custom Actions
3. Local Variables
4. Delayed Actions
Putting It All Together: A Complex Example
Last updated
Was this helpful?