Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. -- A basic encounter script skeleton you can copy and modify for your own creations.
  2.  
  3. -- music = "shine_on_you_crazy_diamond" --Always OGG. Extension is added automatically. Remove the first two lines for custom music.
  4. encountertext = "The class begins!" --Modify as necessary. It will only be read out in the action select screen.
  5. nextwaves = {"Start_Attack"}
  6. wavetimer = 99999
  7. arenasize = {155, 130}
  8. flee = false
  9. Turn = 0
  10. SetGlobal("Stop",false)
  11. SetGlobal("Stop2",false)
  12.  
  13. enemies = {
  14. "Enemy"
  15. }
  16.  
  17. enemypositions = {
  18. {0, 0}
  19. }
  20.  
  21. -- A custom list with attacks to choose from. Actual selection happens in EnemyDialogueEnding(). Put here in case you want to use it.
  22. easy = {"SpikeFall","SpikeWall","Turn90","SpikeShower"}
  23. normal = {"360Spike","SpikeSpin","Splice"}
  24. hard = {"Copy90","FullCover","SpeedSpike"}
  25. super_hard = {"CutCutCut","FastThrow"}
  26. possible_attacks = {"Start_Attack"}
  27.  
  28. function EncounterStarting()
  29. require "Libraries/FPSWaves"
  30. Inventory.AddCustomItems({"SchoolLun","Apple","LegChoco","BubbleGum"}, {0,0,0,0})
  31. Inventory.SetInventory({"SchoolLun","SchoolLun","SchoolLun","BubbleGum","Apple","LegChoco"})
  32. Audio.LoadFile("Nothing")
  33. Audio.Volume(0)
  34. Audio.Pitch(1)
  35. 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?"})
  36. State("ENEMYDIALOGUE")
  37. -- If you want to change the game state immediately, this is the place.
  38. end
  39. function Update()
  40. FPS()
  41. --Player.ForceHP(99999)
  42. SetGlobal("turn",Turn)
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement