Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- A basic encounter script skeleton you can copy and modify for your own creations.
- -- music = "shine_on_you_crazy_diamond" --Always OGG. Extension is added automatically. Remove the first two lines for custom music.
- encountertext = "The class begins!" --Modify as necessary. It will only be read out in the action select screen.
- nextwaves = {"Start_Attack"}
- wavetimer = 99999
- arenasize = {155, 130}
- flee = false
- Turn = 0
- SetGlobal("Stop",false)
- SetGlobal("Stop2",false)
- enemies = {
- "Enemy"
- }
- enemypositions = {
- {0, 0}
- }
- -- A custom list with attacks to choose from. Actual selection happens in EnemyDialogueEnding(). Put here in case you want to use it.
- easy = {"SpikeFall","SpikeWall","Turn90","SpikeShower"}
- normal = {"360Spike","SpikeSpin","Splice"}
- hard = {"Copy90","FullCover","SpeedSpike"}
- super_hard = {"CutCutCut","FastThrow"}
- possible_attacks = {"Start_Attack"}
- function EncounterStarting()
- require "Libraries/FPSWaves"
- Inventory.AddCustomItems({"SchoolLun","Apple","LegChoco","BubbleGum"}, {0,0,0,0})
- Inventory.SetInventory({"SchoolLun","SchoolLun","SchoolLun","BubbleGum","Apple","LegChoco"})
- Audio.LoadFile("Nothing")
- Audio.Volume(0)
- Audio.Pitch(1)
- enemies[1].SetVar('currentdialogue', {"Ok...","Umm...[w:20]Frisk...","Today's class is\ngoing to be a little\ndifferent.","Undyen had to do\nsomething[w:20], so she\ncouldn't come in.","Something about\ncooking...Papyrus.","Maybe hospital...","But[w:10], that doesn't\nmatter...","Either way[w:15], Undyen\nentrusted me with\nyour leason today.","Since you want to be\npart of the new\nroyal guard like I am[w:20],\nright.","I guess that makes\nme a substitute\nteacher.","SO!","...","I am first going to\nsee were you are\nnow.","Then we can start\nwith the real leason...","Just try your best\nat doging my\nattacks.","Oh![w:10] Almost forgot!","I will only be using\nthe simplest from of\nmagic[w:25]: a tiny spike.","Ok, are you ready?"})
- State("ENEMYDIALOGUE")
- -- If you want to change the game state immediately, this is the place.
- end
- function Update()
- FPS()
- --Player.ForceHP(99999)
- SetGlobal("turn",Turn)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement