Variable inside of a mob

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

ItsAssasin

New Member
Jul 22, 2021
6
0
1
23
Hi, i want to make a custom health/damage system to overwrite the default Minecraft one. I have my damage set as {totaldamage::%player%}, and i want to create bosses, for example, a zombie with 100 custom hp ( {_ihp} ). If you attack the zombie, the zombie {_ihp} will be decreased by {totaldamage::%player%}.
I have not found a way to decrease the {_ihp} yet because i havent found a way to set variables inside of mobs.

Any help is welcome, thanks before response.
 
you can use MythicMobs to create bosses, much better, and use this code
Code:
on damage:
  if victim's name is "somenameidk":
    cancel event
    damage vicitim by {totaldamage::%player%}
 
Status
Not open for further replies.