Skocz do zawartości
  • 0

Respienia moba po zabiciu gracza


Pytanie

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Dnia 24.12.2016 o 12:58, KrejzolekPRO napisał:

on death:
	if victim is not player:
		set {_x} to location of victim
		chance of 50%:
			respawn zombie at {_x}
			[...]
	

zle!

on death:
	if victim is player:
		chance of 30%:
			spawn zombie at location of victim
			set name of last spawned entity to "Zombiak"
	if entity is zombie:
		if name of entity is "Zombiak":
			drop 1 gold ingot at victim

 

Odnośnik do komentarza
https://skript.pl/temat/15351-respienia-moba-po-zabiciu-gracza/#findComment-108343
Udostępnij na innych stronach

  • 0

Zle! XD Musi byc jeszcze hp

on death:
	if victim is player:
		chance of 30%:
			spawn zombie at location of victim
			set name of last spawned entity to "Zombiak"
			set health of last spawned entity to 20
	if entity is zombie:
		if name of entity is "Zombiak":
			drop 1 gold ingot at victim

 

Odnośnik do komentarza
https://skript.pl/temat/15351-respienia-moba-po-zabiciu-gracza/#findComment-108349
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ę...