#on armor change

1 messages · Page 1 of 1 (latest)

nocturne dome
#

초보입니당..

#

Paper 1.20.1이고 skript2.12.1이에용

brisk otter
#

on armor change는 있습니다

nocturne dome
#

그럼 armor change에서 입은 갑옷이랑 벗은갑옷은 어떻게 써요? event-item이 입은건가

nocturne dome
#

on armor change:
if {회피율::%player%} is not set:
set {회피율::%player%} to 0
if new armor is in {@회피셋1}:
add {@회피율1} to {회피율::%player%}
if new armor is in {@회피셋2}:
add {@회피율2} to {회피율::%player%}
if new armor is in {@회피셋3}:
add {@회피율3} to {회피율::%player%}
if new armor is in {@회피셋4}:
add {@회피율4} to {회피율::%player%}

if old armor is in {@회피셋1}:
    subtract {@회피율1} from {회피율::%player%}
if old armor is in {@회피셋2}:
    subtract {@회피율2} from {회피율::%player%}
if old armor is in {@회피셋3}:
    subtract {@회피율3} from {회피율::%player%}
if old armor is in {@회피셋4}:
    subtract {@회피율4} from {회피율::%player%}

지피티 한테 물어봤는데 old armor, new armor 라고 해서 이렇게했는데 왜 오류가 날까여

#

on armor change

tiny vortex
#

음... 왜 저렇게하지. 그냥 갑옷이 바뀔때마다 set으로 한번에 수치 결정하면 되는거 아닌가

brisk otter
#

음 저 구문이 되는지 모르겠지만 전 wait 2 tick으로 기달리고 슬롯에서 가져오긴 합니다

nocturne dome
#

오잉

#

둘다 이해하지 못했어요..

nocturne dome
slim nexus
nocturne dome
#

아하

#

역시 지피티는 믿으면 안되군여..

#

반만 맞추네요 ㅋㅋㅋ

#

감사합니당

slim nexus
#

Skript 관련 지식이 모자란 것 같던데

#

공식 문서에서 찾아달라고 하면 더 정확할겁니다