Name | Zap |
Related Guide Page | https://guide.denizenscript.com/guides/npcs/interact-scripts.html |
Syntax | zap (<script>) [<step>] (<duration>) |
Short Description | Changes the current interact script step. |
Full Description | Changes the current interact script step for the linked player.
The step name input should match the name of a step in the interact script. The step name can be '*' to automatically zap to the default step. If used inside an interact script, will default to the current interact script. If used elsewhere, but there is a linked NPC with an assignment and interact, that NPC's interact script will be used. For anywhere else, you must specify the script by name. Optionally specify a duration. When the duration is up, the script will zap back to the step it was previously on. If any zap commands are used during the duration, that duration will be discarded. The command's name was inspired by a command in the language "ZZT-OOP", from a 1991 DOS game enjoyed by the original developer of Denizen. |
Related Tags | <ScriptTag.step[<player>]> Returns the name of a script step that the player is currently on. (...)
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Synonyms (Search Aid) | step |
Group | core |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/core/ZapCommand.java#L31 |