Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Local Variables

Deide edited this page Oct 24, 2012 · 1 revision

Syntax: 'set.$varname': 'value'

Description: Sets a variable to be used in the currently fired event

Example:

Command:
    - 'randomtele': ## teleport randomly to 1 of 5 places
        - 'set.$dec': 'range(1,5)'
        - 'if $dec == 1':
            - 'set.$x': '-674'
            - 'set.$y': '63'
            - 'set.$z': '1791'
        - 'if $dec == 2':
            - 'set.$x': '-693'
            - 'set.$y': '63'
            - 'set.$z': '1767'
        - 'if $dec == 3':
            - 'set.$x': '-711'
            - 'set.$y': '63'
            - 'set.$z': '1788'
        - 'if $dec == 4':
            - 'set.$x': '-693'
            - 'set.$y': '63'
            - 'set.$z': '1810'
        - 'if $dec == 5':
            - 'set.$x': '-693'
            - 'set.$y': '54'
            - 'set.$z': '1794'
        - 'sender.teleport.$x.$y.$z'
Clone this wiki locally