이해도 | 초보자 |
---|---|
게임버전 (JE) | 관련없음 |
게임버전 (BE) | 관련없음 |
스크립트 버전 | 2.9.1 |
스크립트 애드온 | skllett, skquery, skrayfall |
이게 강화 스크립트인데 감옷 설명에 데미지 -1 있으면 데미지를 받았을 때 감소 해야 되는데 데미지가 감소 되지 않습니다
데미지 감소 부분만 어떻게 해야하는지 알려주실 수 있나요?
on damage:
set {_tool} to attacker's tool's type
set {_tool} to "%{_tool}%"
replace all {server.delete_item::*} and " " with "" in {_tool}
if {_tool} is not "pickaxe":
set {_lore::*} to uncolored lore of attacker's tool
if attacker's tool is bow:
if {_lore::3} is set:
replace all "데미지 X " and " " with "" in {_lore::3}
set {_lore::3} to {_lore::3} parsed as number
set damage to damage * {_lore::3}
remove {%victim%.방어력} from damage
send "&c데미지 + %damage * 2%" to attacker
if {_lore::4} is set:
replace all "흡혈 X " and " " with "" in {_lore::4}
set {_lore::4} to {_lore::4} parsed as number
add damage * {_lore::4} to attacker's health
send "&d흡혈 + %damage * {_lore::4} * 2%" to attacker
else if {_lore::3} is set:
replace all "데미지 X " and " " with "" in {_lore::3}
set {_lore::3} to {_lore::3} parsed as number
set damage to damage * {_lore::3}
remove {%victim%.방어력} from damage
send "&c데미지 + %damage * 2%" to attacker
windy_wind
2024.08.29lore를 보여줘야지 알것 같네요
아니면 {lore::3} 값을 출력해서 보시는 것도 방법이고요.
promine
2024.08.30이거인가여?? 아 그리고 데미지 -를 방어력 +로 바꿨습니다.
every 1 second:
@loop all players:
@set {%loop-player%.방어력} to 0
@@set {%loop-player%.최대_체력} to 10
@@set {%loop-player%.이동_속도} to 0.25
@@set {_lore::*} to uncolored lore of loop-player's helmet
@@replace all "방어력 +" and " " with "" in {_lore::3}
@@set {_lore::3} to {_lore::3} parsed as number
@@add {_lore::3} to {%loop-player%.방어력}
@@if {_lore::4} is set:
@@@replace all "최대 체력 +" and " " with "" in {_lore::4}
@@@set {_lore::4} to {_lore::4} parsed as number
@@@add {_lore::4} to {%loop-player%.최대_체력}
@@set {_lore::*} to uncolored lore of loop-player's chestplate
@@replace all "방어력 +" and " " with "" in {_lore::3}
@@set {_lore::3} to {_lore::3} parsed as number
@@add {_lore::3} to {%loop-player%.방어력}
@@if {_lore::4} is set:
@@@replace all "최대 체력 +" and " " with "" in {_lore::4}
@@@set {_lore::4} to {_lore::4} parsed as number
@@@add {_lore::4} to {%loop-player%.최대_체력}
@@set {_lore::*} to uncolored lore of loop-player's leggings
@@replace all "방어력 +" and " " with "" in {_lore::3}
@@set {_lore::3} to {_lore::3} parsed as number
@@add {_lore::3} to {%loop-player%.방어력}
@@if {_lore::4} is set:
@@@replace all "최대 체력 +" and " " with "" in {_lore::4}
@@@set {_lore::4} to {_lore::4} parsed as number
@@@add {_lore::4} to {%loop-player%.최대_체력}
@@set {_lore::*} to uncolored lore of loop-player's boots
@@replace all "방어력 +" and " " with "" in {_lore::3}
@@set {_lore::3} to {_lore::3} parsed as number
@@add {_lore::3} to {%loop-player%.방어력}
@@if {_lore::4} is set:
@@@replace all "최대 체력 +" and " " with "" in {_lore::4}
@@@set {_lore::4} to {_lore::4} parsed as number
@@@add {_lore::4} to {%loop-player%.최대_체력}
@@if {_lore::5} is set:
@@@replace all "이동 속도 X" and " " with "" in {_lore::5}
@@@set {_lore::5} to {_lore::5} parsed as number
@@@set {%loop-player%.이동_속도} to {%loop-player%.이동_속도} * {_lore::5}
@@set {_lore::*} to uncolored lore of loop-player's tool
@@replace all "성급함" and " " with "" in {_lore::3}
@@set {_lore::3} to {_lore::3} parsed as integer
@@if {_lore::3} is set:
@@@apply potion of haste of tier {_lore::3} to loop-player for 20 tick
@@set loop-player's max health to {%loop-player%.최대_체력}
@@set the loop-player's walk speed to {%loop-player%.이동_속도}
windy_wind
2024.08.31제가 한 말은, 아이템의 로어(구문이나 사진)을 보여달라는 것이였고,
broadcast "%{_lore::3}%"으로 none값이 아니고 제대로 값이 저장된지 확인하라는 것입니당 :>