개인 자료란 (JE)

  서버 커뮤니티

Profile dyaud 대표칭호 없음
Profile

질문하기 스크립트

스크립트 스코어보드 질문

2023.10.01 조회 수 48 추천 수 0
이해도 초보자 
게임버전 (JE) 1.19 
게임버전 (BE) 관련없음 
스크립트 버전 최신버전 
스크립트 애드온 skRayFall, Skript 

every 1 seconds:

    loop all players:

        if {스코어보드.%loop-player%} is true:

            wipe loop-player's sidebar

            set name of sidebar of loop-player to "미니게임서버"

            set score "닉네임 : %loop-player%" in sidebar of loop-player to 6

            set score "접속자 수 : %number of all players%/20" in sidebar of loop-player to 5

            set score "관전 플레이어" in sidebar of loop-player to 4

            set score "준비된 플레이어" in sidebar of loop-player to 3

            set score "플레이어" in sidebar of loop-player to 2

            set score "승리 횟수" in sidebar of loop-player to 1


command /스코어보드 [<string>]:

    trigger:

        if arg 1 is "켜기":

            set {스코어보드.%player%} to true

        if arg 1 is "끄기":

            set {스코어보드.%player%} to false

            wipe player's sidebar



스크립트 코드를 이렇게 짜봤는데


질문 1 : 닉네임 : ~~~  이렇게 나오는데 

닉네임 : 

-~~~~~~

이렇게 한칸 들여쓰기 어떻게 하나요??


질문 2 : 저기 만약 스코어보드 "players" 마크에 만들었으면 그 안에 있는 플레이어를 저기 스크립트 플레이어 안에 넣고 싶은데 어떡해 해야하나요?


질문 3 : 마크 내에서 만든 스코어 보드 "승리 횟수"만들어 둔게 있는데 그 안에 값을 저기 스코어 보드에 있는 값에 어떡해 넣나요?


질문이 많은데... 답변해주시며 감사하겠습니다




2개의 댓글

트잼
2023.10.07

1.

그냥 하나 더 만들어주시면 됩니다.

set score "닉네임 : %loop-player%" in sidebar of loop-player to 7

set score "%loop-player%" in sidebar of loop-player to 6

2.

뭠말 인지 모르겠어요...

3.

저장한 변수를 출력해주시면 돱니다.

Ex. 만약 변수 형태를 {승리횟수.player} 으로 저장을 했다면

set score "승리 횟수 : %{승리횟수.%loop-player%}%" in sidebar of loop-player to 1

dyaud
2023.10.13
@트잼

2. 현재 접속중인 플레이어 리스트 넣고 싶은데 어떻게 하나요?

 

뉴스 및 창작물
/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견

학교가기싫다

2024-05-08

0

/files/thumbnails/384/778/003/262x150.crop.jpg?20240507003327

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1

/files/thumbnails/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240428135129

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0