skript-reflect
2.x
2.x
  • skript-reflect
  • Getting Started
  • Basics
    • Reading Javadocs
    • Importing classes
    • Running Java code
    • Handling events
    • Utilities
  • Advanced
    • Error handling
    • Loading external libraries
    • Custom syntax
      • Effects
      • Conditions
      • Expressions
      • Events
    • Computed Options
    • Reflection
      • Proxies
      • Sections
    • Experiments
  • Code Conventions
  • Frequently Asked Questions
Powered by GitBook
On this page
  • Shared Syntax
  • Event Classes
  • Expression
  • Matched Pattern
  • Parser Mark
  • Parse Tag
  • Parser Regular Expression
  • Continue

Was this helpful?

  1. Advanced

Custom syntax

PreviousLoading external librariesNextEffects

Last updated 3 years ago

Was this helpful?

Due to Skript and skript-reflect limitations, it is not easy to create custom syntax through Java calls alone. To help with this, skript-reflect offers utilities that simplify the creation of custom syntax.

Shared Syntax

Event Classes

event-classes

Expression

[the] expr[ession][s](-| )%number%

When used with , you can set it to a value, which will change the input value from that argument. This can be used to store data in variables in the calling trigger.

import:
	ch.njol.skript.lang.Variable

effect put %objects% in %objects%:
	parse:
		expr-2 is an instance of Variable # to check if the second argument is a variable
		continue
	trigger:
		set raw expr-2 to expr-1

Matched Pattern

[the] [matched] pattern

Parser Mark

[the] [parse[r]] mark

Parse Tag

Parse tags are like parse tags, but they're a set of strings instead of a single integer.

[the] parse[r] tags

Parser Regular Expression

[the] [parse[r]] (regex|regular expression)(-| )%number%

Continue

continue

Parse tags were added in Skript 2.6.1, and are explained in more detail

here
Effects
Conditions
Expressions
Events
the raw expression