Why this code doesn't work?

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

MateoxPL

Active Member
Jan 27, 2018
116
0
0
25
Hello
this is code

Code:
on damage:
       if attacker is player:
              if attacker has potion of absorption of tier 1:
                     send "Text" to attacker

Error:
Code:
[19:48:35 ERROR]: can't understand this condition: 'attacker's has potion of absorption of tier 1' ( core2.sk, line 150: if attacker's has potion of absorption of tier 1:')
 
also doesn't work but without "of tier 1" works

Code:
if attacker has absorption:
 
Hello
this is code

Code:
on damage:
       if attacker is player:
              if attacker has potion of absorption of tier 1:
                     send "Text" to attacker

Error:
Code:
[19:48:35 ERROR]: can't understand this condition: 'attacker's has potion of absorption of tier 1' ( core2.sk, line 150: if attacker's has potion of absorption of tier 1:')
try this:

Code:
on damage:
    if attacker is a player:
        wait 1 tick
        if attacker has potion of absorption of tier 1:
        wait 1 tick
            send "Text" to attacker
            stop
 
Status
Not open for further replies.