Solved Cant understand this condition

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

LazerYK

New Member
Aug 3, 2021
6
0
1
23
on rightclick on entity:
if name of entity is "&3L":
if {%player%.Lclick} = false
set {%player%.Lclick} to true

if {%player%.L} = 0:
message "&3L: &7Hej Person! Du må være ny her i byen. (1/3)" to player
set {%player%.jim} to 1
play sound "entity.villager.trade" woth volume 1 and pitch 1 to player


there is 2 errors in line 8 and 3 it says cant understand this condition im not the best and its prob why there is errors
 
Last edited:
I recommend using "::" instead of "." for variables but however the only thing that is wrong here is the fact that you forgot to type a ":" at the end of the 3rd line and that you misspelled "with" on line 9, I tested that and it works so if it still doesn't work for you not sure what's wrong maybe try to see if you have the required skript version / plugins installed. So maybe try this?:
Code:
on rightclick on entity:
    if name of entity is "&3L":
        if {%player%::Lclick} = false:
            set {%player%::Lclick} to true

    if {%player%::L} = 0:
        message "&3L: &7Hej Person! Du må være ny her i byen. (1/3)" to player
        set {%player%::jim} to 1
        play sound "entity.villager.trade" with volume 1 and pitch 1 to player
 
I recommend using "::" instead of "." for variables but however the only thing that is wrong here is the fact that you forgot to type a ":" at the end of the 3rd line and that you misspelled "with" on line 9, I tested that and it works so if it still doesn't work for you not sure what's wrong maybe try to see if you have the required skript version / plugins installed. So maybe try this?:
Code:
on rightclick on entity:
    if name of entity is "&3L":
        if {%player%::Lclick} = false:
            set {%player%::Lclick} to true

    if {%player%::L} = 0:
        message "&3L: &7Hej Person! Du må være ny her i byen. (1/3)" to player
        set {%player%::jim} to 1
        play sound "entity.villager.trade" with volume 1 and pitch 1 to player

oof my bad but thank you alot
 
Status
Not open for further replies.