Advertisement
pz_neko

Untitled

Feb 7th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. #通常攻撃コンボゲージシステム
  2. on damage:
  3. attacker is holding iron sword
  4. if {combo.%attacker%} is more than 0:
  5. set damage to damage * (1+{combo.%attacker%}/4)
  6. message "<light aqua>Combo!! +%{combo.%attacker%}% %damage%damage!" to attacker
  7. message "<pink>Combo!! +%{combo.%attacker%}%" to victim
  8. set {combo.%attacker%} to {combo.%attacker%} + 1
  9. set {_combo} to {combo.%attacker%}
  10. wait 15 ticks
  11. if {_combo} is {combo.%attacker%}:
  12. set {combo.%attacker%} to 0
  13.  
  14. #コンボフィニッシュ技(コンボが4発目または5発目の時に発動)
  15. on rightclick holding iron sword:
  16. player is not sneaking
  17. if {combo.%player%} is 3 or 4:
  18. set {_damage} to 1 * (1+{combo.%player%}/4)
  19. set {_combo} to {combo.%player%}
  20. set {combo.%player%} to 0
  21. wait a tick
  22. create a tornado effect at the block 2 below the player with id "Smash" with tornado particle cloud and cloud particle CRIT set radius 5 and max height 1
  23. loop living entities in radius 5 of player:
  24. loop-entity is not player
  25. play "entity_player_attack_sweep" to player at volume 10
  26. set {_damage.%loop-entity%} to max health of loop-entity * 1/3 * {_damage}
  27. damage loop-entity by {_damage.%loop-entity%}
  28. message "<light aqua>Combo!! +%{_combo}% %{_damage.%loop-entity%}%damage to %loop-entity%!" to player
  29. message "<pink>Combo!! +%{_combo}%" to loop-entity
  30. push player forward at speed 2
  31. play "entity_player_attack_sweep" to player at volume 10
  32. wait a tick
  33. stop effect "Smash"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement