개인 자료란 (JE)

  서버 커뮤니티

Profile 바람의너를 대표칭호 없음

windwolf0 eb03c9f65da24c338ffbbc8703e369b8

Profile

질문하기 스크립트

인디언포커

2021.12.15 조회 수 249 추천 수 0
게임버전 (JE) 1.12.2 
게임버전 (BE) 관련없음 
스크립트 버전 2.2-dev27 

command /카드셋팅 [<string>]:

    trigger:

        if arg 1 parsed as integer is between 1 and 4:

            set {_ran} to random integer between 1 and 14

            if {_ran} is between 1 and 1:

                force player run command "/hd setline %arg 1% 1 1" as op

            if {_ran} is between 2 and 2:

                force player run command "/hd setline %arg 1% 1 2" as op

            if {_ran} is between 3 and 3:

                force player run command "/hd setline %arg 1% 1 3" as op

            if {_ran} is between 4 and 4:

                force player run command "/hd setline %arg 1% 1 4" as op

            if {_ran} is between 5 and 5:

                force player run command "/hd setline %arg 1% 1 5" as op

            if {_ran} is between 6 and 6:

                force player run command "/hd setline %arg 1% 1 6" as op

            if {_ran} is between 7 and 7:

                force player run command "/hd setline %arg 1% 1 7" as op

            if {_ran} is between 8 and 8:

                force player run command "/hd setline %arg 1% 1 8" as op

            if {_ran} is between 9 and 9:

                force player run command "/hd setline %arg 1% 1 9" as op

            if {_ran} is between 10 and 10:

                force player run command "/hd setline %arg 1% 1 10" as op

            if {_ran} is between 11 and 11:

                force player run command "/hd setline %arg 1% 1 A" as op

            if {_ran} is between 12 and 12:

                force player run command "/hd setline %arg 1% 1 J" as op

            if {_ran} is between 13 and 13:

                force player run command "/hd setline %arg 1% 1 Q" as op

            if {_ran} is between 14 and 14:

                force player run command "/hd setline %arg 1% 1 K" as op
이런식으로 arg1 에 해당하는 홀로그래픽의 글자를 바꾸는 형식인대 좀 간단하게 줄일수있는 방법은 없을까요..
그리고 명령어한개로 1~4까지의 홀로그래픽을 각각 다른 값으로 바꾸는 방법은 없을까요,,




1개의 댓글

스크립터브혼
2021.12.20
command /카드셋팅 <text>:
    trigger:
        set {_texts::*} to "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "A", "J", "Q", "K"
        loop 4 times:
            set {_text} to random text of {_texts::*}
            remove {_text} from {_texts::*}
            force player run command "/hd setline %arg-text% %loop-number% %{_text}%" as op
뉴스 및 창작물
/files/thumbnails/761/908/003/262x150.crop.jpg?20241025153749

건축

서울 숭례문(崇禮門) 4

KHC

2024-10-25

2

/files/thumbnails/578/899/003/262x150.crop.jpg?20241010142350

건축

경주 월정교 1

KHC

2024-10-10

2

/files/thumbnails/219/899/003/262x150.crop.jpg?20241009200950

건축

송전탑+도시 2

dbasd12

2024-10-09

2

/files/thumbnails/246/898/003/262x150.crop.jpg?20241008102328

레드스톤

단다단 - 오토노케(オトノケ) | 마인크래프트 노트블럭 커버

노트블럭전문가

2024-10-08

1

/files/thumbnails/348/896/003/262x150.crop.jpg?20241006103035

디도스/봇테러등등을 낚는 방법 4

물귀신

2024-10-06

3