Skocz do zawartości
  • 0

Loop all players


piesio98

Pytanie

Mam problem, gdyż chcę aby skrypt wykonywał komendy i inne rzeczy jednakowo do wszystkich zaznaczonych graczy.

Część skryptu:

every 1 second:	{ox.nastepne.pytanie} is true:		loop all players:			{ox.gracz.%loop-player%} is true:				add 1 to {ox.nr.pyt}				set {ox.nastepne.pytanie} to false				if {ox.nr.pyt} is 1:					create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds				if {ox.nr.pyt} is 2:					create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds				if {ox.nr.pyt} is 3:					create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds				if {ox.nr.pyt} is 4:					create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds				if {ox.nr.pyt} is 5:					create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds				if {ox.nr.pyt} is 6:					create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds				if {ox.nr.pyt} is 7:					create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds				if {ox.nr.pyt} is 8:					create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds				if {ox.nr.pyt} is 9:					create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds				if {ox.nr.pyt} is 10:					create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds				send "{@prefix} &2Masz 15 sekunds na odpowiedz" to loop-player				send " " to loop-player				send "&b&l[INFO] Wybierz odpowiedz klikajac w equ na odpowiednie przedmioty lub przejsc na odpowiednie pole" to loop-player				wait 5 seconds				send "&a&l10..." to loop-player				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				wait 1 second				send "&a&l9..." to loop-player				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				wait 1 second				send "&2&l8..." to loop-player				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				wait 1 second				send "&2&l7..." to loop-player				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				wait 1 second				send "&e&l6..." to loop-player				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				wait 1 second				send "&e&l5..." to loop-player				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				wait 1 second				send "&6&l4..." to loop-player				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				wait 1 second				send "&6&l3..." to loop-player				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				wait 1 second				send "&c&l2..." to loop-player				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				wait 1 second				send "&4&l1..." to loop-player				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op				wait 1 secon... 

Jak narazie to bierze jednego gracza i rb z nim to UP, potem jeśli z nim skończy bierze kolejnego ;p

 

Odnośnik do komentarza
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

Mehh , miałem to samo ;p Masz pierwsze dwa potem sobie sam dorobisz ;d

every 1 second:    {ox.nastepne.pytanie} is true:        loop all players:            {ox.gracz.%loop-player%} is true:                add 1 to {ox.nr.pyt}                set {ox.nastepne.pytanie} to false                set {_:_} to true		loop all players:		    if {_:_} is true:                if {ox.nr.pyt} is 1:                    create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds		loop all players:		 if {_:_} is true:                if {ox.nr.pyt} is 2:                    create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds                if {ox.nr.pyt} is 3:                    create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds                if {ox.nr.pyt} is 4:                    create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds                if {ox.nr.pyt} is 5:                    create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds                if {ox.nr.pyt} is 6:                    create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds                if {ox.nr.pyt} is 7:                    create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds                if {ox.nr.pyt} is 8:                    create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds                if {ox.nr.pyt} is 9:                    create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds                if {ox.nr.pyt} is 10:                    create timed boss bar with text "&d1. %coloured {ox.pytanie.1}%" to loop-player for 15 seconds                send "{@prefix} &2Masz 15 sekunds na odpowiedz" to loop-player                send " " to loop-player                send "&b&l[INFO] Wybierz odpowiedz klikajac w equ na odpowiednie przedmioty lub przejsc na odpowiednie pole" to loop-player                wait 5 seconds                send "&a&l10..." to loop-player                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                wait 1 second                send "&a&l9..." to loop-player                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                wait 1 second                send "&2&l8..." to loop-player                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                wait 1 second                send "&2&l7..." to loop-player                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                wait 1 second                send "&e&l6..." to loop-player                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                wait 1 second                send "&e&l5..." to loop-player                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                wait 1 second                send "&6&l4..." to loop-player                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                wait 1 second                send "&6&l3..." to loop-player                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                wait 1 second                send "&c&l2..." to loop-player                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                wait 1 second                send "&4&l1..." to loop-player                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                run loop-player command "/magicsound playEx BAT_DEATH 10 10" as op                wait 1 secon
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...