DonGiovanni Posted September 11, 2020 Share Posted September 11, 2020 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 More sharing options...
DeltaRays Posted September 11, 2020 Share Posted September 11, 2020 Hey, I’m not sure you can do that, but I’ve never tried so I might be wrong 1 Link to comment Share on other sites More sharing options...
DonGiovanni Posted September 11, 2020 Author Share Posted September 11, 2020 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 More sharing options...
DeltaRays Posted September 11, 2020 Share Posted September 11, 2020 Yeah, functions are a way better method to do that Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now