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 = {"[effect:shake,1][color:fca600][speed:0.50]Lets Melt This Place."}
- commands = {"Save","Grab Icicle"}
- randomdialogue = {"[color:42fcff][func:SetSprite,glizzface]Heh Take This.","[color:42fcff]Hmph","[color:d535d9][func:SetSprite,glizzface1]Yare Yare Daze"}
- SetGlobal("Phase2", false)
- SetGlobal("Phase2Dialogue", false)
- iciclecounter = 0
- sprite = "glizz" --Always PNG. Extension is added automatically.
- name = "Glizz"
- hp = 200
- atk = 1
- def = 1
- check = "[speed:0.50][color:42fcff]The Icy Attacker!!."
- dialogbubble = "right" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = true
- -- 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
- if hp < 100 then
- local Phase2 = GetGlobal("Phase2")
- if Phase2 == false then
- def = 2
- end
- if hp < 50 then
- local Phase2 = GetGlobal("Phase2")
- if Phase2 == false then
- Phase2 = true
- end
- if Phase2 == true then
- Audio.Stop()
- SetSprite("glizzhurt1")
- hp = 200
- def = 6
- check = "He's not playing anymore..."
- currentdialogue = {"[speed:0.50][color:42fcff][func:SetSprite,glizzhurt2]Heh", "[speed:0.50][color:42fcff][func:SetSprite,glizzhurt3]So This it ", "[effect:shake,1][speed:0.25][color:ff0000][func:SetSprite,glizzhurt4]Already Bleeding", "[speed:0.25][color:ff0000][func:SetSprite,glizzhurt5]But Who Said I Was Losing", "[effect:shake,1][speed:0.05][color:ff0000][func:SetSprite,glizzhurt]GET READY"}
- local Phase2Dialogue = GetGlobal("Phase2Dialogue")
- if Phase2Dialogue == false then
- Phase2Dialogue = true
- end
- local Phase2 = GetGlobal("Phase2")
- if Phase2 == true then
- Phase2 = false
- end
- if Phase2Dialogue == true then Audio.LoadFile("Loop 1 Phase 3")
- randomdialogue = {"[color:ff0000]DIE."}
- end
- end
- end
- end
- end
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "SAVE" then
- currentdialogue = {"[color:42fcff]WAIT WHAT"}
- BattleDialog({"[color:ffff00][health:5]You Saved."})
- elseif command == "GRAB ICICLE" then
- currentdialogue = {"[color:42fcff]That looks like it hurts"}
- BattleDialog({"[health:-10]You Grabbed An Icicle[w:10]\n It Stings"})
- Player.atk = Player.atk + 10
- end
- iciclecounter = iciclecounter + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement