개인 자료란 (JE)

  서버 커뮤니티

Profile 둥둥키 대표칭호 없음
Profile

질문하기 스크립트

combat 스크립트 오류

2024.07.17 조회 수 33 추천 수 0
이해도 입문자 
게임버전 (JE) 관련없음 
게임버전 (BE) 관련없음 

on damage of player by player:

    set {pvp.%uuid of victim%} to 15

    set {pvp.%uuid of attacker%} to 15

        

every 1 seconds:

    loop all players:

        if {pvp.%uuid of loop-player%} is set:

            if {pvp.%uuid of loop-player%} <= 0:

                delete {pvp.%uuid of loop-player%}

                message "&6PVP가 종료되었습니다." to loop-player

            else:    

                subtract 1 from {pvp.%uuid of loop-player%}

                send action bar "&6PVP... &e[&f%{pvp.%uuid of loop-player%}%&e]" to loop-player

    

on command:

    wait 1 tick

    if {pvp.%uuid of player%} is set:

        message "&cPVP중입니다."

        cancel event

        


on quit:        

    if {pvp.%uuid of player%} is set:

        kill player



여기서 명령어 쳤을때 cancel event가 자꾸 오류가 나는데 왜그럴까요?




Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
사진이 없습니다.

모드

아이리스 쉐이더

gyeol12

2024-09-07

0

/files/thumbnails/382/873/003/262x150.crop.jpg?20240903125347

레드스톤

[노트블럭커버] 숙청행진 - 밀그램

노트블럭전문가

2024-09-03

0

/files/thumbnails/069/864/003/262x150.crop.jpg?20240819102737

레드스톤

[노트블럭커버] 만찬가 - tuki

노트블럭전문가

2024-08-19

1

/files/thumbnails/647/816/003/262x150.crop.jpg?20240619112336

건축

숭례문(프리퀄) 4

KHC

2024-06-19

0

/files/thumbnails/932/812/003/262x150.crop.jpg?20240622110502

업데이트

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

학교가기싫다

2024-06-14

1