Guest User

Untitled

a guest
Aug 28th, 2015
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. on damage:
  2. set {_lore::*} to lore of attacker's tool split at "||"
  3. if {_lore::1} contains "Damage":
  4. set {_lastcharacter} to the last character of {_lore::1}
  5. set {_min} to subtext of {_lore::1} from (first index of "Damage: " in {_lore::1}) to (first index of " - " in {_lore::1} - 1)
  6. set {_max} to subtext of {_lore::1} from (first index of " - " in {_lore::1} +2 ) to (last index of {_lastcharacter} in {_lore::1})
  7. set damage to random integer from {_min} to {_max}
Advertisement
Add Comment
Please, Sign In to add comment