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 = {"Chara bloquea el camino!"}
- commands = {"Checar", "Informacion", "Hablar", "Insultar"}
- randomdialogue = nil
- sprite = "blank" --Always PNG. Extension is added automatically.
- name = "Chara"
- hp = 900
- atk = 1
- def = -5
- check = "Check message goes here."
- dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = false
- talk = 0
- hablar = 0
- golpes = 0
- SetGlobal('fightcounter', 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
- SetGlobal('fightcounter', GetGlobal('fightcounter') + 1)
- SetSprite("hurtchara")
- talk = talk + 1
- golpes = golpes + 1
- if talk == 1 then
- currentdialogue = {"[voice:v_sschara][func:SetSprite,blank]Asi que prefieres\nir de esta manera?","[voice:v_sschara]Entonces,[w:5]\npresencia mi ATAQUE\nESPECIAL!"}
- Audio.Stop("knifetrousle")
- elseif talk == 2 then
- currentdialogue = {"[noskip][voice:v_sschara][func:SetSprite,blank]Veo que has resistido\nmi [w:10]uhh... [w:10]ATAQUE\nMAS DEBIL!!","[noskip][voice:v_sschara]JAJAJAJ![w:5]\nPENSABAS QUE ESE\nERA MI\nATAQUE MAS\nFUERTE!?","[voice:v_sschara][noskip]PUES NO! QUE\nEMPIEZE LA\nBATALLA![w:5][func:StartSong]"}
- end
- end
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "CHECAR" then
- BattleDialog({"CHARA [w:10]15 ATK [w:10]15 DEF [w:10]\nEl rey de los cuchillos!","En verdad no te quiere matar,[w:10]\rpero ten cuidado con esos\rcuchillos!"})
- elseif command == "INFORMACION" then
- BattleDialog({"La batalla esta en desarrollo.","El creador es: xZetillaX", "Comenta tu opinion en mi post\rde Reddit."})
- elseif command == "HABLAR" then
- hablar = hablar + 1
- if hablar == 1 then
- BattleDialog({"Hablas con Chara.","Nada paso."})
- elseif hablar == 2 then
- BattleDialog({"Vuelves a hablar","Se te ocurre algo..."})
- elseif hablar == 3 then
- if golpes >= 1 then
- BattleDialog({"Hablas... [w:10]otra vez.","Ya lo sabes! Te preparas y..."})
- currentdialogue = {"U-una cita!?","C-claro... Pero\nespera que esta pelea\ntermine!"})
- elseif golpes <= 1 then
- BattleDialog({"Hablas... [w:10]otra vez.","Ya lo sabes! Te preparas y..."})
- currentdialogue = {"U-una cita!?","C-claro... Pero todavia\nno!"})
- end
- end
- end
- end
- function StartSong()
- Audio.Play("knifetrousle")
- end
Add Comment
Please, Sign In to add comment