Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ********
- // * DECK *
- // ********
- // Instructions
- // This file should be imported by every deck as it contains temporary/permanent scripts for running those decks.
- // Description
- // This file is necessary to set the appropriate starting cards for all decks
- // It also contains standardized or experimental versions of cards to insert into decks
- // Set Points
- OnLoad
- {
- SetCounter({ Set = "GENERAL", Name = "SUPPLY", Amount = 10 })
- }
- // Cycle the decks starting powers
- OnLoad
- {
- SetRandomFlagTrue({ Name = "DeckOption1", Name = "DeckOption2", Name="DeckOption3", Name="DeckOption4" })
- }
- OnFlagTrue DeckOption1
- {
- startingCard = 1
- }
- OnFlagTrue DeckOption2
- {
- startingCard = 2
- }
- OnFlagTrue DeckOption3
- {
- startingCard = 3
- }
- OnFlagTrue DeckOption4
- {
- startingCard = 4
- }
- // Re-shuffle deck on death
- // does not work with OnPlayerDeath for some reason
- OnLoad
- {
- function NewDeckVariation()
- if activeDeck == "Builder" then
- DeckBuilder(startingCard)
- elseif activeDeck == "Scrapper" then
- DeckScrapper(startingCard)
- elseif activeDeck == "Sniper" then
- DeckSniper(startingCard)
- elseif activeDeck == "Randomizer" then
- DeckRandomizer(startingCard)
- elseif activeDeck == "Puller" then
- DeckPuller(startingCard)
- elseif activeDeck == "Blaster" then
- DeckBlaster(startingCard)
- elseif activeDeck == "Stalker" then
- DeckStalker(startingCard)
- elseif activeDeck == "Drainer" then
- DeckDrainer(startingCard)
- elseif activeDeck == "Summoner" then
- DeckSummoner(startingCard)
- elseif activeDeck == "Custom" then
- DeckCustom(startingCard)
- elseif activeDeck == "All" then
- DeckAll(startingCard)
- else
- DisplayInfoPanelText({ Name = "Could Not Shuffle" })
- end
- end
- }
- OnPlayerLifeLost
- {
- if startingCard < 4 then
- startingCard = startingCard + 1
- elseif startingCard >= 4 then
- startingCard = 1
- end
- SetFlagTrue({ Name = "PlayerLifeLost" })
- playerLifeLost = true
- }
- OnKeyPressed None Escape ; RequiredFlag = PlayerLifeLost
- {
- SetFlagFalse({ Name = "PlayerLifeLost" })
- playerLifeLost = false
- NewDeckVariation()
- }
- // Curse Cards
- OnLoad
- {
- numCursesPlayed = 0
- numCursesEnemyUpgrade = 0
- }
- OnCardPlayed Curse_Test
- {
- numCursesPlayed = numCursesPlayed + 1
- if numCursesPlayed == 1 then
- Teleport({ Name = "Curse1", DestinationName = "Player", OffsetX = 150, OffsetY = 150, Delay = 1.0 })
- elseif numCursesPlayed == 2 then
- Teleport({ Name = "Curse2", DestinationName = "Player", OffsetX = 150, OffsetY = 150, Delay = 1.0 })
- elseif numCursesPlayed == 3 then
- Teleport({ Name = "Curse3", DestinationName = "Player", OffsetX = 150, OffsetY = 150, Delay = 1.0 })
- else
- end
- }
- // Drops Cards
- OnUsed Drop_Draw ; RequiredFlag = DONTWORK
- {
- CreateCard({ Name = "MetaDrawCard", Type = "DRAW", Count = 3, Cost = 0 })
- DrawCard({ Name = "MetaDrawCard", Type = "DRAW" })
- }
- OnUsed Drop_Expand
- {
- CreateCard({ Name = "MetaMaxHandSize", Type = "MAX_HAND_SIZE", Count = 1, Cost = 0 })
- DrawCard({ Name = "MetaMaxHandSize", Type = "MAX_HAND_SIZE", Count = 1, Cost = 0 })
- }
- // Fights02 Fly/Hibernate Hacks
- OnLoad
- {
- Attach({ Id = 20094, DestinationName = "Player", Delay = 1.0 })
- }
- OnWeaponFired Fly
- {
- -- if CameraLeash == false then
- Unattach({ Id = 20094 })
- LockCamera({ Id = 20094, Duration = 1.0 })
- LockCamera({ Name = "Player", Duration = 0.5, Delay = 5.0 })
- Attach({ Id = 20094, DestinationName = "Player", Delay = 5.1 })
- -- end
- }
- OnWeaponFired Hibernate
- {
- -- if CameraLeash == false then
- Unattach({ Id = 20094 })
- LockCamera({ Id = 20094, Duration = 1.0 })
- LockCamera({ Name = "Player", Duration = 0.5, Delay = 5.0 })
- Attach({ Id = 20094, DestinationName = "Player", Delay = 5.1 })
- -- end
- }
- OnWeaponFired AirDash
- {
- -- if CameraLeash == false then
- Unattach({ Id = 20094 })
- LockCamera({ Id = 20094, Duration = 1.0 })
- LockCamera({ Name = "Player", Duration = 0.5, Delay = 5.0 })
- Attach({ Id = 20094, DestinationName = "Player", Delay = 5.1 })
- -- end
- }
- // Wild Card Concept
- OnCardPlayed MetaWildCard
- {
- wildCardRoll = math.random(1,50)
- wildCardType = "WEAPON"
- if wildCardRoll == 1 then
- wildCard = "Orb"
- elseif wildCardRoll == 2 then
- wildCard = "Missile"
- elseif wildCardRoll == 3 then
- wildCard = "Epicenter"
- elseif wildCardRoll == 4 then
- wildCard = "Nova"
- elseif wildCardRoll == 5 then
- wildCard = "Blink"
- elseif wildCardRoll == 6 then
- wildCard = "Backdash"
- elseif wildCardRoll == 7 then
- wildCard = "Storm"
- elseif wildCardRoll == 8 then
- wildCard = "Boulder"
- elseif wildCardRoll == 9 then
- wildCard = "Trap"
- elseif wildCardRoll == 10 then
- wildCard = "Trail"
- elseif wildCardRoll == 11 then
- wildCard = "Cone"
- elseif wildCardRoll == 12 then
- wildCard = "Mine"
- elseif wildCardRoll == 13 then
- wildCard = "AllyBomber"
- elseif wildCardRoll == 14 then
- wildCard = "Shrink"
- elseif wildCardRoll == 15 then
- wildCard = "Might"
- elseif wildCardRoll == 16 then
- wildCard = "Invincible"
- elseif wildCardRoll == 17 then
- wildCard = "HealSelf"
- elseif wildCardRoll == 18 then
- wildCard = "Hibernate"
- elseif wildCardRoll == 19 then
- wildCard = "Jump"
- elseif wildCardRoll == 20 then
- wildCard = "Cloudkill"
- elseif wildCardRoll == 21 then
- wildCard = "Dart"
- elseif wildCardRoll == 22 then
- wildCard = "Hose"
- elseif wildCardRoll == 23 then
- wildCard = "Novaball"
- elseif wildCardRoll == 24 then
- wildCard = "Hook"
- elseif wildCardRoll == 25 then
- wildCard = "Longshot"
- elseif wildCardRoll == 26 then
- wildCard = "Blackhole"
- elseif wildCardRoll == 27 then
- wildCard = "MachineGun"
- elseif wildCardRoll == 28 then
- wildCard = "Tag"
- elseif wildCardRoll == 29 then
- wildCard = "AllyDemolisher"
- elseif wildCardRoll == 30 then
- wildCard = "Shrapnel"
- elseif wildCardRoll == 31 then
- wildCard = "Slam"
- elseif wildCardRoll == 32 then
- wildCard = "Snare"
- elseif wildCardRoll == 33 then
- wildCard = "Lightstrike"
- elseif wildCardRoll == 34 then
- wildCard = "Drain"
- elseif wildCardRoll == 35 then
- wildCard = "Fly"
- elseif wildCardRoll == 36 then
- wildCard = "Bouncer"
- elseif wildCardRoll == 37 then
- wildCard = "Banish"
- elseif wildCardRoll == 38 then
- wildCard = "ChaosLance"
- elseif wildCardRoll == 39 then
- wildCard = "Bankshot"
- elseif wildCardRoll == 40 then
- wildCard = "Plow"
- elseif wildCardRoll == 41 then
- wildCard = "Beam"
- elseif wildCardRoll == 42 then
- wildCard = "AllyDeflector"
- elseif wildCardRoll == 43 then
- wildCard = "Lifesteal"
- elseif wildCardRoll == 44 then
- wildCard = "Everywhere"
- elseif wildCardRoll == 45 then
- wildCard = "Putt"
- elseif wildCardRoll == 46 then
- wildCard = "Pulse"
- elseif wildCardRoll == 47 then
- wildCard = "Backdash"
- elseif wildCardRoll == 48 then
- wildCard = "Forwarddash"
- elseif wildCardRoll == 49 then
- wildCard = "Doom"
- elseif wildCardRoll == 50 then
- wildCard = "Terminate"
- else
- wildCard = "Orb"
- end
- CreateCard({ Name = wildCard, Type = wildCardType })
- DrawCard({ Name = wildCard, Type = wildCardType })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement