Advertisement
NonEuclideanCat

Custom.txt

Dec 15th, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. // ********
  2. // * DECK *
  3. // ********
  4.  
  5. // This Deck requires the startingPowers to be defined outside of it,
  6. // since it just "fills out" the rest of the deck after
  7. // the player has chosen the cards they want.
  8.  
  9. // Instructions
  10. // 1. Import this file
  11. // 2. Defne the startingPower fields somewhere
  12. // 3. Call the first function in this file
  13.  
  14. Import Decks\Initialize.txt
  15.  
  16. OnLoad
  17. {
  18. function DeckCustom()
  19.  
  20. -- Destroy & Declare Deck
  21. activeDeck = "Custom"
  22. activeDeckMessage = "Custom "..startingCard
  23. DestroyDeck({ })
  24. DisplayObjectivePanelText({ Name = activeDeckMessage })
  25.  
  26. startingType = "WEAPON"
  27.  
  28. -- Movement power randomizer
  29. MoveRandomizer = math.random(1,5)
  30.  
  31. if MoveRandomizer == 1 then
  32. startingMover = "Dash"
  33. elseif MoveRandomizer == 2 then
  34. startingMover = "Dash"
  35. elseif MoveRandomizer == 3 then
  36. startingMover = "Blink"
  37. elseif MoveRandomizer == 4 then
  38. startingMover = "AirDash"
  39. elseif MoveRandomizer == 5 then
  40. startingMover = "Dash"
  41. end
  42.  
  43. -- Starting
  44. CreateCard({ Name = startingPower, Type = startingType })
  45. CreateCard({ Name = startingPower2, Type = startingType })
  46. CreateCard({ Name = startingPower3, Type = startingType })
  47. CreateCard({ Name = startingPower4, Type = startingType })
  48. -- CreateCard({ Name = startingMover, Type = "WEAPON" })
  49.  
  50. -- Utility Power
  51. CreateCard({ Name = "HealSelf", Type = "WEAPON" })
  52.  
  53. -- Passives
  54. CreateCard({ Name = "PlusSpeed", Type = "PLAYER_UPGRADE" })
  55. CreateCard({ Name = "PlusDamage", Type = "PLAYER_UPGRADE" })
  56. CreateCard({ Name = "PlusHealth", Type = "PLAYER_UPGRADE" })
  57. CreateCard({ Name = "PlusStamina", Type = "PLAYER_UPGRADE" })
  58. CreateCard({ Name = "PlusStaminaRegen", Type = "PLAYER_UPGRADE" })
  59. CreateCard({ Name = "PlayerOnHitWeapon", Type = "PLAYER_UPGRADE" })
  60. CreateCard({ Name = "OnKillBuff", Type = "PLAYER_UPGRADE" })
  61.  
  62. -- Upgrades
  63. CreateCard({ Name = "Weapon_Damage", Type = "WEAPON_UPGRADE" })
  64. CreateCard({ Name = "Weapon_Damage", Type = "WEAPON_UPGRADE" })
  65. CreateCard({ Name = "Weapon_StaminaCost", Type = "WEAPON_UPGRADE" })
  66. CreateCard({ Name = "Weapon_StaminaCost", Type = "WEAPON_UPGRADE" })
  67. CreateCard({ Name = "Weapon_Stun", Type = "WEAPON_UPGRADE" })
  68. CreateCard({ Name = "Weapon_Stronger", Type = "WEAPON_UPGRADE" })
  69. CreateCard({ Name = "Weapon_ProjectileSpeedAndRange", Type = "WEAPON_UPGRADE" })
  70.  
  71. -- Meta
  72. CreateCard({ Name = "MetaDrawCard", Type = "DRAW", Count = 3, Cost = 3 })
  73.  
  74. -- Curse
  75.  
  76. -- Starting Hand
  77. DrawCard({ Name = startingPower, Type = startingType })
  78. DrawCard({ Name = startingPower2, Type = startingType })
  79. DrawCard({ Name = startingPower3, Type = startingType })
  80. -- DrawCard({ Name = startingMover, Type = "WEAPON" })
  81.  
  82. end
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement