Çözüldü Puan sk

  • Konuyu Başlatan Konuyu Başlatan Demacor
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 968
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Demacor

Örümcek Hoşt!
Katılım
24 Ocak 2019
Mesajlar
363
Elmaslar
45
Puan
0
Yaş
22
Minecraft
Demacor
Merhaba arkadaşlar aşağıdaki skript güzel bir şekilde çalışıyor ama diyelim 2 oyuncu var biri 5 puan alıyor diğer 2 puanken o da 5 puan oluyor veya diğer 10 puanken bende 3 puanken 10 puan oluyorum
yardım eder misiniz?


Kod:
on death:
    if attacker is a player:
        if victim is zombie or skeleton or zombie pigman or blaze or ghast or spider or cave spider:
            add 2 to {puan::%attacker%}
        if victim is pig or sheep or cow:
            add 1 to {puan::%attacker%}

command /puan:
    trigger:
        send "&aPuanın: &e%{puan::%player%}%" to player

command /sıralama:
    trigger:
        loop {puan::*}:
            add 1 to {_size}
            if {_low.to.high.list::%loop-value%} is not set:
                set {_low.to.high.list::%loop-value%} to loop-index
            else:
                set {_n} to 0
                loop {_size} times:
                    set {_n} to {_n}+1
                    {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
                    set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
                    stop loop
        wait 1 tick
        set {_n} to size of {_low.to.high.list::*}
        loop {_low.to.high.list::*}:
            set {_high.to.low.list::%{_n}%} to loop-value
            set {_n} to {_n}-1
        wait 1 tick
        message " &a&nEN ÇOK PUANA SAHİP 3 KİŞİ"
        loop {_high.to.low.list::*}:
            add 1 to {_result}
            send "&b%loop-value%&7: &e%{puan::%player%}% puan"
            if {_result} is 3:
                stop
 
@Melowdy Skript yapımcısı olarak senı yönlendiriyorum
 
Merhaba, kodun küçük bir bölümünde hata yapmışım, kusura bakmayın.

KODUN SON HALI BURADA!
Kod:
on death:
    if attacker is a player:
        if victim is zombie or skeleton or zombie pigman or blaze or ghast or spider or cave spider:
            add 2 to {puan::%attacker%}
        if victim is pig or sheep or cow:
            add 1 to {puan::%attacker%}

command /puan:
    trigger:
        send "&aPuanın: &e%{puan::%player%}%" to player

command /sıralama:
    trigger:
        loop {puan::*}:
            add 1 to {_size}
            if {_low.to.high.list::%loop-value%} is not set:
                set {_low.to.high.list::%loop-value%} to loop-index
            else:
                set {_n} to 0
                loop {_size} times:
                    set {_n} to {_n}+1
                    {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
                    set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
                    stop loop
        wait 1 tick
        set {_n} to size of {_low.to.high.list::*}
        loop {_low.to.high.list::*}:
            set {_high.to.low.list::%{_n}%} to loop-value
            set {_n} to {_n}-1
        wait 1 tick
        message " &a&nEN ÇOK PUANA SAHİP 3 KİŞİ"
        loop {_high.to.low.list::*}:
            add 1 to {_result}
            send "&b%loop-value%&7: &e%{puan::%loop-value%}% puan"
            if {_result} is 3:
                stop
 
Son durumunu bize söyle çalıştıysa konuyu kilitleyelim kanka.
 
Merhaba, kodun küçük bir bölümünde hata yapmışım, kusura bakmayın.

KODUN SON HALI BURADA!
Kod:
on death:
    if attacker is a player:
        if victim is zombie or skeleton or zombie pigman or blaze or ghast or spider or cave spider:
            add 2 to {puan::%attacker%}
        if victim is pig or sheep or cow:
            add 1 to {puan::%attacker%}

command /puan:
    trigger:
        send "&aPuanın: &e%{puan::%player%}%" to player

command /sıralama:
    trigger:
        loop {puan::*}:
            add 1 to {_size}
            if {_low.to.high.list::%loop-value%} is not set:
                set {_low.to.high.list::%loop-value%} to loop-index
            else:
                set {_n} to 0
                loop {_size} times:
                    set {_n} to {_n}+1
                    {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
                    set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
                    stop loop
        wait 1 tick
        set {_n} to size of {_low.to.high.list::*}
        loop {_low.to.high.list::*}:
            set {_high.to.low.list::%{_n}%} to loop-value
            set {_n} to {_n}-1
        wait 1 tick
        message " &a&nEN ÇOK PUANA SAHİP 3 KİŞİ"
        loop {_high.to.low.list::*}:
            add 1 to {_result}
            send "&b%loop-value%&7: &e%{puan::%loop-value%}% puan"
            if {_result} is 3:
                stop
Önemli değil, siz hatanızı telafi ettiniz o bana yeter.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst