Taking Varuable from lore?

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

Melody

Member
Jan 19, 2021
17
1
3
23
Trying to make a custom bow damage system but I need to get a value from the lore of the shooters tool? How can I do that?
Code:
on projectile hit:
    set {_o::*} to lore of shooter's tool
    set {_lore::*} to {_o::*} split by "||"
    loop {_lore::*}:
        set {_damage::*} to uncolored loop-text parsed as "Damage: %num%" #Just for be sure I changed it to a list.
        if {_damage::1}  is set:
            set {_damage} to {_damage::1}
            exit loop
    broadcast "%{_damage}%"
 
Status
Not open for further replies.