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.

YML list checking.

Discussion in 'Skript' started by Barbarx, May 4, 2017.

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

    Barbarx Active Member

    Joined:
    Feb 25, 2017
    Messages:
    71
    Likes Received:
    4
    Hello. i created one skript but i cant check if %entity uuid of victim% is in yml list.
    Code (Skript):
    1. on load:
    2.     if file "plugins/Skript/MoboveSpawner.yml" doesn't exists:
    3.         create file "plugins/Skript/MoboveSpawner.yml"
    4.         add "Vytvoreno" to yml list "Mobove" of file "plugins/Skript/MoboveSpawner.yml"
    5. on spawn:
    6.     if "%spawn reason%" is "SPAWNER":
    7.         add "%entity uuid of entity%" to yml list "Mobove" of file "plugins/Skript/MoboveSpawner.yml"
    8. on death:
    9.     victim is not player
    10.     if yml list "Mobove" from file "plugins/Skript/MoboveSpawner.yml" contains "%entity uuid of victim%":
    11.         remove "%entity uuid of victim%" from yml list "Mobove" of file "plugins/Skript/MoboveSpawner.yml"
    12. on unload:
    13.     delete file "plugins/Skript/MoboveSpawner.yml"
    Without errors. only i cant check
    so my problem is here:
    Code (Skript):
    1. if yml list "Mobove" from file "plugins/Skript/MoboveSpawner.yml" contains "%entity uuid of victim%":
    And sorry for my bad english.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...