개인 자료란 (JE)

  서버 커뮤니티

Profile 정글딸기 대표칭호 없음
Profile

질문하기 스크립트

특정 구역에서 브금이 나오게 하고 싶습니다..

2024.01.31 조회 수 26 추천 수 0
이해도 입문자 
게임버전 (JE) 1.16.5 
게임버전 (BE) 관련없음 

on region enter:

    if {sound::%player%::region} is not set:

        set {sound::%player%::region} to "map"

        play sound "custom.mapbgm" with volume 5 and pitch 1 at player for player

    else if {sound::%player%::region} is not "map":

        stop sound "custom.worldbgm" for player

        play sound "custom.mapbgm" with volume 5 and pitch 1 at player for player

        set {sound::%player%::region} to "map"


on region exit:

    if {sound::%player%::region} is "map":

        stop sound "custom.mapbgm" for player

        delete {sound::%player%::region}
이 구문에 있는 것과

on region enter:

    if {sound::%player%::region} is not set:

        set {sound::%player%::region} to "world"

        play sound "custom.worldbgm" with volume 5 and pitch 1 at player for player

    else if {sound::%player%::region} != "world":

        stop sound "custom.mapbgm" for player

        play sound "custom.worldbgm" with volume 5 and pitch 1 at player for player

        set {sound::%player%::region} to "world"


on region exit:

    if {sound::%player%::region} is "world":

        stop sound "custom.worldbgm" for player

        delete {sound::%player%::region}
이 구문에 있는 bgm을 합쳐서,map구역에 가면 mapbgm이 나오고, map구역에서world구역에 가면 worldbgm이 나오게 하고 싶습니다..
근데 계속 한가지 브금만 들립니다..
어떻게 해야 할까요..

Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/files/thumbnails/841/773/003/262x150.crop.jpg?20240526120908

레드스톤

마인크래프트 노트블록버전 『 봄을 고하다 (春を告げる) 』 [더블옥타브 버전]

노트블럭전문가

2024-05-26

0

/files/thumbnails/712/796/003/262x150.crop.jpg?20240525085438

레드스톤

마인크래프트 노트블록으로 만든 『 봄을 고하다 (春を告げる) 』 1

Sonttukk

2024-05-25

0

/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견 3

학교가기싫다

2024-05-08

1