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.

Solved Need help fixing fake-fine skript.

Discussion in 'Skript' started by CraftEC, Sep 29, 2020.

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

    CraftEC Member

    Joined:
    Sep 10, 2020
    Messages:
    3
    Likes Received:
    0
    So, I'm trying to make a particle beam ability for a custom boss I'm trying to make. I'm a new skriptor, so I don't really understand what's wrong with this. I got some code from other forum post solutions, but it's still not working. Basically the ability is supposed to shoot a particle beam to the nearest player (I will later add a damage effect). It says there's no errors, but the particle beam doesn't work. Can someone please help me fix this script? (I'm using skDragon as well)
    Here's the script:
    Code (Text):
    1.  
    2. every 5 seconds in "world_nether":
    3.     loop all entities in world "world_nether":
    4.         loop-entity is vindicator
    5.         set {_illagerlord} to loop-entity
    6.     {_illagerlord} is alive:
    7.         loop all players in world of {_illagerlord}:
    8.             set {_dist} to (distance between {_illagerlord} and loop-player *1000) + (random integer between 0 and 999)/1000
    9.             set {_list::%{_dist}%} to loop-entity
    10.         drawLine particle endrod, XYZ 0, 0, 0, center {_illagerlord}, target %the first element of {_list::*}%, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 1, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
    11.  
    12.  
     
  2. Skoll

    Skoll Active Member

    Joined:
    Sep 2, 2020
    Messages:
    60
    Likes Received:
    5
    First tell me what you want to do.
     
  3. CraftEC

    CraftEC Member

    Joined:
    Sep 10, 2020
    Messages:
    3
    Likes Received:
    0
    Basically there's gonna be a vindicator named "&4&lIllager Lord" and every 30 seconds I want it to shoot a particle beam at a random or the closest player in the arena (30 block radius just to make sure). Then it damages the selected player by 6 hearts.
     
  4. Skoll

    Skoll Active Member

    Joined:
    Sep 2, 2020
    Messages:
    60
    Likes Received:
    5
    1. every 30 seconds in "world_nether":
    2. loop all entities in world "world_nether":
    3. if loop-entity is vindicator named "&4&lIllager Lord":
    4. set {_illagerlord} to loop-entity
    5. if {_illagerlord} is alive:
    6. loop all players in world "world_nether":
    7. #This part I have fixed, but drawLine I never used.
     
  5. CraftEC

    CraftEC Member

    Joined:
    Sep 10, 2020
    Messages:
    3
    Likes Received:
    0
    This is the new code:
    Code (Text):
    1. every 5 seconds in "world_nether":
    2.     loop all entities in world "world_nether":
    3.         if loop-entity is vindicator:
    4.             set {_illagerlord} to loop-entity
    5.     if {_illagerlord} is alive:
    6.         loop all players in world "world_nether":
    7.             set {_dist} to (distance between {_illagerlord} and loop-player *1000) + (random integer between 0 and 999)/1000
    8.             set {_list::%{_dist}%} to loop-entity
    9.         drawLine particle endrod, XYZ 0, 0, 0, center location of {_illagerlord}, target location of %the first element of {_list::*}%, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 1, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
    It still doesn't work, no errors.
    Don't worry about drawline, I have that part, but incase you need it, here's the template I use:
    Code (Text):
    1. drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, target location of target living entity, id "%random number between 0 and 100000%", rainbowMode false, solid false, density 2, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
    --- Double Post Merged, Oct 4, 2020, Original Post Date: Sep 30, 2020 ---
    I figured it out... sry.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...