Jump to Label

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

This script allows you to use a script call to jump to a label in the event list. You can pass in anything as long as it evaluates to a string, such as variables.

jumpToLabels1

Download

Script: download here

Installation

Place this script below Materials and above Main

Usage

Make a script call

jump_to_label(label_name, match_substring, ignore_case)

Where
label_name is the name of the label you want to jump to
match_substring is a boolean that determines whether partial matching is ok
ignore_case is a boolean that allows you to ignore label casing.

For example if you have a label called “test label”, then the following calls will all jump to that label

jump_to_label("test label")
jump_to_label("test", true)
jump_to_label("TEST LAbeL", false, true)
Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

4 Responses

  1. Riker says:

    Can this script call jump to a label that is at the very beginning of the calling event rather than after where the common event was called? Doesn’t seem to be working when I try and do that.

  2. Yin says:

    Can this be used to jump to a label in a different event?

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax