게임버전 (JE) | 1.17.1 |
---|---|
게임버전 (BE) | 관련없음 |
스크립트 버전 | 2.6 |
command /레벨초기화:
trigger:
if player is op:
set {레벨::%uuid of player%} to 1
set {경험치::%uuid of player%} to 0
set {최대경험치::%uuid of player%} to 30
set {100레벨::%uuid of player%} to true
set {150레벨::%uuid of player%} to true
set {200레벨::%uuid of player%} to true
set {200레벨::%uuid of player%} to true
set {200레벨::%uuid of player%} to true
message "&e레벨, 겸험치, 최대경험치를 초기화 하였습니니다."
every 1 tick:
loop all players:
if {경험치::%uuid of loop-player%} >= {최대경험치::%uuid of loop-player%}:
set {경험치::%uuid of loop-player%} to ({경험치::%uuid of loop-player%} - {최대경험치::%uuid of loop-player%})
set {최대경험치::%uuid of loop-player%} to ({최대경험치::%uuid of loop-player%} * 1.04)
set {최대경험치::%uuid of loop-player%} to round({최대경험치::%uuid of loop-player%})
add 1 to {레벨::%uuid of loop-player%}
message " %{레벨}% &e%{레벨::%uuid of loop-player%}%&e레벨을 달성하였습니다" to loop-player
every 1 tick:
loop all players:
if {레벨::%uuid of loop-player%} >= 100:
if {100레벨::%uuid of loop-player%} is true:
broadcast "&e==============================%nl% %nl%&e(&a축&e) &6%loop-player%&6님이 100레벨을 달성하였습니다. &e(&a축&e)%nl% %nl%&e=============================="
set {100레벨::%uuid of loop-player%} to false
if {레벨::%uuid of loop-player%} >= 150:
if {150레벨::%uuid of loop-player%} is true:
broadcast "&e==============================%nl% %nl%&e(&a축&e) &6%loop-player%&6님이 150레벨을 달성하였습니다. &e(&a축&e)%nl% %nl%&e=============================="
set {150레벨::%uuid of loop-player%} to "false"
if {레벨::%uuid of loop-player%} >= 200:
if {200레벨::%uuid of loop-player%} is true:
broadcast "&e==============================%nl% %nl%&e(&a축&e) &6%loop-player%&6님이 200레벨을 달성하였습니다. &e(&a축&e)%nl% %nl%&e=============================="
set {200레벨::%uuid of loop-player%} to false
if {레벨::%uuid of loop-player%} >= 250:
if {250레벨::%uuid of loop-player%} is true:
broadcast "&e==============================%nl% %nl%&e(&a축&e) &6%loop-player%&6님이 250레벨을 달성하였습니다. &e(&a축&e)%nl% %nl%&e=============================="
set {250레벨::%uuid of loop-player%} to false
if {레벨::%uuid of loop-player%} >= 300:
if {300레벨::%uuid of loop-player%} is "true":
broadcast "&e==============================%nl% %nl%&e(&a축&e) &6%loop-player%&6님이 300레벨을 달성하였습니다. &e(&a축&e)%nl% %nl%&e=============================="
set {300레벨::%uuid of loop-player%} to false
command /레벨설정 [<integer>]:
trigger:
if player is op:
set {레벨::%uuid of player%} to arg-1
command /경험치설정 [<integer>]:
trigger:
if player is op:
set {경험치::%uuid of player%} to arg-1
command /경험치받기 [<integer>]:
trigger:
if player is op:
add arg-1 to {경험치::%uuid of player%}
command /최대경험치설정 [<integer>]:
trigger:
if player is op:
set {최대경험치::%uuid of player%} to arg-1
제가 만든 스크립트 인데, 200레벨 달성까지는 나오는데 250레벨 달성부터 안 나와요ㅠㅠㅠ 알려 주세요ㅠㅠㅠ
qsef1256
2022.01.27150 레벨 설정 하는 구문에 "false" 라고 문자열로 적으셨네요
false 랑 "false" 는 달라요. 첫번째는 yes no 이고 두번째는 말 그대로 문자열 false 에요.