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. new line: \r
- comments = {"Smells like burning.", "Genos glows through his shirt.", "Genos looks furiously for his\rSensei."}
- commands = {"Ask", "Arm", "Insult"}
- randomdialogue = {"Burn\naway.", "All\nenemies\nmust die.", "Don't\nbother\nsensei.", "I will\ndestroy\nyou."}
- sprite = "Genos" --Always PNG. Extension is added automatically.
- name = "Genos"
- hp = 100
- atk = 30
- def = 5
- check = "A powerful cyborg with weak\rlimb joints."
- dialogbubble = "right" -- 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
- -- player pressed fight but didn't press Z afterwards
- else
- -- player did actually attack
- end
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- dialogbubble = "right"
- if command == "ASK" then
- Audio.Stop()
- dialogbubble = "rightlarge"
- BattleDialog({"You asked Genos why he's\rfighting."})
- Audio.LoadFile("Sorrow")
- currentdialogue = {"It all started 4\nyears ago... I\nwas 15 years old\nand still a\nnormal human\nbeing. Even in\nthis harsh world\nI had a pretty\nhappy and\npeaceful life\n",
- "with my family\nuntil then. But\none day, a\ncrazy cyborg\nattacked our\ntown all of a\nsudden. He had\ncompletely lost\nhis mind... I\nguess, his brain\n",
- "had been\ndamaged during\nits\ntransplantation\ninto his cyborg\nbody. He left\nafter\ndestroying\neverything in\nthe town.",
- "The parks, the\nschools, the\nbuildings, my\nhome... Of\ncourse... my\nfamily didn't\nsurvive. Only I\nwas miraculously\nspared, but as I\nwas just a meek",
- "15 year-old boy\nback then, I\nwouldn't have\nsurvived long all\nalone in the\nruins of a town\nif Dr. Stench\nhadn't passed\ntown by chance\nand found me.\n",
- "Dr. Stench is a\nscientist of\njustice and was\npursuing the\ncyborg to stop\nhim. I begged\nDr. Stench to\ntransform me\ninto a cyborg\nand was reborn\n",
- "as a cyborg who\nfights for\njustice. I made\na promise to Dr.\nStench to find\nthat cyborg one\nday and destroy\nhim."}
- canspare = true
- elseif command == "ARM" then
- dialogbubble = "right"
- BattleDialog({"You rip his arm off."})
- currentdialogue = {"Not\nagain."}
- elseif command == "INSULT" then
- dialogbubble = "right"
- BattleDialog({"You insult him for being weak."})
- currentdialogue = {"Why you\nsh*tty\nbrat."}
- end
- end
Add Comment
Please, Sign In to add comment