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 = {"Smells like the work\rof an enemy stand.", "Eye of Cthulhu is staring at you.", "Poseur's limbs shouldn't be\rmoving in this way."}
- commands = {"Stare", "Eye drops"}
- autolinebreak = true
- Staremessages = {{"You want to see who will\rblink first, get ready to lose."}, {"He stares back at you"},{"You question if it doesn't hurt,\rbecause he always has his eye open"}}
- currentstare = 1
- Staredialogue = {{"Why are\nyou staring\nat me."}, {"What are\nyou trying\nto do"}, {"yes, a little"}}
- currentstaredialogue = 1
- Eyedropsmessages = {{"You put eye drops in\nhis eye."}, {"You put eye drops in his eye again.[func:Spare] [func:Return]"}, {"You put eye drops in\nhis eye." ,"Eye of Cthulhu ATTACK Increased!\nEye of Cthulhu DEFENSE Increased![func:Increase]"}}
- currenteyedrops = 1
- Eyedropsdialogue = {{"What are you doing? [func:Return]"},{"WHAT DID YOU DO?"}}
- Currenteyedropsdialogue = 1
- function Spare()
- canspare = true
- end
- function Return()
- currenteyedrops = 2
- Currenteyedropsdialogue = 1
- end
- function Increase()
- def = def + 5
- atk = atk + 5
- end
- sprite = "Eye_of_CthulhuHitbox" --Always PNG. Extension is added automatically.
- name = "Eye of Cthulhu"
- hp = 400
- atk = 1
- def = 2
- check = "Doesn't it know it's rude\rto stalk someone?"
- dialogbubble = "right" -- 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
- if hp <= maxhp/4 then
- SetGlobal("SetSprite", 1)
- SetGlobal("phase", 1.5)
- def = def + 50
- end
- currenteyedrops = 3
- Currenteyedropsdialogue = 2
- end
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "STARE" then
- BattleDialog(Staremessages[currentstare])
- if currentstare < #Staremessages then
- currentstare = currentstare + 1
- end
- currentdialogue = (Staredialogue[currentstaredialogue])
- if currentstaredialogue < #Staredialogue then
- currentstaredialogue = currentstaredialogue + 1
- end
- elseif command == "EYE DROPS" then
- BattleDialog(Eyedropsmessages[currenteyedrops])
- if currentstare > #Eyedropsmessages then
- currenteyedrops = currentstare - 1
- end
- currentdialogue = (Eyedropsdialogue[Currenteyedropsdialogue])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement