Advertisement
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 = {"Altair flips a coin\rin anticipation.", "Altair sings along\rwith his birds.", "Altair check's his phone\rwhile waiting for his turn."}
- commands = {"Joke", "Challenge", "Pose"}
- randomdialogue = {"*whistles a \nspidery tune \nwith his\nbirds.*", "Nothing personal,\nhumie.\nJust doing \nmy job.", "Not bad, wanna \nhangout at \nGrillby's\nif you survive?."}
- sprite = "poseur" --Always PNG. Extension is added automatically.
- name = "Altair"
- hp = 1800
- atk = 50
- def = 35
- gold = 500
- check = "Leader of mercenaries. Watch out."
- dialogbubble = "rightlarge" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = true
- -- Happens after the slash animation but before
- 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)
- if command == "JOKE" then
- currentdialogue = {"Ok,\nthat's\nactually \nkind\nof funny."}
- BattleDialog({"You told Altair a terrible\nbird pun.", "Altair laughs, remembering a \ncertain skeleton."})
- elseif command == "CHALLENGE" then
- currentdialogue = {"Getting cocky,\nhuh?\nYeah me too."}
- BattleDialog({"You told Altair if he's even \ntrying.", "He groans, remembering a \ncertain fish."})
- elseif command == "POSE" then
- if posecounter == 0 then
- currentdialogue = {"......\nCan you...stop?."}
- BattleDialog({"You posed dramatically.\nAltair cringes at you."})
- elseif posecounter == 1 then
- currentdialogue = {"Dude, seriously. \nStop.\nIf you stop,\nI'll give you 50g."}
- BattleDialog({"You posed even more.\nAltair is dying inside"})
- elseif posecounter == 2 then
- currentdialogue = {"Can you please stop now?"}
- BattleDialog({"You posed once more.\nAltair has given you 50g"})
- elseif posecounter == 3 then
- currentdialogue = {"How do you\nlike that?\nMaybe that'll \nget you to \nstop."}
- BattleDialog({"You pose in victory.\nAltair became annoyed and took 100g from you."})
- else
- currentdialogue = {"....\nAre you done now?."}
- BattleDialog({"You posed angrily at him."})
- end
- posecounter = posecounter + 3
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement