Hi, I'm having an issue with this script I'm trying to make, sorry for the large and messy chunk of code. (If there is any tips on shortening it to reduce lag please leave your suggestions, thank you!)
Also, apologies if this is considered a messy thread post, I'm new to using forums, never really used forums on any website, I hope it's not too bad.
Anyway, the issue I'm having is when killing a blaze it always gives me:
- 55 xp with a sword that has both the "Blessed" and the "Angelic Blessing" enchant on it, no matter what level
- 15 xp with a sword that has just "Blessed" on it, no matter what level
- And 10 xp (base xp) with no enchant on it (works as intended)
As you see in the code, I'm trying to escalate the xp progressively based on level, but it seems like it's refusing to work the way I intended it to.
My guess is, "lore of attacker's tool contains "&7* (either enchant) (level)" does not fully read the roman numerals at the end of the lore, also known as "(level)" in my little example above.
If that's the case I don't have a clue on how to fix that.
Any ideas?
-------------------------------------------------
Addons
SkQuery
Skillet
TuSKe
skDragon
SkMorkaz
Skript Version
2.2-dev37c (Skript 2.2 bensku-dev37c)
Also, apologies if this is considered a messy thread post, I'm new to using forums, never really used forums on any website, I hope it's not too bad.
Anyway, the issue I'm having is when killing a blaze it always gives me:
- 55 xp with a sword that has both the "Blessed" and the "Angelic Blessing" enchant on it, no matter what level
- 15 xp with a sword that has just "Blessed" on it, no matter what level
- And 10 xp (base xp) with no enchant on it (works as intended)
As you see in the code, I'm trying to escalate the xp progressively based on level, but it seems like it's refusing to work the way I intended it to.
My guess is, "lore of attacker's tool contains "&7* (either enchant) (level)" does not fully read the roman numerals at the end of the lore, also known as "(level)" in my little example above.
If that's the case I don't have a clue on how to fix that.
Any ideas?
-------------------------------------------------
Addons
SkQuery
Skillet
TuSKe
skDragon
SkMorkaz
Skript Version
2.2-dev37c (Skript 2.2 bensku-dev37c)
code_language.skript:
on death of blaze:
lore of attacker's tool contains "&7* &9Blessed I":
lore of attacker's tool does not contain "&7* &dAngelic Blessing":
remove all xp from drops
give 15 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing I":
remove all xp from drops
give 20 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing II":
remove all xp from drops
give 25 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing III":
remove all xp from drops
give 30 experience to the attacker
stop
lore of attacker's tool contains "&7* &9Blessed II":
lore of player's tool does not contain "&7* &dAngelic Blessing":
remove all xp from drops
give 20 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing I":
remove all xp from drops
give 25 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing II":
remove all xp from drops
give 30 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing III":
remove all xp from drops
give 35 experience to the attacker
stop
lore of attacker's tool contains "&7* &9Blessed III":
lore of attacker's tool does not contain "&7* &dAngelic Blessing":
remove all xp from drops
give 30 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing I":
remove all xp from drops
give 35 experience to the attacker
stop
if lore of attacker's tool contains "&7* &dAngelic Blessing II":
remove all xp from drops
give 40 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing III":
remove all xp from drops
give 45 experience to the attacker
stop
lore of attacker's tool contains "&7* &9Blessed IV":
lore of attacker's tool does not contain "&7* &dAngelic Blessing":
remove all xp from drops
give 40 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing I":
remove all xp from drops
give 45 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing II":
remove all xp from drops
give 50 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing III":
remove all xp from drops
give 55 experience to the attacker
stop
lore of attacker's tool contains "&7* &9Blessed V":
lore of attacker's tool does not contain "&7* &dAngelic Blessing":
remove all xp from drops
give 50 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing I":
remove all xp from drops
give 55 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing II":
remove all xp from drops
give 60 experience to the attacker
stop
lore of attacker's tool contains "&7* &dAngelic Blessing III":
remove all xp from drops
give 65 experience to the attacker
stop
else:
remove all xp from drops
give 10 experience to the attacker
stop