1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Held item name

Discussion in 'Skript' started by MCProHost, Sep 24, 2017.

Thread Status:
Not open for further replies.
  1. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    send "&cYou ate &e%name of tool% &cand gained speed 1 for ten seconds and regeration 3 for 5 seconds!"

    [​IMG]

    How might I fix this, right now it sends <none> in place of Name of tool
     
    #1 MCProHost, Sep 24, 2017
    Last edited: Sep 24, 2017
  2. White

    White Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    445
    Likes Received:
    25
    Because you need to be more specific, is it the player or loop-player? In this case, it should be %name of player's tool%.
     
  3. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    Still returns <none>
     
  4. glowgrew

    glowgrew Active Member

    Joined:
    Jan 26, 2017
    Messages:
    99
    Likes Received:
    7
    Code (Skript):
    1. name of tool
     
  5. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    Read the post buddy
     
  6. Orangejuiceyummy

    Joined:
    Jan 26, 2017
    Messages:
    20
    Likes Received:
    0
    Can you post your current code you use with any errors being proccessed?
     
  7. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    @
    You should also read the post.
     
  8. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    He meant post the code surrounding the line where youre sending the message. We need context or we cant help you. We cant look at 1 line and know everything thats going on around it just like you couldnt read 1 line of a book magically know what the book is about

    If its the thing i was helping you with earlier where you were removing the item in their hand then make sure your sending the name before you remove the tool or else the name of their tool would be none
     
  9. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    Look at discord m8
    --- Double Post Merged, Sep 24, 2017, Original Post Date: Sep 24, 2017 ---
    Code (Skript):
    1. on right click:     if held item is head:         send "&cYou ate &e%name of player's tool% &cand gained speed 1 for ten seconds and regeration 3 for 5 seconds!"         wait 1 tick         remove 1 of player's tool from player         apply speed 1 to player for 10 seconds         apply regeneration 3 to player for 5 seconds
    its not like that in the skript btw..
     
  10. White

    White Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    445
    Likes Received:
    25
    Try %name of player's held item%. I seen a post where player's tool had problems.
     
  11. glowgrew

    glowgrew Active Member

    Joined:
    Jan 26, 2017
    Messages:
    99
    Likes Received:
    7
    you want to get an ID instead of item's name?
     
  12. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    No, I want to get it to say the items name I.e. McProHost's head
     
  13. YoshYz

    YoshYz Well-Known Member

    Joined:
    Jan 28, 2017
    Messages:
    694
    Likes Received:
    82
    @MCProHost

    Code (Skript):
    1. %display name of player's held item%
     
Thread Status:
Not open for further replies.

Share This Page

Loading...