I'm Trying to make the damage depend on placeholder

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

Phoom

New Member
Oct 27, 2020
5
0
1
23
on damage:
attacker's held item's name is "&fPing Sword":
set {_pingg} to placeholder "player_ping"
add %{_pingg}% to damage

I can't do this it shown up as former is not a number how can I set it to number
 
Code:
on damage:
  set {_pingg} to placeholder "player_ping"
  set {_pingg} to damage
  increase damage by {_pingg}
 
Code:
on damage:
  set {_pingg} to placeholder "player_ping"
  set {_pingg} to damage
  increase damage by {_pingg}
I don't think this is what he wants

But I got another idea:
Code:
on damage:
  if attacker's held item's name is "&fPing Sword":
    set {_ping} to placeholder "player_ping" parsed as a number
    set {_finaldamage} to final damage + {_ping}
    set final damage to {_finaldamage}
 
Status
Not open for further replies.