개인 자료란 (JE)

  서버 커뮤니티

Profile 앱솔루트 대표칭호 없음

HUI_Cheon 7cea71956a85477dac7aa26c6699108a

Profile

질문하기 스크립트

로어 스크립트 에 관한 질문 급해요 ㅠ

2023.05.13 조회 수 75 추천 수 0
이해도 입문자 
게임버전 (JE) 1.12.2 
게임버전 (BE) 관련없음 
스크립트 버전 Skript-2.6.4 
스크립트 애드온 skDragon.jar / Skellett-2.0.9.jar / SkQuery-4.1.9.jar / skRayFall+v1.9.28.jar / Skript-2.6.4.jar / skUtilities.v0.9.2.jar 

보시다 시피 저는 저 애드온들만 쓰고있습니다 저는 어떻게 해야할지 모르겠씁니다 ㅠㅠ '

방어구에 체력을적용해도 ? 적용이 되지않고 오류가뜹니다. 이게 어떤오류인지 아시는분있나요ㅕ ㅠㅠ?

원래 안되는 걸까요 스크립트는 유료라 올릴수가없어서 대신 적어드립니다.

on damage:

    set {_lore::*} to uncolored lore of attacker's tool

    loop {_lore::*}:

        if {_lore::%loop-index%} contains "공격력":

            set {Dmg.%attacker%} to {_lore::%loop-index%}

            replace all "●" and " " and "공격력" and ":" with "" in {Dmg.%attacker%}

        if {_lore::%loop-index%} contains "크리티컬":

            set {crit.%attacker%} to {_lore::%loop-index%}

            replace all "●" and " " and "크리티컬" and ":" and "%%" with "" in {crit.%attacker%}

        if {_lore::%loop-index%} contains "방어구 관통력":

            set {defenseb.%attacker%} to {_lore::%loop-index%}

            replace all "●" and " " and "방어구" and ":" and "관통력" with "" in {defenseb.%attacker%}

        if {_lore::%loop-index%} contains "생명력 흡수":

            set {Hdrain.%attacker%} to {_lore::%loop-index%}

            replace all "●" and " " and "생명력" and ":" and "흡수" and "%%" with "" in {Hdrain.%attacker%}

        if {_lore::%loop-index%} contains "고정 데미지":

            set {truedamage.%attacker%} to {_lore::%loop-index%}

            replace all "●" and " " and "고정" and "데미지" and ":" with "" in {truedamage.%attacker%}

        if {_lore::%loop-index%} contains "요구 힘":

            set {_limitStr} to {_lore::%loop-index%}

            replace all "●" and " " and "요구" and "힘" and ":" with "" in {_limitStr}

            if {statStr.%attacker%} < {_limitStr} parsed as integer:

                cancel event

                send "&4&l<!> 힘 &f스텟이 부족합니다." to attacker

        if {_lore::%loop-index%} contains "요구 민첩":

            set {_limitDex} to {_lore::%loop-index%}

            replace all "●" and " " and "요구" and "민첩" and ":" with "" in {_limitDex}

            if {statDex.%attacker%} < {_limitDex} parsed as integer:

                cancel event

                send "&4&l<!> &b&l민첩 &f스텟이 부족합니다." to attacker

        if {_lore::%loop-index%} contains "요구 체력":

            set {_limitHP} to {_lore::%loop-index%}

            replace all "●" and " " and "요구" and "체력" and ":" with "" in {_limitHP}

            if {statHP.%attacker%} < {_limitHP} parsed as integer:

                cancel event

                send "&4&l<!> &a&l체력 &f스텟이 부족합니다." to attacker

        if {_lore::%loop-index%} contains "요구 행운":

            set {_limitLuk} to {_lore::%loop-index%}

            replace all "●" and " " and "요구" and "행운" and ":" with "" in {_limitLuk}

            if {statLuk.%attacker%} < {_limitLuk} parsed as integer:

                cancel event

                send "&4&l<!> &e&l행운 &f스텟이 부족합니다." to attacker

    add {Dmg.%attacker%} parsed as integer/2 to damage

    subtract {truedamage.%attacker%} parsed as integer/2 from victim's health

    add {statStr.%attacker%}*0.2 to damage

    add {statDex.%attacker%}*0.35 to damage

    add {statHP.%attacker%}*0.04 to damage

    add {statLuk.%attacker%}*0.2 to damage

    set {_crit.%attacker%} to {crit.%attacker%} parsed as integer

    chance of {_crit.%attacker%}%:

        add damage*(0.75 + {statLuk.%attacker%}*0.005) to damage

        send "&e&l치명타!" to attacker

        send "&c&l치명타!" to victim

    set {_Armor.%victim%} to {Armor.%victim%} + {statHP.%victim%}

    subtract {defenseb.%attacker%} parsed as integer from {_Armor.%victim%}

    set {_Armor1.%victim%} to {_Armor.%victim%}

    set {_Armor2.%victim%} to {_Armor.%victim%} + 100

    set {_Res.%victim%} to {_Armor1.%victim%}/{_Armor2.%victim%}

    set {_fRes.%victim%} to 1 - {_Res.%victim%}

    if {_fRes.%victim%} < 0:

        add {_fRes.%victim%}*-1 to damage

    else:

        set damage to damage*{_fRes.%victim%}

    add damage*{Hdrain.%attacker%} parsed as integer/100 to attacker's health

    delete {Dmg.%attacker%}

    delete {crit.%attacker%}

    delete {defenseb.%attacker%}

    delete {Hdrain.%attacker%}

    delete {truedamage.%attacker%}



1개의 댓글

qsef1256
2023.05.13

LoreAttributes 버그입니다

뉴스 및 창작물
/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 모드에서 악성코드 발견

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1