Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return function(newENV)
- _ENV = newENV
- ----- DO NOT MODIFY ABOVE -----
- -- A basic Enemy Entity script skeleton you can copy and modify for your own creations.
- comments = { "Proceed..." }
- commands = { "Check", "Taunt", "Console" }
- randomdialogue = { ". . ." }
- AddAct("Check", "", 0)
- AddAct("Taunt", "", 0)
- AddAct("Console", "", 0)
- Tauntcount = 0
- Consolecount = 0
- name = "Noelle"
- hp = 500
- atk = 10
- def = 50000
- dialogbubble = "DRBubble" -- See documentation for what bubbles you have available.
- canspare = false
- check = "Check message goes here."
- -- CYK variables
- mag = 9001 -- MAGIC stat of the enemy
- targetType = "single" -- Specifies how many (or which) target(s) this enemy's bullets will target
- -- Check the "Special Variables" page of the documentation to learn how to modify this mess
- animations = {
- Hurt = { { 0 }, 1 , { next = "Idle" } },
- Idle = { { 0, 1, 2, 3, 4 }, 1 / 5, { } },
- Sad = { { 0, 1, 2, 3, 4 }, 1 / 5, { } },
- Angry = { { 0, 1, 2, 3, 4 }, 3, { } },
- }
- -- Triggered when a Player attacks (or misses) this enemy in the ATTACKING state
- function HandleAttack(attacker, attackstatus)
- if attackstatus == -1 then
- -- Player pressed fight but didn't press Z afterwards
- else
- -- Player did actually attack
- canspare = false
- end
- end
- -- Triggered when a Player uses an Act on this enemy.
- -- You don't need an all-caps version of the act commands here.
- function HandleCustomCommand(user, command)
- local text = { "help" }
- if command == "Check" then
- BattleDialog({"Noelle\nAttack: 100\nDefence: ?", "A monster you created..."})
- elseif command == "Taunt" then
- Tauntcount = Tauntcount + 1
- if Tauntcount == 1 then
- BattleDialog({"You remind Noelle of Birldy's frozen corpse." })
- elseif Tauntcount == 2 then
- BattleDialog({"You remind Noelle that SHE, killed Catty." })
- currentdialogue = {"[voice:v_noelle]I-I, No!"}
- elseif Tauntcount == 3 then
- BattleDialog({"You remind Noelle about Snowgrave, and the death of Ralsei." })
- currentdialogue = {"[voice:v_noelle]Stop it Kris!"}
- elseif Tauntcount == 4 then
- BattleDialog({"You remind Noelle about Susie's murder by her hands..." })
- Audio.stop()
- currentdialogue = {"[voice:v_noelle]...Susie...", "[voice:v_noelle]Kris, [w:10]what did you make me do!?"}
- elseif Tauntcount == 5 then
- BattleDialog({"You tell Noelle you enjoyed watching the life drain from Susies eyes as Noelle froze her." })
- currentdialogue = {"[voice:v_noelle]I... no! I-I Wouldn't do that!"}
- elseif Tauntcount == 6 then
- SetCYKAnimation("Angry")
- BattleDialog({"You tell Noelle Susie was fun to slaughter.", "She seems unphazed." })
- currentdialogue = {"[voice:v_noelle]I'm... I'm going to Proceed Kris.", "[voice:v_noelle]I'll make your death quick!"}
- Audio.LoadFile("Proceeding")
- nextwaves = {"SnowTarget"}
- Proceeding.SetVar("Pissedoff", true)
- elseif Tauntcount == 7 then
- BattleDialog({"She isn't listening..." })
- currentdialogue = {"[voice:v_noelle]I'm... so sorry...!"}
- end
- elseif command == "Console" then
- Consolecount = Consolecount + 1
- if Consolecount == 1 then
- BattleDialog({"You apologize to Noelle for making her comit multiple murders." })
- elseif Consolecount == 2 then
- BattleDialog({"You say that your going to set things right." })
- currentdialogue = {"[voice:v_noelle]. . ."}
- elseif Consolecount == 3 then
- BattleDialog({"You tell Noelle that your going to bring everyone back." })
- currentdialogue = {"[voice:v_noelle]. . ."}
- elseif Consolecount == 4 then
- BattleDialog({"You tell Noelle that your going to fix your mistake" })
- currentdialogue = {"[voice:v_noelle]. . ."}
- elseif Consolecount == 5 then
- BattleDialog({"You tell Noelle that she's going to see susie again." })
- currentdialogue = {"[voice:v_noelle]. . ."}
- Audio.stop()
- SetCYKAnimation("Sad")
- elseif Consolecount == 6 then
- BattleDialog({"You tell Noelle that your [w:10]S[w:10]O[w:10]R[w:10]R[w:10]Y" })
- currentdialogue = {"[voice:v_noelle]Kris...", "[voice:v_noelle]If...[w:15]\nYour telling the truth...", "[voice:v_noelle]Then please...", "[voice:v_noelle]I just wan't to see her again..."}
- canspare = true
- end
- end
- end
- ----- DO NOT MODIFY BELOW -----
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement