Skocz do zawartości
  • 0

Głosowanie na pogodę


Pytanie

Siemka, potrzebuje skryptu na głosowanie na pogodę. Gdy będzie deszcz wyświetla się komunikat np. "Jest deszcz. Jeśli chcesz aby pogoda była bezchmurna zagłosuj komendą /slonce a jeśli dalej chcesz deszcz to komenda /deszcz!"

ogólnie to coś tego typu tylko że inne głosowanie:

at 19:00 in "world":
	set {vote::status}, {vote::dzien} and {vote::noc} to 0

	broadcast "&8[&aEast&bCore&8] &aNadchodzi noc! Jeśli chcesz dzień, zagłosuj komendą /dzien a żeby dalej była noc to /noc!"
	wait 15 seconds

	if ({vote::dzien} / {vote::noc}) >= 1:
		set time to 8:00
		broadcast "&8[&aEast&bCore&8] &bWygrał Dzień!"
	else:
		broadcast "&8[&aEast&bCore&8] &bWygrała Noc!."

	delete {vote::*}

command /dzien:
    trigger:
        if {vote::status} is set:
            if {vote::gracz::%player%} is not set:
                set {vote::gracz::%player%} to true
                add 1 to {vote::dzien}
                send "&8[&aEast&bCore&8] &aZagłosowałes na Dzień."
                stop
            send "&8[&aEast&bCore&8] &cJuż zagłosowałeś!"
            stop
        send "&8[&aEast&bCore&8] &cObecnie nie ma głosowania!"

command /noc:
    trigger:
        if {vote::status} is set:
            if {vote::gracz::%player%} is not set:
                set {vote::gracz::%player%} to true
                add 1 to {vote::noc}
                send "&8[&aEast&bCore&8] &aZagłosowałeś na Noc"
                stop
            send "&8[&aEast&bCore&8] &cJuż zagłosowałeś!"
            stop
        send "&8[&aEast&bCore&8] &cObecnie nie ma głosowania!"

 

 

Odnośnik do komentarza
https://skript.pl/temat/38255-g%C5%82osowanie-na-pogod%C4%99/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on weather change to rain:
	event world is "world":
		set {weather::status}, {weather::dzien} and {weather::noc} to 0

		broadcast "&8[&aEast&bCore&8] &adeszcz pada"
		wait 15 seconds

		if ({weather::dzien} / {weather::noc}) >= 1:
			set weather to sun
			broadcast "&8[&aEast&bCore&8] &bWygrał Dzień!"
		else:
			broadcast "&8[&aEast&bCore&8] &bWygrała Noc!."

		delete {weather::*}

command /slonce:
    trigger:
        if {weather::status} is set:
            if {weather::gracz::%player%} is not set:
                set {weather::gracz::%player%} to true
                add 1 to {weather::dzien}
                send "&8[&aEast&bCore&8] &aZagłosowałes na Dzień."
                stop
            send "&8[&aEast&bCore&8] &cJuż zagłosowałeś!"
            stop
        send "&8[&aEast&bCore&8] &cObecnie nie ma głosowania!"

command /deszcz:
    trigger:
        if {weather::status} is set:
            if {weather::gracz::%player%} is not set:
                set {weather::gracz::%player%} to true
                add 1 to {weather::noc}
                send "&8[&aEast&bCore&8] &aZagłosowałeś na Noc"
                stop
            send "&8[&aEast&bCore&8] &cJuż zagłosowałeś!"
            stop
        send "&8[&aEast&bCore&8] &cObecnie nie ma głosowania!"

 

Odnośnik do komentarza
https://skript.pl/temat/38255-g%C5%82osowanie-na-pogod%C4%99/#findComment-241860
Udostępnij na innych stronach

  • 0
14 godzin temu, PanMaruda napisał:

on weather change to rain:
	event world is "world":
		set {weather::status}, {weather::dzien} and {weather::noc} to 0

		broadcast "&8[&aEast&bCore&8] &adeszcz pada"
		wait 15 seconds

		if ({weather::dzien} / {weather::noc}) >= 1:
			set weather to sun
			broadcast "&8[&aEast&bCore&8] &bWygrał Dzień!"
		else:
			broadcast "&8[&aEast&bCore&8] &bWygrała Noc!."

		delete {weather::*}

command /slonce:
    trigger:
        if {weather::status} is set:
            if {weather::gracz::%player%} is not set:
                set {weather::gracz::%player%} to true
                add 1 to {weather::dzien}
                send "&8[&aEast&bCore&8] &aZagłosowałes na Dzień."
                stop
            send "&8[&aEast&bCore&8] &cJuż zagłosowałeś!"
            stop
        send "&8[&aEast&bCore&8] &cObecnie nie ma głosowania!"

command /deszcz:
    trigger:
        if {weather::status} is set:
            if {weather::gracz::%player%} is not set:
                set {weather::gracz::%player%} to true
                add 1 to {weather::noc}
                send "&8[&aEast&bCore&8] &aZagłosowałeś na Noc"
                stop
            send "&8[&aEast&bCore&8] &cJuż zagłosowałeś!"
            stop
        send "&8[&aEast&bCore&8] &cObecnie nie ma głosowania!"

 

https://imgur.com/a/JypeB34  

jakiś bład ;/

Odnośnik do komentarza
https://skript.pl/temat/38255-g%C5%82osowanie-na-pogod%C4%99/#findComment-241922
Udostępnij na innych stronach

  • 0
on weather change to rain:
	"%event-world%" is "world":
		set {weather::status}, {weather::dzien} and {weather::noc} to 0

		broadcast "&8[&aEast&bCore&8] &adeszcz pada"
		wait 15 seconds

		if ({weather::dzien} / {weather::noc}) >= 1:
			set weather to sun
			broadcast "&8[&aEast&bCore&8] &bWygrał Dzień!"
		else:
			broadcast "&8[&aEast&bCore&8] &bWygrała Noc!."

		delete {weather::*}

command /slonce:
    trigger:
        if {weather::status} is set:
            if {weather::gracz::%player%} is not set:
                set {weather::gracz::%player%} to true
                add 1 to {weather::dzien}
                send "&8[&aEast&bCore&8] &aZagłosowałes na Dzień."
                stop
            send "&8[&aEast&bCore&8] &cJuż zagłosowałeś!"
            stop
        send "&8[&aEast&bCore&8] &cObecnie nie ma głosowania!"

command /deszcz:
    trigger:
        if {weather::status} is set:
            if {weather::gracz::%player%} is not set:
                set {weather::gracz::%player%} to true
                add 1 to {weather::noc}
                send "&8[&aEast&bCore&8] &aZagłosowałeś na Noc"
                stop
            send "&8[&aEast&bCore&8] &cJuż zagłosowałeś!"
            stop
        send "&8[&aEast&bCore&8] &cObecnie nie ma głosowania!"

 

Odnośnik do komentarza
https://skript.pl/temat/38255-g%C5%82osowanie-na-pogod%C4%99/#findComment-241924
Udostępnij na innych stronach

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ą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...