Witam! Mam pytanie otóż mam na dole taki kodzik i jest w nim jeden problem jezeli zrespia sie 2 moby i zabije 1 (w tym przypadku 5 hitow to zabicie moba) to drugi ginie po 1 . Czy da sie ustawić dla każdego nowego unikalna zmienna od ktorej by sie odejmował dmg?
every 10 second:
if {spawn1moba} < 1:
spawn 1 zombie at {spawnmobka}
set the last spawned entity's max health to 1000
heal last spawned entity
set the spawned zombie's display name to "Test"
set helmet of last spawned entity to diamond helmet
set {hpmobaTest::%uuid of last spawned entity%} to 250
on damage:
if victim is zombie:
if name of victim is "Test":
heal victim
remove 50 from {hpmobaTest::%victim's uuid%}
if {hpmobaTest::%victim's uuid%} is less than 1:
kill victim
Pytanie
Dogy 0
Witam! Mam pytanie otóż mam na dole taki kodzik i jest w nim jeden problem jezeli zrespia sie 2 moby i zabije 1 (w tym przypadku 5 hitow to zabicie moba) to drugi ginie po 1 . Czy da sie ustawić dla każdego nowego unikalna zmienna od ktorej by sie odejmował dmg?
every 10 second: if {spawn1moba} < 1: spawn 1 zombie at {spawnmobka} set the last spawned entity's max health to 1000 heal last spawned entity set the spawned zombie's display name to "Test" set helmet of last spawned entity to diamond helmet set {hpmobaTest::%uuid of last spawned entity%} to 250 on damage: if victim is zombie: if name of victim is "Test": heal victim remove 50 from {hpmobaTest::%victim's uuid%} if {hpmobaTest::%victim's uuid%} is less than 1: kill victim
Edytowane przez DogyOdnośnik do komentarza
https://skript.pl/temat/37663-ustawianie-unikalnej-zmiennej-dla-kazdego-moba/Udostępnij na innych stronach
0 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ą.