skript does not understand if event help

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

Mamba

Member
Feb 24, 2021
13
0
1
Ukraine
Code:
on player join:
    if {cmert_count} is not set:
        set {cmert_count} to "0"                   
        
on death of player:
    if "0" = {cmert_count}:
        set {cmert_count} to "1"
        stop
    if "1" = {cmert_count}:
        set {cmert_count} to "2"
        stop
    if "2" = {cmert_count}:
        set {cmert_count} to "3"
        stop
    if "3" = {cmert_count}:
        set {cmert_count} to "4"
        stop
    if "4" = {cmert_count}:
        set {cmert_count} to "5"
        stop

if "5" = {cmert_count}:
    teleport player to 500 500 500 to the world "Deads"
    set {cmert_count} to 0
 

Attachments

  • Снимок.PNG
    Снимок.PNG
    35.2 KB · Views: 94
Code:
on player join:
    if {cmert_count} is not set:
        set {cmert_count} to "0"                  
       
on death of player:
    if "0" = {cmert_count}:
        set {cmert_count} to "1"
        stop
    if "1" = {cmert_count}:
        set {cmert_count} to "2"
        stop
    if "2" = {cmert_count}:
        set {cmert_count} to "3"
        stop
    if "3" = {cmert_count}:
        set {cmert_count} to "4"
        stop
    if "4" = {cmert_count}:
        set {cmert_count} to "5"
        stop

if "5" = {cmert_count}:
    teleport player to 500 500 500 to the world "Deads"
    set {cmert_count} to 0
Remove "" if your condition check numbers.

code_language.skript:
if 5 = {cmert_count}:
When you write something between the quotes, skript understands it as text.
[doublepost=1614204256,1614204153][/doublepost]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.
 
Remove "" if your condition check numbers.

code_language.skript:
if 5 = {cmert_count}:
When you write something between the quotes, skript understands it as text.
[doublepost=1614204256,1614204153][/doublepost]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.
New error :с
 

Attachments

  • ффвіфів2.PNG
    ффвіфів2.PNG
    99.3 KB · Views: 104
Status
Not open for further replies.