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.

Solved If statement doesnt work|Skript

Discussion in 'Skript' started by DutchKiller, Jul 29, 2017.

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

    DutchKiller Member

    Joined:
    Jul 29, 2017
    Messages:
    4
    Likes Received:
    0
    if "%world of player%" is "Invasion":
    command /invasion <text>:
    trigger:
    if arg-1 is "healer":
    player has permission "invasion.createhealer"
    spawn a priest
    set {healer.%spawned villager%} to true
    on rightclick on a priest:
    cancel event
    player has permission "invasion.usehealer"
    player is holding a gold nugget
    {healer.%clicked villager%} is true
    player's health is below 9.5
    player has 32 gold nuggets
    remove 32 gold nuggets from the player
    heal the player
    send "{@prefix} &aYou have been healed" to player


    The error i am getting is "can't understand this event: 'if %world of player% is "Invasion" ' "
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    229
    try

    %player's world%


    #edit

    nvm. this way
    Code (Skript):
    1. player is in world "world":
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    229
    I will try it..Thx

    Edit:

    I tried it but doesnt work either
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    229
    I edited above, do you have try this one too?
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    229
    Nope i will try it now


    edit:

    This doesnt work either. same error

    Cant understand this event
     
Thread Status:
Not open for further replies.

Share This Page

Loading...