Script (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.0

Syntax

[the] [current] script

Description

The current script, or a script from its (file) name. If the script is enabled or disabled (or reloaded) this reference will become invalid. Therefore, it is recommended to obtain a script reference <em>when needed</em>.

Examples

on script load:
	broadcast "Loaded %the current script%"
on script load:
	set {running::%script%} to true
on script unload:
	set {running::%script%} to false
set {script} to the script named "weather.sk"
loop the scripts in directory "quests/":
	enable loop-value

View source