이해도 | 입문자 |
---|---|
게임버전 (JE) | 1.20.1 |
게임버전 (BE) | 관련없음 |
set {_sword} to type of slot 19 of current inventory of player
@ if 1st line of lore of {_sword} is not set:
@@ remove 1 of paper with custom model data 105 named "&6강화석" from current inventory of player
@@ delete slot 19 of current inventory of player
@@ set slot 19 of current inventory of player to {_sword} with lore "&b&l +1강" and "&a공격력 +1"
@@ send "&a강화에 성공하였습니다" to player
@ if 1st line of lore of {_sword} is "&b&l +1강":
@@ set {_rkdghk} to "%slot 25 of current inventory of player%"
@@ if {_rkdghk} is bigger than 1:
@@@ if chance of 95%:
@@@ remove 2 of paper with custom model data 105 named "&6강화석" from current inventory of player
@@@ delete slot 19 of current inventory of player
@@@ set slot 19 of current inventory of player to {_sword} with lore "&b&l +2강" and "&a공격력 +2"
@@@ send "&a강화에 성공하였습니다" to player
@@ else:
@@@ remove 2 of paper with custom model data 105 named "&6강화석" from current inventory of player
@@@ send "&c강화에 실패하였습니다" to player
@ else:
@@ send "&c강화석이 부족합니다" to player
25번칸에 강화석을 올려 진행하는 강화 스크립트인데
set {_rkdghk} to "%slot 25 of current inventory of player%"
if {_rkdghk} is bigger than 1:
이 구문에서 진행이 안됩니다
send "%{_rkdghk}%" to player 를 넣어서 확인 해보면
이런식으로 뜨는데 25번칸에 아이템이 2개 이상 들어 있을 경우 작동하는 구문을 어떻게 표현해야 할까요..
강화창은 이런식으로 설정 되어있습니다
슈퍼레몬
2024.03.09이거 사용해보세요