Solved Player's attack damage

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

blockminer

Member
Jun 22, 2021
4
0
1
23
i want to send attack damage and so i typed like this
Code:
message "%player's attack damage%" to player
but it didn't work
what i want is like this:
If player is holding diamond sword:message "7"
how i can send player's attack damage like this?
 
Code:
on damage:
  if attacker is holding a diamond sword:
    set {_damage} to damage
    message "%{_damage}%" to attacker

this could probably be better but i tested it and it works fine
 
Last edited:
Status
Not open for further replies.