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 = {"Voce sente como se estivesse\nsendo enterrado vivo.", "Voce comeca a pensar\nno que voce fez...", "Ler isso nao parece ser o\nmelhor uso do seu tempo", "Apenas desmonetize ele!", "Ervilhas voam pelo ar!"}
- commands = {"Check", "Amigos", "Desmotivar"}
- randomdialogue = {""}
- sprite = "Peashooter-5" --Always PNG. Extension is added automatically.
- name = "Pea"
- hp = 120
- atk = 2
- def = 4
- dialogbubble = "right" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = false
- local a = 1
- local b = 1
- local attacks = GetGlobal("attacks")
- local serious = GetGlobal("serious")
- local dial = {"[func:SetSprite, Peashooter-6][effect:none][font:sans][voice:peashooter_voice]Que? N-\nao sabia\nque plantas\npodem\nse mover?[func:Progress][w:6]", "[effect:none][func:SetSprite, Peashooter-36][font:sans][voice:peashooter_voice]Pelo\nvisto nao.[func:Progress]", "[effect:none][func:SetSprite, Peashooter-44][font:sans][voice:peashooter_voice]Depois\nque eu vi\no que vo-\n-ce fez[func:Progress]", "[effect:none][func:SetSprite, Peashooter-44][font:sans][voice:peashooter_voice]com\no Dispar e\no Arthur eu\ndeveria\nter te impedido![func:Progress]", "[effect:none][func:SetSprite, Peashooter-50][font:sans][voice:peashooter_voice]Voce\nnao con-\nsegue\nentender[func:Progress]", "[effect:none][font:sans][voice:peashooter_voice]perder\npessoas\nque voce\nse importa.[func:Progress]", "[effect:none][func:SetSprite, Peashooter-1][font:sans][voice:peashooter_voice]afinal...\nnimguem\ngosta de\nvoce.[func:Progress]", "[effect:none][func:SetSprite, Peashooter-36][font:sans][voice:peashooter_voice]Falando\nsobre meus\nirmaos...[func:Progress]", "[w:5][func:SetSprite, Peashooter-5][noskip][func:Memories][next]", "[w:5][func:SetSprite, Peashooter-5][noskip][func:MemoriesOver][next]", "[w:5][func:SetSprite, Peashooter-5][noskip][func:SparePlayer][next]"}
- local dial2 = {"[func:SetSprite, Peashooter-1][effect:none][font:sans][voice:peashooter_voice]Esta\nfeliz com\ntudo\nisso?[func:Progress][w:6]", "[effect:none][func:SetSprite, Peashooter-38][font:sans][voice:peashooter_voice]Milhares\nde so-\nnhos e\nesperancas...[func:Progress]", "[effect:none][func:SetSprite, Peashooter-40][font:sans][voice:peashooter_voice]Destru-\nidos![func:Progress]", "[effect:none][func:SetSprite, Peashooter-40][font:sans][voice:peashooter_voice]Por qual\nrazao?[func:Progress]", "[effect:none][func:SetSprite, Peashooter-50][font:sans][voice:peashooter_voice]Por nao\nfazerem\nconteudo\nsem criatividade?[func:Progress]", "[func:SetSprite, Peashooter-34][effect:none][font:sans][voice:peashooter_voice]Afinal,\nsabemos\nbem o\nque e\no Shorts.[func:Progress]", "[effect:none][func:SetSprite, Peashooter-1][font:sans][voice:peashooter_voice]Nao e?.[func:Progress]", "[effect:none][func:SetSprite, Peashooter-4][font:sans][voice:peashooter_voice]Voce\nnao se\nimporta\ncom seus\nusuarios![func:Progress]", "[w:5][func:SetSprite, Peashooter-50][noskip][next]", "[w:5][func:SetSprite, Peashooter-5][noskip][func:MemoriesOver][next]", "[w:5][func:SetSprite, Peashooter-5][noskip][func:SparePlayer][next]"}
- -- Happens after the slash animation but before
- function HandleAttack(attackstatus)
- local actions = GetGlobal("actions")
- local serious = GetGlobal("serious")
- if attackstatus == -1 then
- SetGlobal("actions",true)
- elseif serious == false then
- if actions == false then
- currentdialogue = dial[a]
- a = a + 1
- if serious == true and actions == false then
- currentdialogue = dial2[b]
- b = b + 1
- end
- end
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "CHECK" then
- SetGlobal("actions",true)
- if atk == 2 then
- BattleDialog({"Pea 2 ATK 4 DEF \nApenas atira uma ervilha por vez.", "Seus velhos truques nao vao \nfuncionar para sempre!\nContinue atacando!"})
- currentdialogue = {""}
- elseif atk == 4 then
- BattleDialog({"Pea 4 ATK 3 DEF \nApenas atira uma ervilha por vez.", "A sua forca aumentou.\nIsso nao ira o ajudar!"})
- currentdialogue = {""}
- elseif atk == 8 then
- BattleDialog({"Pea 8 ATK 2 DEF \nApenas atira uma ervilha por vez.", "Sua defesa esta abaixando!\nSe prepare!"})
- currentdialogue = {""}
- elseif atk == 10 then
- BattleDialog({"Pea 10 ATK 1 DEF \nApenas atira uma ervilha por vez.", "A sua forca e imensa!\nTome cuidado!"})
- currentdialogue = {""}
- end
- elseif command == "AMIGOS" then
- SetGlobal("actions",true)
- if atk == 2 then
- BattleDialog({"Voce diz a Pea que seus\namigos morreram por nada.\nO ATK de Pea aumentou!"})
- currentdialogue = {"[voice:peashooter_voice][font:sans][func:SetSprite, Peashooter-40]Voce\nesta\nerrado![w:5][func:DialogueReturn]"}
- atk = 4
- elseif atk == 4 then
- BattleDialog({"Voce diz a Pea que seus\nirmaos eram fracos.\nO ATK de Pea aumentou!"})
- currentdialogue = {"[voice:peashooter_voice][font:sans][func:SetSprite, Peashooter-40]Eles\neram\npessoas\nmelhores\nque\nvoce![w:5][func:DialogueReturn]"}
- atk = 8
- elseif atk == 8 then
- BattleDialog({"Voce debocha dos\namigos de Pea.\nO ATK de Pea aumentou!"})
- currentdialogue = {"[voice:peashooter_voice][font:sans][func:SetSprite, Peashooter-34]O que\nfoi que\nvoce\ndisse!?[w:5][func:DialogueReturn]"}
- atk = 10
- elseif atk == 10 then
- BattleDialog({"Parece que ele esta\nno seu limite..."})
- currentdialogue = {"[voice:peashooter_voice][font:sans][func:SetSprite, Peashooter-40]...[w:5][func:DialogueReturn]"}
- end
- elseif command == "DESMOTIVAR" then
- SetGlobal("actions",true)
- if atk == 10 then
- BattleDialog({"Voce diz a Pea que seus\nirmaos o esperam.\nO ATK de Pea abaixou um pouco!"})
- currentdialogue = {"[voice:peashooter_voice][font:sans][func:SetSprite, Peashooter-40]...[w:5][func:DialogueReturn]"}
- atk = 8
- elseif atk == 4 then
- BattleDialog({"Voce diz a Pea que ele ira se\nreencontrar com Girassol logo...\nO ATK de Pea abaixou muito!"})
- currentdialogue = {"[voice:peashooter_voice][font:sans][func:SetSprite, Peashooter-44]...[w:5][func:DialogueReturn]"}
- atk = 2
- elseif atk == 6 then
- BattleDialog({"Voce diz a Pea que ele e fraco\ncomo os seus irmaos...\nO ATK de Pea abaixou um pouco!"})
- currentdialogue = {"[voice:peashooter_voice][font:sans][func:SetSprite, Peashooter-44]...[w:5][func:DialogueReturn]"}
- atk = 4
- elseif atk == 8 then
- BattleDialog({"Voce diz a Pea que ele sera\ndesmonetizado facilmente...\nO ATK de Pea abaixou um pouco!"})
- currentdialogue = {"[voice:peashooter_voice][font:sans][func:SetSprite, Peashooter-46]...[w:5][func:DialogueReturn]"}
- atk = 4
- elseif atk == 2 then
- BattleDialog({"Ele nao parece se\nimportar com isso..."})
- currentdialogue = {"[voice:peashooter_voice][font:sans][func:SetSprite, Peashooter-50]...[w:5][func:DialogueReturn]"}
- end
- end
- end
- end
- function OnDeath()
- local isDead = GetGlobal("isDead")
- if hp <= 0 then
- hp = 1
- SetGlobal("isDead", true)
- end
- -- code goes here
- end
- function LaunchMusic()
- Audio.Unpause(megalovania)
- end
- function StopMusic()
- Audio.Pause()
- end
- function Memories()
- SetGlobal("memories",1)
- comments = {"Nao..."}
- end
- function MemoriesOver()
- SetGlobal("memories",0)
- comments = {"..."}
- end
- function SparePlayer()
- SetGlobal("sparing",1)
- canspare = true
- currentdialogue = {"[func:SetSprite, Peashooter-24][noskip][font:sans][voice:peashooter_voice][effect:none]Vamos parar\ncom a\nluta ok?"}
- def = -9999
- randomdialogue = {"[func:SetSprite, Peashooter-51][noskip][font:sans][voice:peashooter_voice][effect:none]..."}
- comments = {"Pea esta te poupando."}
- name = "[starcolor:ffff00][color:ffff00]Pea" --makes the name yellow to fool player
- end
- function OnSpare()
- if GetGlobal("sparing") == 1 then
- currentdialogue = {"[func:SetSprite, Peashooter-51][font:sans][voice:peashooter_voice][effect:none]...", "[font:sans][voice:peashooter_voice][func:SetSprite, Peashooter-7][effect:none]Voce\nta me\npoupando?", "[font:sans][effect:none][voice:peashooter_voice][func:SetSprite, Peashooter-25]Bem isso\nfoi\ninesper-\nado.", "[font:sans][voice:peashooter_voice][func:SetSprite, Peashooter-27][effect:none]De\nqualquer\nforma.\n[w:5]Estava\nna hora.", "[font:sans][voice:peashooter_voice][effect:none]De uma\nmudanca...", "[font:sans][voice:peashooter_voice][func:SetSprite, Peashooter-51][effect:none]De coracao.", "[font:sans][voice:peashooter_voice][func:SetSprite, Peashooter-49][effect:none]Vamos\ngravar\num Ask\nPea juntos!", "[font:sans][voice:peashooter_voice][func:SetSprite, Peashooter-23][effect:none]Vai\nser\ndivertido![w:3]\nJunto\ncom...", "[font:sans][voice:peashooter_voice][func:SetSprite, Peashooter-35][effect:none]OS\nMEUS\nAMIGOS!"} -- replace with what you want the enemy to say
- end
- end
- function Progress()
- attacks = attacks + 1
- end
- function AngerMusic()
- Audio.LoadFile("megalobrainiac")
- Audio.Play(megalobrainiac)
- end
- function Ding()
- Audio.PlaySound("ding")
- end
- function Serious()
- local serious = GetGlobal("serious")
- SetGlobal("serious", true)
- end
- function Memories2()
- SetGlobal("memories",2)
- comments = {"Petalas douradas\nfluem com a brisa..."}
- end
- function DialogueReturn()
- local actions = GetGlobal("actions")
- SetGlobal("actions", false)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement