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.

skript does not understand if event help

Discussion in 'Skript' started by Mamba, Feb 24, 2021.

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

    Mamba Member

    Joined:
    Feb 24, 2021
    Messages:
    13
    Likes Received:
    0
    Code (Text):
    1. on player join:
    2.     if {cmert_count} is not set:
    3.         set {cmert_count} to "0"                  
    4.        
    5. on death of player:
    6.     if "0" = {cmert_count}:
    7.         set {cmert_count} to "1"
    8.         stop
    9.     if "1" = {cmert_count}:
    10.         set {cmert_count} to "2"
    11.         stop
    12.     if "2" = {cmert_count}:
    13.         set {cmert_count} to "3"
    14.         stop
    15.     if "3" = {cmert_count}:
    16.         set {cmert_count} to "4"
    17.         stop
    18.     if "4" = {cmert_count}:
    19.         set {cmert_count} to "5"
    20.         stop
    21.  
    22. if "5" = {cmert_count}:
    23.     teleport player to 500 500 500 to the world "Deads"
    24.     set {cmert_count} to 0
     

    Attached Files:

  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Remove "" if your condition check numbers.

    Code (Skript):
    1. if 5 = {cmert_count}:
    When you write something between the quotes, skript understands it as text.
    --- Double Post Merged, Feb 24, 2021, Original Post Date: Feb 24, 2021 ---
    Wait ... I just realized that you put a condition as an event.

    So just tab until it's in the same order as the rest of the code.
     
  3. Mamba

    Mamba Member

    Joined:
    Feb 24, 2021
    Messages:
    13
    Likes Received:
    0
    New error :с
     

    Attached Files:

  4. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    try:
    Code (Skript):
    1. teleport player to location(500, 255, 500,  world "Deads")
     
Thread Status:
Not open for further replies.

Share This Page

Loading...