Guest User

Sans vs Chara

a guest
Jun 24th, 2016
2,969
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"You are filled with\r[w:10]D[w:5]E[w:5]T[w:5]E[w:5]R[w:5]M[w:5]I[w:5]N[w:5]A[w:5]T[w:5]I[w:5]O[w:5]N!"}
  3. commands = {"Bone Attack"}
  4. randomdialogue = {"..."}
  5.  
  6. Player.lv = 1
  7. Player.name = "sans"
  8. Player.hp = 21
  9.  
  10. sprite = "Chara" --Always PNG. Extension is added automatically.
  11. name = "Chara"
  12. hp = 99
  13. atk = 99
  14. def = 99
  15. check = "[voice:v_sans]Megalomaniac...\r[w:10]Soon to be owned."
  16. dialogbubble = "rightlarge" -- See documentation for what bubbles you have available.
  17. canspare = false
  18. cancheck = true
  19.  
  20. -- Happens after the slash animation but before the shaking and hit sound.
  21. function HandleAttack(attackstatus)
  22. if attackstatus == -1 then
  23. currentdialogue = {"missed me"}
  24. -- player pressed fight but didn't press Z afterwards
  25. else
  26. if hp < 1 then hp = 1 BattleDialog({"[voice:v_sans]get dunked on.\r[w:15]you megalomaniac.[w:5][func:Kill]"})
  27. -- player did actually attack
  28. end
  29.  
  30. -- This handles the commands; all-caps versions of the commands list you have above.
  31. function HandleCustomCommand(command)
  32. if command == "BONE ATTACK" then
  33. BattleDialog({"[voice:v_sans]welcome to the bonezone"}) hp = 1 commands = {"Gaster Blaster"}
  34. elseif command == "GASTER BLASTER" then
  35. BattleDialog({"[voice:v_sans]eat lasers kiddo"}) hp = 0
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment