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 knives.", "Chara is laughing...\rlike a maniac.", "Doesn't seem like you can\rbeat Chara...\r* But you have DETERMINATION"}
- commands = {"Intimidate", "Call", "Stick", "Joke"}
- randomdialogue = {"HA HA\nHA HA!", "Just die\nalready!", "You\ncan't survive!"}
- sprite = "poseur" --Always PNG. Extension is added automatically.
- name = "Chara"
- hp = 300
- atk = 3
- def = 1
- check = "Chara is here to take control\rof your body..."
- 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
- end
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "INTIMIDATE" then
- BattleDialog = ({"You flick your hair...\rGood job... \rYou didn't intimidate Chara at all."})
- elseif command == "CALL" then
- BattleDialog = ({"You called for help...\rBut nobody came..."})
- elseif command == "STICK" then
- BattleDialog = ({"You threw a stick...\rChara slices it in half mid-air..."})
- elseif command == "JOKE" then
- BattleDialog = ({"You told a joke... Just like sans...\rChara seems disapointed..."})
- end
- BattleDialog({"You selected " .. command .. "."})
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement