check lore number

  • 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.

whiteiris

Member
Jul 22, 2021
3
0
1
26
Hello, i need help
i tried to check the number of my item lore

Code:
on damage:
    victim is a living entity
    if attacker is a player:
        attacker is holding a sword
        set {_lore::*} to attacker tool split by "||" #this one the problem
        loop {_lore::*}:
            set {_value::*} to uncolored loop-value parsed as "Damage: %num%"
            if {_value::1} is set:
                add {_value::1} to {_damage}
                send "%{_damage}%" to attacker
                bind hologram "&c%{_damage}%" to victim for 1 second offset by 0.4, 2.0, 0.7
                exit loop

and this is happen, i dont know the problem
Untitled.png
 
Code:
to lore of tool of attacker

I tried this one too, and still thrown a same error
Code:
{_lore::*} can't be set to 'lore of tool of attacker split by "||" because the latter is not  an object
[doublepost=1627007943,1627007173][/doublepost]
Code:
to lore of tool of attacker
okay i tried something else and it works
Code:
        set {_l} to "%lore of tool of attacker%"
        set {_lore::*} to {_l} split by "||"

anyway thanks for replying
 
Status
Not open for further replies.