Skip to content

Instantly share code, notes, and snippets.

@petabyt
Created November 5, 2021 14:54
Show Gist options
  • Save petabyt/c842613d9e45f4040e3dd26bc04108f3 to your computer and use it in GitHub Desktop.
Save petabyt/c842613d9e45f4040e3dd26bc04108f3 to your computer and use it in GitHub Desktop.
Python to Skript

Functions

Python:

def foobar(pl, p):
	send(pl, p)

Skript: An underscore is used before the variable name in order to
reference a local variable.

function foobar(pl: player, p: text):
	send "%{_p}%" to {_pl}

Variables

Python:

name = "Daniel"

Skript:

set {name} to "Daniel"

String Comparasion

Python:

if name == "Daniel":
	...

Skript:

if {name} is "Daniel":
	...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment