Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- comments = {"What have you done.", "It's all over now.", "Sonic shouldn't be acting like\rthis.", "He is god now.", "Have you learned your\rlesson?"}
- commands = {"Plead", "Apologise", "Offer"}
- randomdialogue = {"Stop trying.", "I gave up\nlong ago.", "End this all\nand my job\nwill be a lot\neasier."}
- sorry = 0
- peace = 0
- screams = 0
- spare = 0
- anger = 0
- sprite = "exe" --Always PNG. Extension is added automatically.
- name = "Sonic"
- hp = 666
- atk = 6
- def = 6
- check = "Monster."
- dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = true
- function enemyspare()
- BattleDialogue = {"Sonic is giving up."}
- canspare = true
- check = "He gave up on you."
- end
- -- Happens after the slash animation but before
- function HandleAttack(attackstatus)
- if attackstatus == -1 then
- if spare == 0 then
- currentdialogue = {"Did younrpurposefuly\ndo that?!"}
- spare = spare + 1
- elseif spare == 1 then
- currentdialogue = {"Stop being so nice."}
- spare = spare + 1
- elseif spare == 2 then
- currentdialogue = {"No."}
- enemyspare()
- end
- end
- end
- else
- if sorry == 1 then
- currentdialogue = {"Why must you\rapologise\rand then\rtrick me?!"}
- elseif anger == 2 then
- currentdialogue = {"I hate you."}
- anger = anger + 1
- elseif anger == 3 then
- currentdialogue = {"I've had enough\rof you."}
- enemyspare()
- end
- end
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "Plead" then
- if screams == 0 then
- BattleDialogue = {"In Hell, nobody can\rhear your screams."}
- currentdialogue = {"Don't bother trying."}
- screams = screams + 1
- elseif screams == 1 then
- BattleDialogue = {"You are in Hell.\nYou are silent."}
- currentdialogue = {"You'll be helped\rwhen I die.\nNever."}
- screams = screams + 1
- elseif screams == 2 then
- BattleDialogue = {"Stop."}
- currentdialogue = {"You can't."}
- spare = spare + 1
- elseif anger == 1 then
- BattleDialogue = {"What have you done."}
- currentdialogue = {"You monster.."}
- elseif command == "Apologise" then
- BattleDialogue = {"You apologise to Sonic for\rwhat you have done to\rhis friends."}
- BattleDialogue = {"You cannot be forgiven."}
- currentdialogue = {"Learn from your\rmistakes and\rjust DIE"}
- anger = anger + 1
- sorry = sorry + 1
- elseif command == "Offer" then
- BattleDialogue = {"You offer Sonic\ryour own life."}
- currentdialogue = {"Your life is\rworth\rn o t h i n g."}
- peace = peace + 1
- spare = spare + 1
- anger = anger + 1
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement