infinitely looping with no loop

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

Terry Jackson

New Member
Aug 20, 2018
2
2
3
24
When i added the "make attacker damage victim by 6" effect my script starts looping without any loops


code_language.skript:
on damage:
    attacker is a player
    {slampackage.%attacker%.souls} is greater than or equal to 20
    {slampackage.%attacker%.toggle.rarity.gem} is "true"
    if {divine.immolation.cooldown.%attacker%} is not set:
        set {divine.immolation.cooldown.%attacker%} to 0   
    if lore of attacker's tool contains "&cDivine Immolation":
        if {divine.immolation.cooldown.%attacker%} is less than or equal to 0:
            play 10 mob spawner flames at victim's location
            execute console command "/playsound mob.enderdragon.growl %attacker% 1 1 1 100"
            execute console command "/playsound mob.enderdragon.growl %victim% 1 1 1 100"
            make attacker damage victim by 6
            subtract 20 from {slampackage.%attacker%.souls}
            set the name of {item} to "&c&lSoul Gem [&6&l%{slampackage.%attacker%.souls}%&c&l]"
            set {divine.immolation.cooldown.%attacker%} to 1
            wait 1 second
            set {divine.immolation.cooldown.%attacker%} to 0
            stop
 
Probably because make damage triggers the on damage event
 
Status
Not open for further replies.