on break:
if event-block is stone:
add 1 to {stone::%player%}
if event-block is diamond ore:
add 1 to {diamond::%player%}
if event-block is iron ore:
add 1 to {iron::%player%}
if event-block is emerald ore:
add 1 to {emerald::%player%}
if event-block is gold ore:
add 1 to {gold::%player%}
command /eco [<text>] [<text>]:
permission: ekonomia.sk
permission message: &fUnknown command, type /help for help.
trigger:
if arg 1 is "reset":
if arg 2 is player:
set player's {stone::%player%} to 0: #jak to napisać
if arg 2 is "all":
loop all players:
set loop-player's {stone::%player%} to 0 # oraz to
mam problem gdyz nie wiem co napisac aby komenda zmieniala zmienną gracza na 0. prosze o szybką odpowiedź. mysle ze to nie powinno zajac duzo czasu.
Pytanie
hwdp789 11
Variables:
{stone::%player%} = 0
{diamond::%player%} = 0
{iron::%player%} = 0
{emerald::%player%} = 0
{gold::%player%} = 0
on break:
if event-block is stone:
add 1 to {stone::%player%}
if event-block is diamond ore:
add 1 to {diamond::%player%}
if event-block is iron ore:
add 1 to {iron::%player%}
if event-block is emerald ore:
add 1 to {emerald::%player%}
if event-block is gold ore:
add 1 to {gold::%player%}
command /ekonomia:
aliases: eko
trigger:
send "&a======&4EKONOMIA&a======"
send "&a[&5Ekonomia&a] &bWykopales juz &4&l%{iron::%player%}% &7zelaza"
send "&a[&5Ekonomia&a] &bWykopales juz &4&l%{gold::%player%}% &6Zlota"
send "&a[&5Ekonomia&a] &bWykopales juz &4&l%{emerald::%player%}% &aszmaragdow"
send "&a[&5Ekonomia&a] &bWykopales juz &4&l%{diamond::%player%}% &diamentow"
send "&a[&5Ekonomia&a] &bWykopales juz &4&l%{stone::%player%}% &bkamienia"
command /eco [<text>] [<text>]:
permission: ekonomia.sk
permission message: &fUnknown command, type /help for help.
trigger:
if arg 1 is "reset":
if arg 2 is player:
set player's {stone::%player%} to 0: #jak to napisać
if arg 2 is "all":
loop all players:
set loop-player's {stone::%player%} to 0 # oraz to
mam problem gdyz nie wiem co napisac aby komenda zmieniala zmienną gracza na 0. prosze o szybką odpowiedź. mysle ze to nie powinno zajac duzo czasu.
Odnośnik do komentarza
https://skript.pl/temat/17817-resetowanie-zmiennej/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi