Skocz do zawartości
  • 0

Dodanie zmiennych do scoreboardu


Pytanie

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
	ref: 2 second
	name: Elo 
on join:
	while player is online:
		wipe player's sidebar
		set name of sidebar of player to "{@name}"
		set score "Zmienna: %{zmienna}%" in sidebar of player to 1
		wait {@ref}

 

Odnośnik do komentarza
https://skript.pl/temat/36722-dodanie-zmiennych-do-scoreboardu/#findComment-234302
Udostępnij na innych stronach

  • 0
W dniu 21.01.2020 o 16:43, xAxee napisał:

options:
	ref: 2 second
	name: Elo 
on join:
	while player is online:
		wipe player's sidebar
		set name of sidebar of player to "{@name}"
		set score "Zmienna: %{zmienna}%" in sidebar of player to 1
		wait {@ref}

 

Aroxiq:
  data:
    name: Marek
    surname: Jazdzewski
    day: '10'
    month: Grudzien
    year: '1993'
    city: Gdansk
    gender: Mezczyzna
  statistics:
    strength: 127.0
    max-strength: 900.0
    thirst: 77.0
    max-thirst: 900.0
    library: 1.8000000000000007
  bank:
    account: true
    balance: 170006.0
    credit: 0
  account: true
  diseases:
    poisoning: false
    broken-leg: false
    broken-arm: false
  jobs:
    job: Drwal
    payment: 2.193518608478836
    statistics:
      drwal: 642.0
      gornik: 0
      zbieracz-kory: 0
      kopacz: 0
      ogrodnik: 0

 

tak to wygląda i chciałem do scoreboardu wstawić thirst/max-thirst, jak to będzie w tym przypadku

Edytowane przez LeQuLa
Nieaktywny

Wstawiam w code.

Odnośnik do komentarza
https://skript.pl/temat/36722-dodanie-zmiennych-do-scoreboardu/#findComment-234310
Udostępnij na innych stronach

  • 0
1 minutę temu, fabeq napisał:

Aroxiq:
  data:
    name: Marek
    surname: Jazdzewski
    day: '10'
    month: Grudzien
    year: '1993'
    city: Gdansk
    gender: Mezczyzna
  statistics:
    strength: 127.0
    max-strength: 900.0
    thirst: 77.0
    max-thirst: 900.0
    library: 1.8000000000000007
  bank:
    account: true
    balance: 170006.0
    credit: 0
  account: true
  diseases:
    poisoning: false
    broken-leg: false
    broken-arm: false
  jobs:
    job: Drwal
    payment: 2.193518608478836
    statistics:
      drwal: 642.0
      gornik: 0
      zbieracz-kory: 0
      kopacz: 0
      ogrodnik: 0

 

tak to wygląda i chciałem do scoreboardu wstawić thirst/max-thirst, jak to będzie w tym przypadku

set {_thirst} to yaml value "%player%.statistics.thirst" from file "twoj plik"

np

Odnośnik do komentarza
https://skript.pl/temat/36722-dodanie-zmiennych-do-scoreboardu/#findComment-234311
Udostępnij na innych stronach

  • 0
W dniu 21.01.2020 o 16:56, xAxee napisał:

set {_thirst} to yaml value "%player%.statistics.thirst" from file "twoj plik"

np

o, dziekuje <3

 

W dniu 21.01.2020 o 16:56, xAxee napisał:

set {_thirst} to yaml value "%player%.statistics.thirst" from file "twoj plik"

np

#  ____  ____  ____  ____  _____ ____  ____  ____  ____  ____
# / ___\/   _\/  _ \/  __\/  __//  _ \/  _ \/  _ \/  __\/  _ \
# |    \|  /  | / \||  \/||  \  | | //| / \|| / \||  \/|| | \|
# \___ ||  \_ | \_/||    /|  /_ | |_\\| \_/|| |-|||    /| |_/|
# \____/\____/\____/\_/\_\\____\\____/\____/\_/ \|\_/\_\\____/
#
# Scoreboard-r by Rien Bijl
# rep: github : RienBijl/Scoreboard-revision
# v: 1.4.2 RELEASE

settings:
  # Safe-mode determines if scoreboard is synchronized with the server (true) or asynchronized (false)
  # Synchronized (safe-mode: true) is more stable and robust
  # Asynchronized (safe-mode: false) is more faster but can cause strange problems in some cases
  safe-mode: false
  # If the server version is 1.13 or higher, enable longline.
  # true: you can use 128 characters per line (1.13 and up)
  # false: you can use 32 characters per line (1.12 and down)
  longline: false

# In what worlds should we disable scoreboard?
disabled-worlds:
  - 'non_existant_world'

board:
  title:
    interval: 3
    liner:
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLI &f<'
      - '&f> &b&lREAL &f<'
      - '&f> &b&lRE &f<'
      - '&f> &f<'
      - '&f> &b&lRE &f<'
      - '&f> &b&lREAL &f<'
      - '&f> &b&lREAL&f&lLI &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
  rows:
    1:
      interval: 10
      liner:
      - '&b&M------------------------'
      - '&3&M------------------------'
    2:
      liner:
      - '&7» &bWoda:'
    3:
      liner:
      - '&7» &bSila:'
    4:
      liner:
      - '&7» &bPraca:'
    48:
      liner:
      - '&7» &bIP: serwer.pl'
    50:
      interval: 5
      liner:
      - '&b&M------------------------'
      - '&3&M------------------------'
    45:
      liner:
      - ''

To jest scoreboard, jak mam to dodać tutaj? :/

 

W dniu 21.01.2020 o 17:18, fabeq napisał:

#  ____  ____  ____  ____  _____ ____  ____  ____  ____  ____
# / ___\/   _\/  _ \/  __\/  __//  _ \/  _ \/  _ \/  __\/  _ \
# |    \|  /  | / \||  \/||  \  | | //| / \|| / \||  \/|| | \|
# \___ ||  \_ | \_/||    /|  /_ | |_\\| \_/|| |-|||    /| |_/|
# \____/\____/\____/\_/\_\\____\\____/\____/\_/ \|\_/\_\\____/
#
# Scoreboard-r by Rien Bijl
# rep: github : RienBijl/Scoreboard-revision
# v: 1.4.2 RELEASE

settings:
  # Safe-mode determines if scoreboard is synchronized with the server (true) or asynchronized (false)
  # Synchronized (safe-mode: true) is more stable and robust
  # Asynchronized (safe-mode: false) is more faster but can cause strange problems in some cases
  safe-mode: false
  # If the server version is 1.13 or higher, enable longline.
  # true: you can use 128 characters per line (1.13 and up)
  # false: you can use 32 characters per line (1.12 and down)
  longline: false

# In what worlds should we disable scoreboard?
disabled-worlds:
  - 'non_existant_world'

board:
  title:
    interval: 3
    liner:
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLI &f<'
      - '&f> &b&lREAL &f<'
      - '&f> &b&lRE &f<'
      - '&f> &f<'
      - '&f> &b&lRE &f<'
      - '&f> &b&lREAL &f<'
      - '&f> &b&lREAL&f&lLI &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
      - '&f> &b&lREAL&f&lLIFE &f<'
  rows:
    1:
      interval: 10
      liner:
      - '&b&M------------------------'
      - '&3&M------------------------'
    2:
      liner:
      - '&7» &bWoda:'
    3:
      liner:
      - '&7» &bSila:'
    4:
      liner:
      - '&7» &bPraca:'
    48:
      liner:
      - '&7» &bIP: serwer.pl'
    50:
      interval: 5
      liner:
      - '&b&M------------------------'
      - '&3&M------------------------'
    45:
      liner:
      - ''

To jest scoreboard, jak mam to dodać tutaj? :/

wie ktoś może?

 

W dniu 21.01.2020 o 16:56, xAxee napisał:

set {_thirst} to yaml value "%player%.statistics.thirst" from file "twoj plik"

np

a jak nie łapiesz się z tym pluginem to może jakiś skrypt być napisał na scoreboard jak masz czas?

Edytowane przez LeQuLa
Nieaktywny

Wstawiam w code oraz łączę posty.

Odnośnik do komentarza
https://skript.pl/temat/36722-dodanie-zmiennych-do-scoreboardu/#findComment-234312
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ę...