Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ********
- // * DECK *
- // ********
- // Instructions
- // 1. Import this file
- // 2. Call the first function in this file
- OnLoad
- {
- function DeckStarter()
- cards =
- {
- Seekers = "WEAPON",
- Snipe = "WEAPON",
- Everywhere = "WEAPON"
- }
- for k, v in pairs(cards) do
- CreateCard({ Name = k, Type = v })
- DrawCard({ Name = k, Type = v })
- PlayCard({ Name = k, Type = v })
- end
- end
- }
- OnKeyPressed Shift X
- {
- DeckStarter()
- }
- OnLoad
- {
- function DeckForcedDraws()
- ForceNextDraw({ Name = "Weapon_StaminaCost", Type = "WEAPON_UPGRADE" })
- ForceNextDraw({ Name = "OnKillBuff", Type = "PLAYER_UPGRADE" })
- ForceNextDraw({ Name = "MetaDrawCard", Type = "DRAW" })
- ForceNextDraw({ Name = "Weapon_ProjectileSpeedAndRange", Type = "WEAPON_UPGRADE" })
- ForceNextDraw({ Name = "Story", Type = "WEAPON" })
- end
- numCardsDrawn = 0
- numGoodPowers = 0
- playerIsDead = false
- }
- OnCardDrawn Weapon_Upgrade MetaDrawCard Lightstrike Clusterbomb Orb
- {
- numCardsDrawn = numCardsDrawn + 1
- if playerIsDead then
- numGoodPowers = numGoodPowers + 1
- if numGoodPowers == 1 then
- ForceNextDraw({ Name = "Lightstrike", Type = "WEAPON" })
- elseif numGoodPowers == 2 then
- ForceNextDraw({ Name = "Clusterbomb", Type = "WEAPON" })
- elseif numGoodPowers == 3 then
- ForceNextDraw({ Name = "Orb", Type = "WEAPON" })
- end
- end
- if numCardsDrawn == 1 then
- ForceNextDraw({ Name = "something", Type = "something" })
- end
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement