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:
Yeah, it is a server for Hong Kong/Taiwanese players.
The problem is , no error was presented by skript system it self,
But the
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 .
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:
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: