개인 자료란 (JE)

  서버 커뮤니티

Profile musun129 대표칭호 없음
Profile

이해도 초보자 
게임버전 (JE) 1.18.2 
게임버전 (BE) 관련없음 

마크 스크립트 플레이어를 죽일때마다 스코어보드에 죽인수를 늘리고 싶어요!

on join:

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


every 0.5 seconds:

    loop all players:

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

            wipe loop-player's sidebar

            set name of sidebar of loop-player to "&6상점&2야생&f서버"

            set score "이름:&b%loop-player%" in sidebar of loop-player to 4

            set score "돈:&e%{%uuid of loop-player%.돈}%원" in sidebar of loop-player to 3

            set score "죽인수:&6%{%uuid of loop-player%.죽임}%킬" in sidebar of loop-player to 2


on death:

    add 1 to {%attacker%.죽임}


이렇게 했는데 스코어보드에 죽인수 에는 none 이라고만 떠요....




2개의 댓글

라아아아밍
2023.12.25

지금 on death 이벤트에서는 {%attacker%.죽임}이고 루프에서는 {%uuid of loop-player%.죽임} 되어있는데 attacker는 출력해보시면 저는 Raaaaming 이 뜨구요. uuid of loop-player를 출력해보시면 예를 들어 저 같은 경우는 143e9b3a85b04bbeb1c84ee946d42a87 이런 식으로 뜨게 됩니다. 그러니까 같은 변수가 아니라 다른 변수로 취급을 해서 그렇게 되는 거 같습니다.

해결하는 방법은 {%attacker%.죽임} 변수를 {%uuid of attacker%.죽임}으로 고치시면 됩니다.

musun129
2023.12.25
@라아아아밍

드디어ㅠㅠ 감사합니다!!!!

뉴스 및 창작물
/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

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

1