Parsed as a number problem???

  • 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 community!

    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.

SmallDev

Member
Apr 6, 2020
39
0
6
So I'm making a shop, and when I try to use the lore of an item (parsed as a number) to find sell value I get a return of <none> please help, here's my Skript.
Code:
on right click:
  set {_SellMultiplier} to 1
  if lore of held item contains "&7Caught":
    set {_Money::1} to 10
    if lore of held item contains "&7Caught":   
      if held item's lore contains "cm":
        delete line 2 of held item's lore
        set line 1 of held item's lore to regex replace all "cm" with "" in held item's lore

        set {_lore::1} to held item's lore
        set {_lore::2} to {_lore::1} parsed as a number
        set {_lore::3} to round({_lore::2})
        send "%{_lore::3}%" to player
        add {_lore::3} to player's balance
        send "&6$%{_lore::3}% &fwas recieved!!!"
        delete {_lore::*}
        delete {_Money::*}
 
Status
Not open for further replies.