Is this script wrong by any chance?

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

evepos

Member
May 5, 2024
12
0
1
23
[Skript] Reloading rightclick.sk...
[22:52:51 INFO]: Line 59: (rightclick.sk)
[22:52:51 INFO]: name of tool of the player is already a text, so you should not put it in one (e.g. name of tool of the player instead of "%name of tool of the player%")
[22:52:51 INFO]: Line: if "%{right.item.list::*}%" contains "%name of player's held item%":
[22:52:51 INFO]:
[22:52:51 INFO]: [Skript] Successfully reloaded rightclick.sk. (118ms)
 
Hey, not sure if i understand this fully but i think i may know, if you'r trying to detect the name if your item while right click then it would be
Code:
On right click:
    If name of player's tool is "Skript":
    Send "skript'
[/ICODE]
 
Hey, not sure if i understand this fully but i think i may know, if you'r trying to detect the name if your item while right click then it would be
Code:
On right click:
    If name of player's tool is "Skript":
    Send "skript'
[/ICODE]
Sorry for bad english
 
[Skript] Reloading rightclick.sk...
[22:52:51 INFO]: Line 59: (rightclick.sk)
[22:52:51 INFO]: name of tool of the player is already a text, so you should not put it in one (e.g. name of tool of the player instead of "%name of tool of the player%")
[22:52:51 INFO]: Line: if "%{right.item.list::*}%" contains "%name of player's held item%":
[22:52:51 INFO]:
[22:52:51 INFO]: [Skript] Successfully reloaded rightclick.sk. (118ms)
Hi, this is because you're doing "%name of player's held item%" even though 'name of player's held item' is already stringified. You're doing the same with your variable, and probably a lot of other places. To fix this, change the line to read:

if {right.item.list::*} contains name of player's held item
 
  • Like
Reactions: evepos