Weird if statements with variables

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

OohTicTac

Member
Feb 5, 2021
2
0
1
Recently I've bumped into an issue I can't resolve.
I've created an npc that requires a certain amount of wins to start dialogue with it.
The problem is whenever I have enough wins to interact with it, it still doesn't do anything.

on right click:
if name of event-entity is "&2&lJeremy":
broadcast "%{Win::%UUID of player%}%"
if {Win::%UUID of player%} > 25:
play sound "entity.villager.mumble" to the player
message "&2&lJeremy&7: So you've found me," to the player

I have 167 wins and I still cannot interact with the npc:
upload_2022-8-22_14-36-26.png
 
The problem doesn't seem to be the npc itself. I have tried without the if statement and it worked fine. I was presuming it had something to do with the variable in the if statement.
 
Status
Not open for further replies.