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 doesn't work, what did I do wrong?

Discussion in 'Skript' started by Playr, Sep 30, 2022.

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

    Playr Member

    Joined:
    Sep 30, 2022
    Messages:
    2
    Likes Received:
    0
    # making this for a friend

    on death:
    if victim is a dolphin:
    if colored name of victim is "&c&lSCP-1057":
    spawn 1 dolphin at location -105, 60, -2
    set name of last spawned entity to "&c&lSCP-1057"
     
  2. RoosSkywalker

    RoosSkywalker Member

    Joined:
    Jul 16, 2022
    Messages:
    15
    Likes Received:
    0
    What is the error?
     
  3. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    116
    Likes Received:
    4
    I think the world in the location is the problem

    location -105, 60, -2

    location -105, 60, -2 in world "world"
     
  4. Playr

    Playr Member

    Joined:
    Sep 30, 2022
    Messages:
    2
    Likes Received:
    0

    The error is the "if victim is a dolphin"
    --- Double Post Merged, Oct 3, 2022, Original Post Date: Oct 3, 2022 ---

    "if victim is a dolphin"
     
  5. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    116
    Likes Received:
    4
    Ok, i see. Skript thinks that this is some particle i think.
    The smallest solution would be
    Code (Text):
    1.  
    2. on death:
    3.     victim is "dolphin" parsed as entitytype
    4.     broadcast "TESt"
    5.  
    (Iotzy u surely got a better solution with skript-reflect ;D)
     
  6. lotzy

    lotzy Active Member

    Joined:
    Mar 15, 2022
    Messages:
    139
    Likes Received:
    22
    Code (Text):
    1. on death of dolphin:
    2.    if name of victim is colored "&c&lSCP-1057":
    3.        spawn 1 dolphin at location -105, 60, -2
    4.        set name of last spawned entity to colored "&c&lSCP-1057"
     
  7. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    116
    Likes Received:
    4
    Cmon no skript-reflect in use? :emoji_frowning:
    Do some imports here. Some entitytype stuff there...
     
  8. lotzy

    lotzy Active Member

    Joined:
    Mar 15, 2022
    Messages:
    139
    Likes Received:
    22
    :emoji_frowning::emoji_frowning::emoji_frowning::emoji_frowning::emoji_frowning::emoji_frowning:
    When not using reflection in some answers
    [​IMG]
    [​IMG]
     
Thread Status:
Not open for further replies.

Share This Page

Loading...