Jump to content

New line feature in skript 2.5 for options


DonGiovanni

Recommended Posts

I was wondering if anyone knew how to make new lines in skript for options as I know you can make 1 line of code into an option like this:

options:

 a:set {n} to 10

But I wanted to make several lines of code into 1 option, so something like this:

options:
a:

set {n} to 1

while {n} is not 10:

 add 1 to {n}

 send "%{n}%" to player

Thanks for reading!

 

Link to comment
Share on other sites

2 hours ago, DeltaRays said:

Hey, I’m not sure you can do that, but I’ve never tried so I might be wrong

Ah I see! After further research I have found skript functions could do something similar to options, and they can be longer than a line so I will use a function instead. It would look something like this:

 

function a:

set {n} to 1

while {n} is not 10:

 add 1 to {n}

 send "%{n}%" to player

 

So if anyone else runs into this problem, I recommend using functions.

 

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...