Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- A basic monster script skeleton you can copy and modify for your own creations.
- 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!"}
- commands = {"Bone Attack"}
- randomdialogue = {"..."}
- Player.lv = 1
- Player.name = "sans"
- Player.hp = 21
- sprite = "Chara" --Always PNG. Extension is added automatically.
- name = "Chara"
- hp = 99
- atk = 99
- def = 99
- check = "[voice:v_sans]Megalomaniac...\r[w:10]Soon to be owned."
- dialogbubble = "rightlarge" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = true
- -- Happens after the slash animation but before the shaking and hit sound.
- function HandleAttack(attackstatus)
- if attackstatus == -1 then
- currentdialogue = {"missed me"}
- -- player pressed fight but didn't press Z afterwards
- else
- if hp < 1 then hp = 1 BattleDialog({"[voice:v_sans]get dunked on.\r[w:15]you megalomaniac.[w:5][func:Kill]"})
- -- player did actually attack
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "BONE ATTACK" then
- BattleDialog({"[voice:v_sans]welcome to the bonezone"}) hp = 1 commands = {"Gaster Blaster"}
- elseif command == "GASTER BLASTER" then
- BattleDialog({"[voice:v_sans]eat lasers kiddo"}) hp = 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment