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 = {"Am I working.", "Try switching it off and back on.", "The PC is overheating."}
- commands = {"Encourage", "Reset", "Turn Off"}
- randomdialogue = {"Random\nDialogue\n1.", "Random\nDialogue\n2.", "Random\nDialogue\n3."}
- autolinebreak = true
- sprite = "poseur" --Always PNG. Extension is added automatically.
- name = "Poseur"
- hp = 100
- atk = 15
- def = 5
- check = "Specs: Core i5, No GPU, Faulty Motherboard, Corrupted Hard Drive."
- dialogbubble = "right" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = true
- actcounter = 0
- function HandleCustomCommand(command)
- if command == "Reset" then
- if actcounter < 3 then
- actcounter = actcounter + 1
- elseif actcounter == 3 then
- canspare = true
- end
- BattleDialog({"You acted.\nAct number "..actcounter})
- end
- end
- posecounter = 0
- -- 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 == "ENCOURAGE" then
- currentdialogue = {"The Computer wont boot."}
- BattleDialog({"You try to encourage the pc to boot."})
- elseif command == "POWER OFF" then
- currentdialogue = {"The computer switches on even though its been switched off\n."}
- elseif command == "RESET" then
- if posecounter == 0 then
- currentdialogue = {"What are you doing"}
- Battledialog({"You reset but nothing happens"})
- elseif posecounter == 1 then
- currentdialogue = {"Are you sure youre doing the right thing"}
- Battledialog({"You try to reset it again... nothing happens"})
- elseif posecounter == 2 then
- currentdialogue = {"Nice try"}
- Battledialog({"Maybe try something else"})
- elseif posecounter == 3 then
- currentdialogue = {"You know Einstein said once “The definition of insanity is doing the same thing over and over again, but expecting different results.”"}
- Battledialog({"Try POWERing it OFF"})
- elseif posecounter == 4 then
- currentdialogue = {"You're really trying to reset me arent you"}
- Battledialog({"JUST PRESS THE POWER OFF BUTTON"})
- else
- currentdialogue = {"You know what Im tired, and I give up. You win"}
- Battledialog({"I agree, just do us all a favour and press the SPARE button... Lemme guess you dont know where that is either... I QUIT"})
- canspare = true
- end
- posecounter = posecounter + 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement