Packets - Damage System

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

BatDev0

Member
May 16, 2020
25
2
3
17
Using packets, I want to create a customizable damage system. I have been looking at some tutorials. But none of them tell me really how to set a packet to a certain amount. I have this packet
Code:
generic.attack_damage

Which gets the damage of an attack, I want to set this to whats in my command.
Code:
command /damage [<text>]:
    trigger:
       # Set Damage Here


on damage:
      set {_packet} to recive packet generic.attack_damage from attacker
      send victim packet {_packet}
 
-_-
just use "damage player by (number) hearts". there's no need to get into packets and all.
 
Status
Not open for further replies.