Advertisement
NonEuclideanCat

Starter.txt

Dec 15th, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. // ********
  2. // * DECK *
  3. // ********
  4.  
  5. // Instructions
  6. // 1. Import this file
  7. // 2. Call the first function in this file
  8.  
  9.  
  10. OnLoad
  11. {
  12. function DeckStarter()
  13.  
  14. cards =
  15. {
  16. Seekers = "WEAPON",
  17. Snipe = "WEAPON",
  18. Everywhere = "WEAPON"
  19. }
  20.  
  21. for k, v in pairs(cards) do
  22. CreateCard({ Name = k, Type = v })
  23. DrawCard({ Name = k, Type = v })
  24. PlayCard({ Name = k, Type = v })
  25. end
  26.  
  27. end
  28. }
  29.  
  30. OnKeyPressed Shift X
  31. {
  32. DeckStarter()
  33. }
  34.  
  35.  
  36. OnLoad
  37. {
  38.  
  39. function DeckForcedDraws()
  40.  
  41. ForceNextDraw({ Name = "Weapon_StaminaCost", Type = "WEAPON_UPGRADE" })
  42. ForceNextDraw({ Name = "OnKillBuff", Type = "PLAYER_UPGRADE" })
  43.  
  44. ForceNextDraw({ Name = "MetaDrawCard", Type = "DRAW" })
  45. ForceNextDraw({ Name = "Weapon_ProjectileSpeedAndRange", Type = "WEAPON_UPGRADE" })
  46.  
  47.  
  48.  
  49. ForceNextDraw({ Name = "Story", Type = "WEAPON" })
  50.  
  51. end
  52.  
  53. numCardsDrawn = 0
  54. numGoodPowers = 0
  55. playerIsDead = false
  56. }
  57.  
  58. OnCardDrawn Weapon_Upgrade MetaDrawCard Lightstrike Clusterbomb Orb
  59. {
  60. numCardsDrawn = numCardsDrawn + 1
  61.  
  62. if playerIsDead then
  63.  
  64. numGoodPowers = numGoodPowers + 1
  65.  
  66. if numGoodPowers == 1 then
  67. ForceNextDraw({ Name = "Lightstrike", Type = "WEAPON" })
  68. elseif numGoodPowers == 2 then
  69. ForceNextDraw({ Name = "Clusterbomb", Type = "WEAPON" })
  70. elseif numGoodPowers == 3 then
  71. ForceNextDraw({ Name = "Orb", Type = "WEAPON" })
  72. end
  73. end
  74.  
  75. if numCardsDrawn == 1 then
  76. ForceNextDraw({ Name = "something", Type = "something" })
  77. end
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement