Question: How do i make variables like {_This} show numbers in chat?
CODE:
[doublepost=1501873834,1501873562][/doublepost]The thing is, whenever you hover over the item with the variable in it, it just says <none>
CODE:
code_language.skript:
command /test:
trigger:
open chest with 5 rows named "Test" to player
format gui slot 9 of player with 1 iron sword named "&aBerserk &7(Lvl %{Strength::%player%}% / 10)" with lore "&a▶ &7Click to upgrade this skill || ||&eEffect:||&e◆ &7Damage &a➟ &f+0.1 &eDmg||&e◆ &7Current Damage &a➟ &f%{_STR.%player%}% &eDmg|| ||&7Cost: &e7 ❂|| ||&cInfo: &7Increases dmg (ignores armor)||&cNote: &7Only affects Axes + Swords||&cMax: &7Deal 2 extra &c❤&7's" to run player command "/purchup1" with left click
on join:
set {_STR.%player%} to 0.1 * {Strength::%player%}
#Strength
on damage:
set {_Dmg} to 0.1 * {Strength::%attacker%}
if tool of attacker is sword:
damage the victim by {_Dmg} hearts
if tool of attacker is axe:
damage the victim by {_Dmg} hearts