• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Yerakuuun

Member
Jan 28, 2022
2
0
1
30
New to skript forum(Not skript,I have already used it for least a year),I am not getting any helps on discord as all guys trying to help me failed :/
The code:





Code:
on right click:
    if name of player's tool is "&a騎士劍":
        if {KnightSwordLVL1::%player%} is not set:
            if {CantUseAbility::%player%} is not set:
                set {Mana::%player%} to placeholder "%%aureliumskills_mana%%" from the player
                wait 1 tick
                if {Mana::%player%} is number between 80 and 100000000:
                    set {KnightSwordLVL1::%player%} to 1
                    send "&a使用了技能'砸擊'!" to player
                    set {DamageUnavalible::%player%} to 1
                    make console execute command "/mana remove %player% 80"
                    wait 1 second
                    clear {DamageUnavalible::%player%}
                    play sound "block.anvil.place" with pitch 0.1 to the player
                    loop all entities in radius 3 around event-player:
                        loop-entity is not a player
                        damage loop-entity by 6 hearts
                    wait 15 second
                    send "&a技能'砸擊'充能完畢。"
                    play sound "block.note_block.bell" with pitch 0.1 to the player
                    wait 1 tick
                    play sound "block.note_block.bell" with pitch 0.6 to the player
                    wait 1 tick
                    play sound "block.note_block.bell" with pitch 1 to the player
                    wait 1 tick
                    play sound "block.note_block.bell" with pitch 1 to the player
                    wait 1 tick
                    play sound "block.note_block.bell" with pitch 2 to the player
                    clear {KnightSwordLVL1::%player%}
                else:
                    send "&c你的魔力不足以使用技能'砸擊'!" to the player
                    play sound "entity.enderman.teleport" with pitch 0.1 to the player
            else if {CantUseAbility::%player%} is set:
                send "&c技能'砸擊'被封鎖了!"
                play sound "entity.enderman.teleport" with pitch 0.1 to the player
        else if {KnightSwordLVL1::%player%} is set:
            send "&c技能'砸擊'正在冷卻中!"
            play sound "entity.enderman.teleport" with pitch 0.1 to the player

command /wantoknowmana:
    trigger:
        set {Mana::%player%} to placeholder "%%aureliumskills_mana%%" from the player
        send "%{Mana::%player%}%" to the player



Yeah, it is a server for Hong Kong/Taiwanese players.
The problem is , no error was presented by skript system it self,
But the
Code:
if {Mana::%player%} is number between 80 and 120:
one killed me, the command "/wanttoknowmana" is for debugging, I confirmed the var was set.
But the ability can't be used since the system can't detect the var is between 80 to 100000000.
It keep telling me mana not enough, maybe owing to the var is a decimal like 110.0 or 21.9.

Skript placeholder,Ersatz and Skellett-Legacy was present in my server, and the mana system is from Aurelium skills.Skript is the newest version , server is 1.16.5 .
 
Last edited:
remove number
code_language.skript:
if {Mana::%player%} is between 80 and 120:
[doublepost=1643368848,1643368749][/doublepost]Also use local variables, since you aren't using the global variable anyways
code_language.skript:
set {_mana} to placeholder "%%aureliumskills_mana%%" from the player
 
remove number
code_language.skript:
if {Mana::%player%} is between 80 and 120:
[doublepost=1643368848,1643368749][/doublepost]Also use local variables, since you aren't using the global variable anyways
code_language.skript:
set {_mana} to placeholder "%%aureliumskills_mana%%" from the player

'Pretty shame lol, but I am not getting the "{_mana}" 's underline phase function...
So i should change all {Mana::%player%) to {_mana}?
[doublepost=1643371429][/doublepost]
remove number
code_language.skript:
if {Mana::%player%} is between 80 and 120:
[doublepost=1643368848,1643368749][/doublepost]Also use local variables, since you aren't using the global variable anyways
code_language.skript:
set {_mana} to placeholder "%%aureliumskills_mana%%" from the player
Tried to put all {Mana::%player%) to {_mana} and used another phase,it still keep telling me not enough mana.
Maybe the reason is the variable is a decimal like 110.0 or 21.9,I will edit the first page.
 
Status
Not open for further replies.