Halloween Event

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

zaved

Member
Sep 19, 2022
18
0
1
Hey,

If I would want to make a Halloween event, I would make something like this:

Placing e.g. 20 secret Pumpkin Heads over a huge Map and if someone finds one, he gets e.g 1000 Tokens.

Is it possible to make a skript were you say like player can only click one time at this head and then no more time? If you have solutions please write down ^^

Greets
Sascha :emoji_grinning:
 
store locations of placed head in any list, like {pumpkins::*}
on rightclick event check if {pumpkins::*} contains location of clicked block, if condition passed ->
then check if uuid of player doesn't exists in list like {received::%location of clicked block%::*}
if uuid doesn't exists in this list -> pay 1000 tokens and add uuid of player to {received::%location of clicked block%::*}
 
Status
Not open for further replies.