_woosang__ 157ee238316a4456a4ef721e7217d571
이해도 | 초보자 |
---|---|
게임버전 (JE) | 1.20.1 |
게임버전 (BE) | 관련없음 |
스크립트 버전 | 2.6.3 |
on damage:
if attacker is player:
set {_lore::*} to uncolored lore of attacker's tool
loop {_lore::*}:
if loop-value contains "공격력:":
set {_at} to loop-value
replace all "공격력: " with " " in {_at}
set {_at} to {_at} parsed as number
else if loop-value contains "체력흡수:":
set {_athp} to loop-value
replace all "공격력: " with " " in {_athp}
set {_athp} to {_athp} parsed as number
else if loop-value contains "크리티컬:":
set {_cr} to loop-value
replace all "공격력: " with " " in {_cr}
set {_cr} to {_cr} parsed as number
if {_at} is set:
add {_at}/2 to damage
if {_athp} is set:
add {_athp}/2 to attacker's health
if {_cr} is set:
chance of {_cr}%:
set damage to damage*2
send "&e*크리티컬!*" to attacker
play sound "entity.experience_orb.pickup" with volume 0.5 to the attacker
본문에서 일부만 가져온건데 콘솔에서는 오류 없이 리로드 되는데, 여기서 '공격력', '체력흡수', '크리티컬'이 작동이 안됩니다 따로 에드온이 필요한지..?
댓글이 없습니다.
새로운 댓글을 등록해 주세요!