이해도 | 초보자 |
---|---|
게임버전 (JE) | 1.19.3 |
게임버전 (BE) | 1.19.x |
variables:
{%player%광부1} = 0
{%player%광부1문스톤} = 0
on rightclick on entity:
if entity's name is "<##E6E6FA>광부1":
if {%player%.광부1} is 0:
message"<##FFD700>광부1: <##E6E6FA>어서오시게 신입 광부인가?(1/3)"to player
set {%player%.광부1} to 1
play sound "entity_villger_trade" with volume 1 and pitch 1 at player for player
if {%player%.광부1} is 1:
wait 25 ticks
message "<##FFD700>광부1: <##E6E6FA>내 자네에게 부탁할게 하나 있네.(2/3)" to player
set {%player%.광부1} to 2
play sound "entity_villger_trade" with volume 1 and pitch 1 at player for player
if {%player%.광부1} is 2:
wait 25 ticks
message "<##FFD700>광부1: <##E6E6FA>5개의 다이아을 한번 캐오지 않겠소?내 보상은 섭섭치 않게 주지.(3/3)" to player
set {%player%.광부1} to 3
play sound "entity_villger_trade" with volume 1 and pitch 1 at player for player
wait 23 ticks
message "<##FFD700>퀘스트가 발주 되었습니다: <##ADFF2F>광부1의 부탁" to player
play sound "ENTITY_PLAYEER_LEVELUP" with volume 0.7 and pitch 1 at player for player
stop
if {%player%.광부1} si 3:
if {%player%.광부1다이아} >=5:
message "<##FFD700>광부1: <##E6E6FA>오 꽤 능력있는걸?다음에도 잘 부탁하네." to player
wait 20 ticks
add 50000 to {money::%uuid of player%}
removes 5 of diamond from player's inventory
message "<##90EE90>+5만원" to player
play sound "ENTITY_PLAYEER_LEVELUP" with volume 0.7 and pitch 1 at player for player
else:
if{%player%.광부1} is 3:
if{%player%.광부1다이아} < 5:
message "<##FFD700>광부1: <##E6E6FA>자네 내 말을 제대로 안들었군 문스톤 5개일세" to player
play sound "entity_villger_no" with volume 0.6 and oitch 1 at player for player
else:
if{%player%.광부1} is 4:
message "<##E6E6FA>당신은 이미 광부1의 부탁을 해결했습니다." to player
play sound "entity_villger_trade" with volume 1 and pitch 1 at player for player
on break of diamond ore
퀘스트 스크립트 하는 중인데 강의로 보던 영상이 삭제되어서맨 밑에 부분을완성하지 못한것 같습니다.
이 퀘스트는 다이아몬드 5개를 얻어 광부에게 다시 말을 건 뒤 하는 퀘스트인데, 혹시 영상을 다보거나 뒷부분을 아시는 분이 있으면 답 남겨주실수 있나요?
환타비
2023.03.11구문을 봤는데 on break of diamond ore 여기 밑에다가
on break of diamond ore:
@add 1 to {%player%광부1다이아}
이런식으로 하면 작동이 잘 되지 않을까용?
lpooql1515
2023.06.28if {%player%.광부1} si 3:
여기 잘못 됬습니다
if {%player%.광부1} is 3:
이렇게 바꿔보세요