이해도 | 초보자 |
---|---|
게임버전 (JE) | 1.20, 1.20.1 |
게임버전 (BE) | 1.20.x |
스크립트 버전 | 2.7.2 |
스크립트 애드온 | skRayFall, SkBee |
on place of a chest:
if name of player's tool is "&6&l랜덤박스":
cancel event
remove 1 of player's tool from player's tool
set {_count} to random integer between 1 and 4
if {_count} is 1 :
set {itemcount1} to size of {건축블럭1::*}
set {랜덤아이템1} to random integer between 1 and {itemcount1}
set {count1} to random integer between 1 and 64
give {건축블럭1::%{랜덤아이템1}%} parsed as item to player
if {_count} is 2 :
set {itemcount2} to size of {건축블럭2::*}
set {랜덤아이템2} to random integer between 1 and {itemcount2}
set {count2} to random integer between 1 and 64
give {건축블럭2::%{랜덤아이템2}%} parsed as item to player
if {_count} is 3 :
set {itemcount3} to size of {건축블럭3::*}
set {랜덤아이템3} to random integer between 1 and {itemcount3}
set {count3} to random integer between 1 and 64
give {건축블럭3::%{랜덤아이템3}%} parsed as item to player
else :
set {itemcount4} to size of {건축블럭4::*}
set {랜덤아이템4} to random integer between 1 and {itemcount4}
set {count4} to random integer between 1 and 64
give {건축블럭4::%{랜덤아이템4}%} parsed as item to player
라는 구문을 썻을때 아이템이 정상적으로 나오긴 하는데 혹시 나오는 아이템 수량을 count(1~4) 변수를 이용해서
줄수 있을까요?
라아아아밍
2023.12.16이렇게 하시면 될 거 같습니다
쿼카곰
2023.12.16give {count} of {건축블럭4::%{랜덤아이템4}%} to player 이라고 쓰면 오류가 나더라고요
라아아아밍
2023.12.16음... 제 생각에는
로 수정하시면 될 거 같은데 혹시 안 되시면 오류 메시지 보내주시면 다시 확인해보겠습니다