Przychodzę z takim problemem. Mam oto ten kod tutaj:
Spoiler
every 1 tick:
loop all players:
if {snowball::%loop-player%} is true:
execute console command "execute @e[type=snowball] ~ ~ ~ /particle fallingdust ~0.1 ~0.1 ~0.1 0.1 0.1 0.1 0.0000000000001 10 force @p 0179"
if {arrow::%loop-player%} is true:
execute console command "execute @e[type=arrow] ~ ~ ~ /particle fallingdust ~0.1 ~0.1 ~0.1 0.1 0.1 0.1 0.0000000000001 15 force @p 0110"
I wszystko działa ok, jednak każdy gracz ma ten particle gdyż wykonuje go konsola i jak zmieniam na "execute player command" by wykonał tą komendę jako op to wyskakuje mi ten błąd.
Spoiler
There's no player in a periodical event {particle.sk, line 34: make player execute command "execute @e[type=snowball] ~ ~ ~ /particle falling...
Tutaj daję cały skrypt:
Spoiler
command /part [<text>] [<text>]:
trigger:
if arg 1 is "snowball":
if arg 2 is "on":
set {snowball::%player%} to true
send "&2Snowball WŁączono"
if arg 2 is "off":
set {snowball::%player%} to false
send "&2Snowball Wyłączono"
if arg 2 is not set:
send "&2Poprawne użycie:"
send "&2/part [particle] [on/off]"
send "&2Particle : Snowball | Arrow "
send "&2Przykładowe użycie: /part arrow on"
if arg 1 is "arrow":
if arg 2 is "on":
set {arrow::%player%} to true
send "&2Arrow WŁączono"
if arg 2 is "off":
set {arrow::%player%} to false
send "&2Arrow Wyłączono"
if arg 2 is not set:
send "&2Poprawne użycie:"
send "&2/part [particle] [on/off]"
send "&2Particle : Snowball | Arrow "
send "&2Przykładowe użycie: /part arrow on"
if arg 1 is not set:
send "&2Poprawne użycie:"
send "&2/part [particle] [on/off]"
send "&2Particle : Snowball | Arrow "
send "&2Przykładowe użycie: /part arrow on"
every 1 tick:
loop all players:
if {snowball::%loop-player%} is true:
execute console command "execute @e[type=snowball] ~ ~ ~ /particle fallingdust ~0.1 ~0.1 ~0.1 0.1 0.1 0.1 0.0000000000001 10 force @p 0179"
if {arrow::%loop-player%} is true:
execute console command "execute @e[type=arrow] ~ ~ ~ /particle fallingdust ~0.1 ~0.1 ~0.1 0.1 0.1 0.1 0.0000000000001 15 force @p 0110"
Co brakuje/trzeba zmienić by działał i wykonywał go gracz, nie konsola?
Edytowane przez ignanmagus Edycja/Dodanie wiadomości na końcu.
Pytanie
ignanmagus 1
Przychodzę z takim problemem. Mam oto ten kod tutaj:
every 1 tick:
loop all players:
if {snowball::%loop-player%} is true:
execute console command "execute @e[type=snowball] ~ ~ ~ /particle fallingdust ~0.1 ~0.1 ~0.1 0.1 0.1 0.1 0.0000000000001 10 force @p 0179"
if {arrow::%loop-player%} is true:
execute console command "execute @e[type=arrow] ~ ~ ~ /particle fallingdust ~0.1 ~0.1 ~0.1 0.1 0.1 0.1 0.0000000000001 15 force @p 0110"
I wszystko działa ok, jednak każdy gracz ma ten particle gdyż wykonuje go konsola i jak zmieniam na "execute player command" by wykonał tą komendę jako op to wyskakuje mi ten błąd.
There's no player in a periodical event {particle.sk, line 34: make player execute command "execute @e[type=snowball] ~ ~ ~ /particle falling...
Tutaj daję cały skrypt:
command /part [<text>] [<text>]:
trigger:
if arg 1 is "snowball":
if arg 2 is "on":
set {snowball::%player%} to true
send "&2Snowball WŁączono"
if arg 2 is "off":
set {snowball::%player%} to false
send "&2Snowball Wyłączono"
if arg 2 is not set:
send "&2Poprawne użycie:"
send "&2/part [particle] [on/off]"
send "&2Particle : Snowball | Arrow "
send "&2Przykładowe użycie: /part arrow on"
if arg 1 is "arrow":
if arg 2 is "on":
set {arrow::%player%} to true
send "&2Arrow WŁączono"
if arg 2 is "off":
set {arrow::%player%} to false
send "&2Arrow Wyłączono"
if arg 2 is not set:
send "&2Poprawne użycie:"
send "&2/part [particle] [on/off]"
send "&2Particle : Snowball | Arrow "
send "&2Przykładowe użycie: /part arrow on"
if arg 1 is not set:
send "&2Poprawne użycie:"
send "&2/part [particle] [on/off]"
send "&2Particle : Snowball | Arrow "
send "&2Przykładowe użycie: /part arrow on"
every 1 tick:
loop all players:
if {snowball::%loop-player%} is true:
execute console command "execute @e[type=snowball] ~ ~ ~ /particle fallingdust ~0.1 ~0.1 ~0.1 0.1 0.1 0.1 0.0000000000001 10 force @p 0179"
if {arrow::%loop-player%} is true:
execute console command "execute @e[type=arrow] ~ ~ ~ /particle fallingdust ~0.1 ~0.1 ~0.1 0.1 0.1 0.1 0.0000000000001 15 force @p 0110"
Co brakuje/trzeba zmienić by działał i wykonywał go gracz, nie konsola?
Edytowane przez ignanmagusEdycja/Dodanie wiadomości na końcu.
Odnośnik do komentarza
https://skript.pl/temat/34015-problem-z-loop/Udostępnij na innych stronach
13 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.