7mm

【Skript】体力変数管理

7mm
Feb 15th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. every second:
  2. add 1 to {%all players%-health}
  3.  
  4. on damage of a player:
  5. cancel event
  6. message "&e&l[system] &c%damage% damage (Health: %{%victim%-health}%)" to victim
  7. if {%victim%-health} is less than or equal to 0:
  8. kill the player
  9.  
  10. on death of a player:
  11. set {%player%-health} to 100
Advertisement
Add Comment
Please, Sign In to add comment