on shoot victim?

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

Toadyboii

Member
Jan 31, 2024
19
0
1
16
what do i call the victim of an on shoot event?
on shoot:
if projectile is fireball:
if {EDMG.%shooter's uuid%} is greater than 0:
damage target by {EDMG.%shooter's uuid%}
send "%{EDMG.%shooter's uuid%}%" to shooter
on damage doesnt seem to work
i tried target and victim but both dont work
 
victim, use it in a condition.
if you can please put the code here usind </> button please, is more simple to understand the code.

Code:
on shoot:
    if projectile is fireball:
        if {EDMG.%shooter's uuid%} is greater than 0:
            damage victim by {EDMG.%shooter's uuid%}
            send "%{EDMG.%shooter's uuid%}%" to shooter
 
victim, use it in a condition.
if you can please put the code here usind </> button please, is more simple to understand the code.

Code:
on shoot:
    if projectile is fireball:
        if {EDMG.%shooter's uuid%} is greater than 0:
            damage victim by {EDMG.%shooter's uuid%}
            send "%{EDMG.%shooter's uuid%}%" to shooter
what do you mean by "victim,use it in a condition"
 
Sorry, ignore latest post, in shoot event doesn't exist "victim" expresion.

on damage:
set {_event_projectile} to "%event-projectile%"
if {_event_projectile} contain "fireball":
if {EDMG.%shooter's uuid%} is greater than 0:
damage victim by {EDMG.%shooter's uuid%}
send "%{EDMG.%shooter's uuid%}%" to attacker