개인 자료란 (JE)

  서버 커뮤니티

Profile 편독 정품인증자

Pyeondog45 446b185891944579b0ab107d100ad048

Profile

질문하기 스크립트

스크립트 1주차인데 게임 스크립트 만들다가 막혀서....

2022.01.08 조회 수 43 추천 수 0
이해도 입문자(아무것도 몰라요) 
게임버전 (JE) 1.17.1 
게임버전 (BE) 1.17.x 
스크립트 버전 2.6 

command /게임 [<text>] [<text>]:
    trigger:
        if arg 1 is not set:
            send "/게임 입장 : 게임에 입장합니다"
            send "/게임 퇴장 : 게임에 퇴장합니다"
        if arg 1 is "입장":
            if arg 2 is "1":
                if {play::%player%} is set:
                    send "이미 게임에 입장하셨습니다"
                    stop
                else:
                    set {play::%player%} to true
                    add player to {game::players::1}
                    teleport player to location at 2018.5, 8, 28.5 in world "world"
                    send "1팀 게임에 입장하셨습니다" to {game::players::1}
                    stop
            if arg 2 is "2":
                if {play::%player%} is set:
                    send "이미 게임에 입장하셨습니다"
                    stop
                set {play::%player%} to true
                add player to {game::player::2}
                teleport player to location at 2056.5, 8, -24.5 in world "world"
                send "2팀 게임에 입장하셨습니다" to {game::player::2}
                stop
        if arg 1 is "퇴장":
            if {play::%player%} is not set:
                send "게임에 참여중이 아닙니다"
                stop
            delete {play::%player%}
            remove player from {game::players::1} and {game::players::2} and {game::players::3} and {game::players::4} and {game::players::5}
            send "게임에서 퇴장하셨습니다"
            execute player command "/spawn"
            stop
        if arg 1 is "시작":
            teleport {game::players::1} to location at 2025.5, 6, 28.5 in world "world"
            teleport {game::players::2} to location at 2058.5, 6, -15.5 in world "world"
            
command /확인:
    trigger:
        send "%{game::player::1}% %{game::player::2}%"
    
command /삭제:
    trigger:
        remove player from {game::player::*}
        send "삭제가 완료되었습니다"

스크립트 배운지 1주 좀 넘었는데 게임 참가 스크립트 만들다가

add player to {game::players::1}이 적용이 안되는지 확인에서도 확인이 안되고, "1팀 게임에 입장하셨습니다" 라는 문구도 안뜨네요...

왜 그런지 알려주실 수 있으실까요..?




3개의 댓글

거너아나
2022.01.08

플레이어를 팀 1에 더할거면

add player to {game::player::1::*}로 하셔야 합니다

편독
2022.01.08
@거너아나

와 진짜 감사합니당

뉴스 및 창작물
/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

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

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝 1

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1

/files/thumbnails/932/765/003/262x150.crop.jpg?20240410124459

레드스톤

마인크래프트 노트블록으로 만든 『 밤양갱 (Bam Yang Gang) 』

노트블럭전문가

2024-04-10

0

/files/thumbnails/403/765/003/262x150.crop.jpg?20240409190538

레드스톤

마인크래프트 노트블록으로 만든 『 밤양갱 (Bam Yang Gang) 』

Sonttukk

2024-04-09

4