SHOW:
|
|
- or go back to the newest paste.
| 1 | -- A basic monster script skeleton you can copy and modify for your own creations. | |
| 2 | comments = {"Looks like you might be able\nto save Asriel!", "Asriel is looking very curious.", "Asriel tells you a snail fact!"}
| |
| 3 | commands = {"Joke", "Save", "Flirt", "Dream"}
| |
| 4 | randomdialogue = {"[voice:asriel][color:00c000]Howdy! I'm Asriel!", "[voice:asriel][color:00c000]Man, this place\nis weird...", "[voice:asriel][color:00c000]You're trying to\nsave me?", "[voice:asriel][color:00c000]What's your name?\n [w:30]...Oh. You don't\n have one?", "[voice:asriel][color:00c000]Have you seen my\nfriend Chara?", "[voice:asriel][color:00c000]What's with the\ngreen boxes\nbehind me?"}
| |
| 5 | ||
| 6 | sprite = "asrielidle" --Always PNG. Extension is added automatically. | |
| 7 | name = "Asriel" | |
| 8 | hp = 999999999 | |
| 9 | atk = 1 | |
| 10 | def = 1 | |
| 11 | check = "Someone familiar..." | |
| 12 | dialogbubble = "rightlarge" | |
| 13 | ||
| 14 | -- Happens after the slash animation but before | |
| 15 | function HandleAttack(attackstatus) | |
| 16 | if attackstatus == -1 then | |
| 17 | SetSprite("asrielunsure")
| |
| 18 | currentdialogue = {"[voice:asriel][color:ff0000]You really\n think you can\n hit me?"}
| |
| 19 | else | |
| 20 | SetSprite(asrielangry) | |
| 21 | currentdialogue = {"[voice:asriel][color:ff0000]Wow, you hit\nme. You really\nare\nsomething\nspecial."}
| |
| 22 | end | |
| 23 | end | |
| 24 | ||
| 25 | -- This handles the commands; all-caps versions of the commands list you have above. | |
| 26 | function HandleCustomCommand(command) | |
| 27 | if command == "JOKE" then | |
| 28 | SetSprite("asriellaugh")
| |
| 29 | currentdialogue = {"[voice:asriel][color:00c000]Haha, that's\na funny one! I\nwonder if my mom\nknows it!"}
| |
| 30 | SetSprite("asrielidle")
| |
| 31 | elseif command == "SAVE" then | |
| 32 | SetSprite("asrielunsure2")
| |
| 33 | currentdialogue = {"[voice:asriel][color:00c000]Man, wouldn't/nit be cool if\nI was super\npowerful?]"}
| |
| 34 | SetSprite("asrielidle")
| |
| 35 | elseif command == "FLIRT" then | |
| 36 | SetSprite("asrielunsure")
| |
| 37 | currentdialogue = {"[voice:asriel][color:00c000]You... [w:30] want to\n go out on a date!? ]"}
| |
| 38 | SetSprite("asrielsorry")
| |
| 39 | currentdialogue = {"[voice:asriel][color:00c000]Haha... [w:20] maybe \nafter our fight!"}
| |
| 40 | elseif command == "DREAM" then | |
| 41 | SetSprite("asrieldetermined")
| |
| 42 | currentdialogue = {"[voice:asriel][color:00c000]Man, wouldn't/nit be cool if\nI was super\npowerful?]"}
| |
| 43 | SetSprite("asrieldream")
| |
| 44 | currentdialogue = {"[voice:asriel][color:00c000]I can see it/nnow...]"}
| |
| 45 | end | |
| 46 | end |