Trying to add tags to projectiles

  • 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.
Aug 31, 2019
3
0
0
20
Code:
on right-click:
 player is holding book named "Fire Spell"
 set {waited} to difference between {claimed.%player%} and now
 if {waited} is less than 5 seconds:
  send "&eYou must wait %difference between {waited} and 5 seconds%"
  stop
 set {claimed.%player%} to now
 shoot snowball at speed 0.8
 add a tag
on projectile hit:
 create explosion with force 1
 drawDot count 10, particle flame, speed 0.4, XYZ 0.2, 0.2, 0.2, center location, visibleRange 32, pulseDelay 2, keepFor 0.4 seconds
on damage:
 projectile is a snowball
 hasTag(projectile, r0):
  set victim on fire for 3 seconds
on shoot:
 shooter is a player
 drawDot count 5, particle flame, XYZ 0.3, 0.3, 0.3, center event-projectile, rainbowMode true, visibleRange 118, pulseDelay 2, keepFor 5 seconds
 drawDot count 5, particle smokelarge, XYZ 0.3, 0.3, 0.3, center event-projectile, rainbowMode true, visibleRange 118, pulseDelay 2, keepFor 5 seconds
 wait 5 seconds
 delete projectile
 stop

New to skript been using it for literally one day and im having trouble with this skript for a rpg server.
When this skript is ran the "on damage" tends to affect every single damage any entity recieves therefore applying a fire affect to even fall damage itself. This skript also causes every snowball to have similar properties.
I want to find a way for it to only be applicable for the specific snowball launched by the book and similarly for the "on damage" to apply only for this snowball.
Plugins i use: skDragon, skSkellet, Skript, skQuery, skLib, skVault
 
Last edited:
kKvI.png
Thanks haha
 
Status
Not open for further replies.