Pokejin Posted October 28, 2020 Share Posted October 28, 2020 How do you make a message in your server loop once in a while? Also how do you make things like Quests(like Kill 20 zombies for a prize) Link to comment Share on other sites More sharing options...
_Tarna_ Posted October 28, 2020 Share Posted October 28, 2020 If you want to broadcast things to the server every once in a while, you can use a periodical loop. every 5 minutes: broadcast "hello everyone" This will broadcast "hello everyone" to the server every 5 minutes. Also to make a quest like kill 20 zombies, you will need to save a variable with the number of zombie kills that someone has. And when they kill a zombie, increase the variable by one. once it gets to 20, you can give them a prize. 1 Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
quick007 Posted October 28, 2020 Share Posted October 28, 2020 Hey, I'll help you with a quest skript, but it will probably take a bit of back and forth. Mind messaging me on discord? `Lukas#1969` 1 Link to comment Share on other sites More sharing options...
Pokejin Posted October 29, 2020 Author Share Posted October 29, 2020 On 10/27/2020 at 9:23 PM, quick007 said: Hey, I'll help you with a quest skript, but it will probably take a bit of back and forth. Mind messaging me on discord? `Lukas#1969` On 10/27/2020 at 6:26 PM, _Tarna_ said: If you want to broadcast things to the server every once in a while, you can use a periodical loop. every 5 minutes: broadcast "hello everyone" This will broadcast "hello everyone" to the server every 5 minutes. Also to make a quest like kill 20 zombies, you will need to save a variable with the number of zombie kills that someone has. And when they kill a zombie, increase the variable by one. once it gets to 20, you can give them a prize. Thanks _Tarna_!! Also quick007 i don't use discord sry... Link to comment Share on other sites More sharing options...
Satellq Posted October 30, 2020 Share Posted October 30, 2020 variables: {%player%.killedZombies} = 0 on death of a zombie: damager is a player add 1 to {%player%.killedZombies} wait 2 tick if {%player%.killedZombies} >= 20: # He completed the task I didn't test it, try it out and let me know. 1 Link to comment Share on other sites More sharing options...
DeltaRays Posted October 30, 2020 Share Posted October 30, 2020 That will probably work, there's just one issue though: variables should never begin with expressions @WithqutMe You should use {killedZombies::%player's uuid%} instead. player's uuid instead of player because their uuid doesn't change when they change name, :: because it lets you do more stuff (like easily loop the variable, and delete all values) the expression (player) after killedZombies because what if a player named events joins? Then a variable called {events.killedZombies} would be created and that could cause issues 1 Link to comment Share on other sites More sharing options...
Satellq Posted October 30, 2020 Share Posted October 30, 2020 Intersting, I started learning skript two days ago so I didn't know that. Link to comment Share on other sites More sharing options...
Pokejin Posted October 30, 2020 Author Share Posted October 30, 2020 3 hours ago, WithqutMe said: Intersting, I started learning skript two days ago so I didn't know that. Where did you find such a good place to learn skript? Link to comment Share on other sites More sharing options...
Pokejin Posted October 30, 2020 Author Share Posted October 30, 2020 4 hours ago, DeltaRays said: That will probably work, there's just one issue though: variables should never begin with expressions @WithqutMe You should use {killedZombies::%player's uuid%} instead. player's uuid instead of player because their uuid doesn't change when they change name, :: because it lets you do more stuff (like easily loop the variable, and delete all values) the expression (player) after killedZombies because what if a player named events joins? Then a variable called {events.killedZombies} would be created and that could cause issues Hold on, this is a lot of information for my little brain Yes i know the player's uuid doesn't change but what does :: really mean? also, what is the expression? I know what the variable is so is the expression killedZombies? i didn't see a "expressions" part in the SkUnity parser which isn't working lately for some reason. 11 hours ago, WithqutMe said: variables: {%player%.killedZombies} = 0 on death of a zombie: damager is a player add 1 to {%player%.killedZombies} wait 2 tick if {%player%.killedZombies} >= 20: # He completed the task I didn't test it, try it out and let me know. Also, what does # mean? Or tick? I'm sorry if i'm a bother. last question: How long is a tick? Link to comment Share on other sites More sharing options...
notminehut Posted October 30, 2020 Share Posted October 30, 2020 (edited) 15 hours ago, Pokejin said: Also, what does # mean? # is a comment meaning any text after that will be ignored by skript. 15 hours ago, Pokejin said: How long is a tick? 20 ticks is a second, so a single tick is 1/20 of a second Edited October 31, 2020 by Minehut Founder - Minehut.xyz The leading Minehut support website. We aim to provide top quality tutorials, provide answers to top questions, and help in any way we can. Our site is community driven, and we will continue to make it better and better. Support | 28/08/20 -13/09/20 Senior Support | 13/09/20 - 19/10/20 Link to comment Share on other sites More sharing options...
Satellq Posted October 30, 2020 Share Posted October 30, 2020 19 minutes ago, Pokejin said: Where did you find such a good place to learn skript? https://skriptlang.github.io/Skript/index.html https://youtube.com/ 2 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