이해도 | 입문자 |
---|---|
게임버전 (JE) | 1.20.1 |
게임버전 (BE) | 관련없음 |
스크립트 버전 | Skript-2.9.0.jar |
스크립트 애드온 | Sharpsk-1.6.13/SkBee-3.5.7/SkQuery-4.1.10/skRayFall-1.9.28 |
* 도감 스크립트 질문
1. 도감 설정시 1,2로 커맨드를 나누지 않고, 다음페이지로 넘어갈수있게 구현이 가능한지
2. 도감 등록시 도감에 아이템이 사라지는데, 사라지지 않고 잔상을 남길수있는지
궁금합니당.
command /도감설정:
trigger:
set {_gui} to chest inventory with 6 rows named "도감설정"
loop 54 times:
set slot (loop-num - 1) of {_gui} to {도감::%loop-num%}
open {_gui} to player
on inventory close:
if event-inventory's name is "도감설정":
delete {도감::*}
loop 54 times:
if slot (loop-num - 1) of event-inventory is not air:
set {도감::%loop-num%} to slot (loop-num - 1) of event-inventory
on join:
# 플레이어의 UUID로 저장된 도감 데이터가 없으면 초기화
if {도감::%player's uuid%::*} is not set:
loop 54 times:
set {도감::%player's uuid%::%loop-number%} to {도감::%loop-number%}
set {도감::%player's uuid%::55} to air
command /도감:
trigger:
set {_gui} to chest inventory with 6 rows named "도감"
loop 54 times:
set slot (loop-num - 1) of {_gui} to {도감::%player's uuid%::%loop-num%}
open {_gui} to player
on inventory click:
if event-inventory's name is "도감":
cancel event
if event-inventory is player's inventory:
stop
if event-item is air:
stop
if click type is not left mouse button:
stop
if player has event-item:
remove event-item from player's inventory
subtract event-slot from {도감::%player's uuid%::*}
set {_gui} to chest inventory with 6 rows named "도감"
loop 54 times:
set slot (loop-num - 1) of {_gui} to {도감::%player's uuid%::%loop-num%}
open {_gui} to player
give 1 of diamond to player
댓글이 없습니다.
새로운 댓글을 등록해 주세요!