Narrat Docs
Search…
Jump Function

Jump Function

The jump function allows you to jump to a label. Labels are how you break down your scripts in reuseable and manageable chunks. You can jump from any file to a label in any other file.

Example

Running this code will play the script inside jump_example, then run the script inside label_to_jump
1
label_to_jump:
2
talk cat idle "The code has now jumped to this label"
3
4
jump_example:
5
talk cat idle "Hello, this is an example about jumping to other labels"
6
talk cat idle "Use the jump command to jump to a different label in any of your scripts"
7
jump label_to_jump
Copied!
Result of the above code
Copy link