Skocz do zawartości
  • 0

Zmienne


02player

Pytanie

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

i mam jeszcze jedno pytanie

every 30 seconds:
	remove 3 to {woda.%player%}
	if {woda.%player%} = 100:
		remove slowness from the player
		remove nausea from the player
		cure the player from poison
		send "Jestes napojony!" to player
	
on drink water bottle:
	if player's tool is water bottle named "woda":
		add 30 to {click.%player%}
		
every 1 tick:
	if {woda.%player%} = 50:
		apply slowness 2 to the player
	if {woda.%player%} = 25:
		apply nausea 1 to the player
	if {woda.%player%} = 10:
		poison the player

robie system którym ma być napojenie i pokazuje mi błąd

 

[14:51:59 ERROR]: Can't understand this condition/effect: remove 3 to {woda.%player%} (woda.sk, line 3: remove 3 to {woda.%player%}')
[14:51:59 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (woda.sk, line 4: if {woda.%player%} = 100:')
[14:51:59 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (woda.sk, line 15: if {woda.%player%} = 50:')
[14:51:59 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (woda.sk, line 17: if {woda.%player%} = 25:')
[14:51:59 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (woda.sk, line 19: if {woda.%player%} = 10:')

Odnośnik do komentarza
https://skript.pl/temat/48668-zmienne/#findComment-303319
Udostępnij na innych stronach

  • 0
Gość Usunięty#35900
on drink of water bottle:
    if player's tool is named "woda":
        add 30 to {woda.%player%}
        if {woda.%player%} is equal or greater than 100:
        send "&cNie jesteś spargniony!" to player

every 30 seconds:
    loop all players:
        remove 3 from {woda.%loop-player%}
        if {woda.%loop-player%} is greater than 50:
            remove slowness from %loop-player%
            remove nausea from %loop-player%
            cure %loop-player% from poison
        {woda.%loop-player%} is equal or lower than 50
        send "&9Jesteś spragniony! Napij się wody!"
        apply slowness 2 to %loop-player%
        {woda.%loop-player%} is equal or lower than 25
        apply nausea 1 to %loop-player%
        {woda.%loop-player%} is equal or lower than 10
        poison the player
        

 

6 godzin temu, 02player napisał:

[14:51:59 ERROR]: Can't understand this condition/effect: remove 3 to {woda.%player%} (woda.sk, line 3: remove 3 to {woda.%player%}')
[14:51:59 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (woda.sk, line 4: if {woda.%player%} = 100:')
[14:51:59 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (woda.sk, line 15: if {woda.%player%} = 50:')
[14:51:59 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (woda.sk, line 17: if {woda.%player%} = 25:')
[14:51:59 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (woda.sk, line 19: if {woda.%player%} = 10:')

W evencie `every x time` nie ma zmiennej gracza.

Edytowane przez Mushkrem
błąd, lol teraz zauważyłem :D
Odnośnik do komentarza
https://skript.pl/temat/48668-zmienne/#findComment-303320
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ę...