Advertisement
NonEuclideanCat

Initialize.txt

Dec 15th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 KB | None | 0 0
  1. // ********
  2. // * DECK *
  3. // ********
  4.  
  5. // Instructions
  6. // This file should be imported by every deck as it contains temporary/permanent scripts for running those decks.
  7.  
  8. // Description
  9. // This file is necessary to set the appropriate starting cards for all decks
  10. // It also contains standardized or experimental versions of cards to insert into decks
  11.  
  12. // Set Points
  13. OnLoad
  14. {
  15. SetCounter({ Set = "GENERAL", Name = "SUPPLY", Amount = 10 })
  16. }
  17.  
  18. // Cycle the decks starting powers
  19.  
  20. OnLoad
  21. {
  22. SetRandomFlagTrue({ Name = "DeckOption1", Name = "DeckOption2", Name="DeckOption3", Name="DeckOption4" })
  23. }
  24.  
  25. OnFlagTrue DeckOption1
  26. {
  27. startingCard = 1
  28. }
  29.  
  30. OnFlagTrue DeckOption2
  31. {
  32. startingCard = 2
  33. }
  34.  
  35. OnFlagTrue DeckOption3
  36. {
  37. startingCard = 3
  38. }
  39.  
  40. OnFlagTrue DeckOption4
  41. {
  42. startingCard = 4
  43. }
  44.  
  45. // Re-shuffle deck on death
  46. // does not work with OnPlayerDeath for some reason
  47.  
  48. OnLoad
  49. {
  50.  
  51. function NewDeckVariation()
  52.  
  53. if activeDeck == "Builder" then
  54. DeckBuilder(startingCard)
  55. elseif activeDeck == "Scrapper" then
  56. DeckScrapper(startingCard)
  57. elseif activeDeck == "Sniper" then
  58. DeckSniper(startingCard)
  59. elseif activeDeck == "Randomizer" then
  60. DeckRandomizer(startingCard)
  61. elseif activeDeck == "Puller" then
  62. DeckPuller(startingCard)
  63. elseif activeDeck == "Blaster" then
  64. DeckBlaster(startingCard)
  65. elseif activeDeck == "Stalker" then
  66. DeckStalker(startingCard)
  67. elseif activeDeck == "Drainer" then
  68. DeckDrainer(startingCard)
  69. elseif activeDeck == "Summoner" then
  70. DeckSummoner(startingCard)
  71. elseif activeDeck == "Custom" then
  72. DeckCustom(startingCard)
  73. elseif activeDeck == "All" then
  74. DeckAll(startingCard)
  75. else
  76. DisplayInfoPanelText({ Name = "Could Not Shuffle" })
  77. end
  78.  
  79. end
  80.  
  81. }
  82. OnPlayerLifeLost
  83. {
  84. if startingCard < 4 then
  85. startingCard = startingCard + 1
  86. elseif startingCard >= 4 then
  87. startingCard = 1
  88. end
  89.  
  90. SetFlagTrue({ Name = "PlayerLifeLost" })
  91. playerLifeLost = true
  92.  
  93. }
  94.  
  95. OnKeyPressed None Escape ; RequiredFlag = PlayerLifeLost
  96. {
  97. SetFlagFalse({ Name = "PlayerLifeLost" })
  98. playerLifeLost = false
  99.  
  100. NewDeckVariation()
  101.  
  102. }
  103.  
  104. // Curse Cards
  105.  
  106. OnLoad
  107. {
  108. numCursesPlayed = 0
  109. numCursesEnemyUpgrade = 0
  110. }
  111.  
  112. OnCardPlayed Curse_Test
  113. {
  114. numCursesPlayed = numCursesPlayed + 1
  115.  
  116. if numCursesPlayed == 1 then
  117. Teleport({ Name = "Curse1", DestinationName = "Player", OffsetX = 150, OffsetY = 150, Delay = 1.0 })
  118.  
  119. elseif numCursesPlayed == 2 then
  120. Teleport({ Name = "Curse2", DestinationName = "Player", OffsetX = 150, OffsetY = 150, Delay = 1.0 })
  121.  
  122. elseif numCursesPlayed == 3 then
  123. Teleport({ Name = "Curse3", DestinationName = "Player", OffsetX = 150, OffsetY = 150, Delay = 1.0 })
  124. else
  125.  
  126. end
  127. }
  128.  
  129. // Drops Cards
  130.  
  131. OnUsed Drop_Draw ; RequiredFlag = DONTWORK
  132. {
  133. CreateCard({ Name = "MetaDrawCard", Type = "DRAW", Count = 3, Cost = 0 })
  134. DrawCard({ Name = "MetaDrawCard", Type = "DRAW" })
  135. }
  136.  
  137.  
  138. OnUsed Drop_Expand
  139. {
  140. CreateCard({ Name = "MetaMaxHandSize", Type = "MAX_HAND_SIZE", Count = 1, Cost = 0 })
  141. DrawCard({ Name = "MetaMaxHandSize", Type = "MAX_HAND_SIZE", Count = 1, Cost = 0 })
  142. }
  143.  
  144.  
  145.  
  146. // Fights02 Fly/Hibernate Hacks
  147. OnLoad
  148. {
  149. Attach({ Id = 20094, DestinationName = "Player", Delay = 1.0 })
  150. }
  151.  
  152. OnWeaponFired Fly
  153. {
  154.  
  155. -- if CameraLeash == false then
  156.  
  157. Unattach({ Id = 20094 })
  158. LockCamera({ Id = 20094, Duration = 1.0 })
  159.  
  160. LockCamera({ Name = "Player", Duration = 0.5, Delay = 5.0 })
  161. Attach({ Id = 20094, DestinationName = "Player", Delay = 5.1 })
  162.  
  163. -- end
  164.  
  165. }
  166.  
  167.  
  168. OnWeaponFired Hibernate
  169. {
  170.  
  171. -- if CameraLeash == false then
  172.  
  173. Unattach({ Id = 20094 })
  174. LockCamera({ Id = 20094, Duration = 1.0 })
  175.  
  176. LockCamera({ Name = "Player", Duration = 0.5, Delay = 5.0 })
  177. Attach({ Id = 20094, DestinationName = "Player", Delay = 5.1 })
  178.  
  179. -- end
  180.  
  181. }
  182.  
  183.  
  184. OnWeaponFired AirDash
  185. {
  186.  
  187. -- if CameraLeash == false then
  188.  
  189. Unattach({ Id = 20094 })
  190. LockCamera({ Id = 20094, Duration = 1.0 })
  191.  
  192. LockCamera({ Name = "Player", Duration = 0.5, Delay = 5.0 })
  193. Attach({ Id = 20094, DestinationName = "Player", Delay = 5.1 })
  194.  
  195. -- end
  196.  
  197. }
  198.  
  199. // Wild Card Concept
  200.  
  201. OnCardPlayed MetaWildCard
  202. {
  203.  
  204. wildCardRoll = math.random(1,50)
  205. wildCardType = "WEAPON"
  206.  
  207. if wildCardRoll == 1 then
  208. wildCard = "Orb"
  209. elseif wildCardRoll == 2 then
  210. wildCard = "Missile"
  211. elseif wildCardRoll == 3 then
  212. wildCard = "Epicenter"
  213. elseif wildCardRoll == 4 then
  214. wildCard = "Nova"
  215. elseif wildCardRoll == 5 then
  216. wildCard = "Blink"
  217. elseif wildCardRoll == 6 then
  218. wildCard = "Backdash"
  219. elseif wildCardRoll == 7 then
  220. wildCard = "Storm"
  221. elseif wildCardRoll == 8 then
  222. wildCard = "Boulder"
  223. elseif wildCardRoll == 9 then
  224. wildCard = "Trap"
  225. elseif wildCardRoll == 10 then
  226. wildCard = "Trail"
  227. elseif wildCardRoll == 11 then
  228. wildCard = "Cone"
  229. elseif wildCardRoll == 12 then
  230. wildCard = "Mine"
  231. elseif wildCardRoll == 13 then
  232. wildCard = "AllyBomber"
  233. elseif wildCardRoll == 14 then
  234. wildCard = "Shrink"
  235. elseif wildCardRoll == 15 then
  236. wildCard = "Might"
  237. elseif wildCardRoll == 16 then
  238. wildCard = "Invincible"
  239. elseif wildCardRoll == 17 then
  240. wildCard = "HealSelf"
  241. elseif wildCardRoll == 18 then
  242. wildCard = "Hibernate"
  243. elseif wildCardRoll == 19 then
  244. wildCard = "Jump"
  245. elseif wildCardRoll == 20 then
  246. wildCard = "Cloudkill"
  247. elseif wildCardRoll == 21 then
  248. wildCard = "Dart"
  249. elseif wildCardRoll == 22 then
  250. wildCard = "Hose"
  251. elseif wildCardRoll == 23 then
  252. wildCard = "Novaball"
  253. elseif wildCardRoll == 24 then
  254. wildCard = "Hook"
  255. elseif wildCardRoll == 25 then
  256. wildCard = "Longshot"
  257. elseif wildCardRoll == 26 then
  258. wildCard = "Blackhole"
  259. elseif wildCardRoll == 27 then
  260. wildCard = "MachineGun"
  261. elseif wildCardRoll == 28 then
  262. wildCard = "Tag"
  263. elseif wildCardRoll == 29 then
  264. wildCard = "AllyDemolisher"
  265. elseif wildCardRoll == 30 then
  266. wildCard = "Shrapnel"
  267. elseif wildCardRoll == 31 then
  268. wildCard = "Slam"
  269. elseif wildCardRoll == 32 then
  270. wildCard = "Snare"
  271. elseif wildCardRoll == 33 then
  272. wildCard = "Lightstrike"
  273. elseif wildCardRoll == 34 then
  274. wildCard = "Drain"
  275. elseif wildCardRoll == 35 then
  276. wildCard = "Fly"
  277. elseif wildCardRoll == 36 then
  278. wildCard = "Bouncer"
  279. elseif wildCardRoll == 37 then
  280. wildCard = "Banish"
  281. elseif wildCardRoll == 38 then
  282. wildCard = "ChaosLance"
  283. elseif wildCardRoll == 39 then
  284. wildCard = "Bankshot"
  285. elseif wildCardRoll == 40 then
  286. wildCard = "Plow"
  287. elseif wildCardRoll == 41 then
  288. wildCard = "Beam"
  289. elseif wildCardRoll == 42 then
  290. wildCard = "AllyDeflector"
  291. elseif wildCardRoll == 43 then
  292. wildCard = "Lifesteal"
  293. elseif wildCardRoll == 44 then
  294. wildCard = "Everywhere"
  295. elseif wildCardRoll == 45 then
  296. wildCard = "Putt"
  297. elseif wildCardRoll == 46 then
  298. wildCard = "Pulse"
  299. elseif wildCardRoll == 47 then
  300. wildCard = "Backdash"
  301. elseif wildCardRoll == 48 then
  302. wildCard = "Forwarddash"
  303. elseif wildCardRoll == 49 then
  304. wildCard = "Doom"
  305. elseif wildCardRoll == 50 then
  306. wildCard = "Terminate"
  307. else
  308. wildCard = "Orb"
  309. end
  310.  
  311. CreateCard({ Name = wildCard, Type = wildCardType })
  312. DrawCard({ Name = wildCard, Type = wildCardType })
  313.  
  314. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement