Only once

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

NewbyZ

Member
Jan 26, 2017
75
2
0
25
How can I do that by doing damage to a mob this does something only once? And that only serves for that mob.
 
What do you mean by "something only once"? What's "something". Please show an example of what you're trying to say.

(Example)
code_language.skript:
on damage of spider:
    if name of victim contains "Example":
        if metadata value "Type" of victim is not set:
            set metadata value "Type" of victim to "Only1
             #Some hability"

When you hit him for the first time, he does something, when you hit him again he does not do it anymore
I have managed to do it with this, I hope you now understand what I mean, I suppose there will be a better way than this ....
 
Status
Not open for further replies.