Jump to content

How do you make quests and a message that loops every once in a while?


Pokejin

Recommended Posts

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

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

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

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

  • Thanks 1
Link to comment
Share on other sites

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

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

 

forums.gif.5d3db2db4a05c9465b84fa9bf0293df4.gif

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