Siema. Mam problem, otóż napisałem taki skrypt na ulepszanie hp, chyba łatwo się domyślić jak to działa. Jestem dość nowy w tych wszystkich zmiennych itp., dlatego tego pewnie nie rozumiem... Otóż wczesniej, jak zmienna nazywała się po prostu {poz1} to wtedy jak rozumiem była serwerowa, no i wtedy nakładało efekt każdemu graczowi. Dlatego zmieniłem na {poz1::%player%} ale teraz po wpisaniu komendy nic sie nie dzieje, nikt nie otrzymuje efektu.
command /reset-ulepszenia-hp:trigger:
set {poz1::%player%} to false
set {poz2::%player%} to false
set {poz3::%player%} to false
on join:
if {poz1::%player%} is true:
execute console command "effect give %player% minecraft:health_boost 1000000 0"
if {poz2::%player%} is true:
execute console command "effect give %player% minecraft:health_boost 1000000 1"
if {poz3::%player%} is true:
execute console command "effect give %player% minecraft:health_boost 1000000 2"
on drink of milk:
if {poz1::%player%} is true:
wait 2 tick
execute console command "effect give %player% minecraft:health_boost 1000000 0"
if {poz2::%player%} is true:
wait 2 tick
execute console command "effect give %player% minecraft:health_boost 1000000 1"
if {poz3::%player%} is true:
wait 2 tick
execute console command "effect give %player% minecraft:health_boost 1000000 2"
on respawn:
wait 2 tick
if {poz1::%player%} is true:
wait 2 tick
execute console command "effect give %player% minecraft:health_boost 1000000 0"
if {poz2::%player%} is true:
wait 2 tick
execute console command "effect give %player% minecraft:health_boost 1000000 1"
if {poz3::%player%} is true:
wait 2 tick
execute console command "effect give %player% minecraft:health_boost 1000000 2"
command /ulepsz-hp [<player>][<text>]:permission: ulepszanie.hp
trigger:
if arg 2 is "poz1":
if {poz1::%player%} is false:
set {poz1::%player%} to true
send "cenzura &aUlepszono HP na Poziom 1!" to arg-1
execute console command "effect give %arg 1% minecraft:health_boost 1000000 0"
else if {poz1::%player%} is true:
send "cenzura &cJuż to zakupiłeś!" to arg-1
if arg 2 is "poz2":
if {poz2::%player%} is false:
set {poz2::%player%} to true
send "cenzura &aUlepszono HP na Poziom 2!" to arg-1
execute console command "effect give %arg 1% minecraft:health_boost 1000000 1"
else if {poz2::%player%} is true:
send "cenzura &cJuż to zakupiłeś!" to arg-1
if arg 2 is "poz3":
if {poz3::%player%} is false:
set {poz3::%player%} to true
send "cenzura &aUlepszono HP na Poziom 3!" to arg-1
execute console command "effect give %arg 1% minecraft:health_boost 1000000 2"
else if {poz3::%player%} is true:
send "cenzura &cJuż to zakupiłeś!" to arg-1
Proszę o wyrozumiałość i z góry dziękuje za odpowiedź
Pytanie
Notro 147
Siema. Mam problem, otóż napisałem taki skrypt na ulepszanie hp, chyba łatwo się domyślić jak to działa. Jestem dość nowy w tych wszystkich zmiennych itp., dlatego tego pewnie nie rozumiem... Otóż wczesniej, jak zmienna nazywała się po prostu {poz1} to wtedy jak rozumiem była serwerowa, no i wtedy nakładało efekt każdemu graczowi. Dlatego zmieniłem na {poz1::%player%} ale teraz po wpisaniu komendy nic sie nie dzieje, nikt nie otrzymuje efektu.
Proszę o wyrozumiałość i z góry dziękuje za odpowiedź
Odnośnik do komentarza
Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi