Jump to content

Checkpoint system


OwlGamer

Recommended Posts

Hello guys!

I just wanted to know that how can i make a checkpoint system with skript? Is it even possible? 

if it is possible i want when step on heavy weighted pressure plate it would send the player to checkpoint  1 and so on i have 20 checkpoints and if failed the player can teleport back to the last ceckpoint that they were on (Parkour system)

Tysm if ya can do it

 

- OwlG4mer

Link to comment
Share on other sites

yea, preatty sure you can use 

on step of heavy weighted pressure plate:
	if players location is {checkpoint1}:
		message "You got to the first checkpoint"!
		set {checkpoints::%player%} to 1
	if players location is {checkpoint2}:
		message "You got to the second checkpoint"!
		set {checkpoints::%player%} to 1

command /checkpoint [<text>] [<integer>]:
	trigger:
		if arg 1 is not "set" or "remove":
  			message "Usage: &6/checkpoint <set/remove> <integer>"
  		else:
  			if arg 1 is "set":
  				add arg 2 to {checkpoint::*}
  			else if arg 1 is "remove":
  				delete arg 2 from {checkpoint::*}

Thats untested, but a general idea of what you could do

 

 

image.png

image.png

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...