Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. -- Happens after the slash animation but before
  2. function HandleAttack(attackstatus)
  3. if attackstatus == -1 then
  4. -- player pressed fight but didn't press Z afterwards
  5. currentdialogue = {"text 1", "text 2"}
  6. BattleDialog({"[color:ff0000]You should help him."})
  7. Player.name = "mercy"
  8. Player.lv = 1
  9. Player.hp = 20
  10. else
  11. -- player did actually attack
  12. currentdialogue = {"text 1", "text 2"}
  13. BattleDialog({"[color:ff0000]Should you help him?"})
  14. Player.name = "murder"
  15. Player.lv = 20
  16. Player.hp = 99
  17. end
  18. end
  19. -- you can add more texts!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement