So i am making a skill GUI that is featuring in contact of the GUI itself the code is pasted down below ^^
Now what do i do? make it a click then run string or does anyone know anything else? (The main thing im trying to do is make it so the iron sword named 0 / 100 goes to 1 / 100)
Now what do i do? make it a click then run string or does anyone know anything else? (The main thing im trying to do is make it so the iron sword named 0 / 100 goes to 1 / 100)
Code:
command /skills1:
trigger:
open virtual chest inventory with size 3 named "&6Skills" to player
format gui slot 0 of player with book named "&6Skill Points: 0" with lore "&7These are you're &6SKILL &7points that you||&7Can invest in custom abilities!"
format gui slot 10 of player with iron sword named "&6Attack Damage: 0 / 100" with lore "&7This will increase you're &6ATTACK DAMAGE &7that||&7You do to you're enemy!||||&6Attack Damage: &60%% >>> 5%%"
on inventory click:
name of player's cursor slot is "&7Attack Damage: "
set {_I::*} to lore of player's cursor slot split at "||"
loop {_I::*}:
if "%loop-value%" contains "&7Attack Damage: ":
set {_t} to loop-index parsed as integer
stop loop
set {_I} to "%uncolored {_I::%{_t}%}%"
replace every "Attack Damage: " with "" in {_I}
replace every " " with "" in {_I}
set {_A::*} to {_I} split at "/"
set {_O} to {_A::1} parsed as number
set {_P} to {_A::2} parsed as number
add 1 to {_o}