Loop not executing

  • 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 comminuty!

    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.

Freddols

New Member
Jan 26, 2017
6
0
0
32
Hi there!

So i am trying to do the following loop, but it does not work...

code_language.skript:
every second:
    loop all entities in radius 12 around {PinkMushroom1}:
        apply regeneration to the loop-entity for 1 second

Now, i know you may say i have not set the Location Variable, but in fact i have set it earlier in the code with a command that looks like the following:

code_language.skript:
command /setmushroom <text> <number>:
    trigger:
        if arg 1 is "Pink":
            set {%arg 1%Mushroom%arg 2%} to player's location
            message "&dLocation Set!"
        if arg 1 is "Blue":
            set {%arg 1%Mushroom%arg 2%} to player's location
            message "&9Location Set!"

I have no idea to why this does not work, and would require some assistance... Thanks!
 
Status
Not open for further replies.