이해도 | 초보자(스크립트 구성요소나 기본문법은 알아요) |
---|---|
게임버전 (JE) | 1.12.2 |
게임버전 (BE) | 관련없음 |
스크립트 버전 | 2.5.3 |
스크립트 애드온 | 글에 파일 있음 |
every 1 tick:
loop all players:
if {스코어보드.%loop-player%} is true:
wipe loop-player's sidebar
set name of sidebar of loop-player to "123"
set score "접속자 수 : %number of all players%" in sidebar of loop-player to 10
set score " %loop-player's name% " in sidebar of loop-player to 9
set score "현재 시각 : %now%" in sidebar of loop-player to 8
set score "지갑 : %loop-player's Balance%" 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 "123" in sidebar of loop-player to 1
On load:
set {스코어보드.%player%} to true
on item damage:
cancel event
이 구문에서 항상 마지막으로 접속한 사람의 정보로 뜹니다. 어떻게 고치나요?
HAN1110
2022.01.13variables:
{스코어보드.%player%} = true
every 1 tick:
loop all players:
if {스코어보드.%loop-player%} is true:
wipe loop-player's sidebar
set name of sidebar of loop-player to "123"
set score "접속자 수 : %number of all players%" in sidebar of loop-player to 10
set score " %loop-player's name% " in sidebar of loop-player to 9
set score "현재 시각 : %now%" in sidebar of loop-player to 8
set score "지갑 : %loop-player's Balance%" 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 "123" in sidebar of loop-player to 1
한양123
2022.01.14이래도 마지막에 접속한 플레이어로 뜨네요..