Re: Sealed Deck development part 2
Sounds awesome!
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=8029
I was able to get Sideboarding functional using the DualListBox, and just calling it right before the decks were placed into their respective libraries (since showing the DLB will wait until the window is closed). But actually using it to Sideboard was kind of annoying, especially for Limited where your sideboard is 100 cards, and you really only care about 5 of them. Also, since the DLB wasn't designed to take multiple instances into account like the Deck Editor is, Each Basic Land was taking up 10-20 entries in the List.friarsol wrote:Yea sideboarding is quite an endeavor. One of the reasons I started doing the Dual List Box was to see if I could get Sideboarding working, but figured I wouldn't be taking a look at it for another month or so. I should be able to add some code into DLB to have better support for using it with sideboards.RumbleBBU wrote:Well, if somebody wants to give it a try it with dual listboxes, be my guest...
ATM, I'm slightly frustrated with sideboarding after two failed attempts (both of which took quite a bit of work). I think I'll work on something different next.
RumbleBBU wrote:I've committed my current MetaSet code now. It is fully functional, although the set combination code is not pretty (but it gets the job done). I also added a sample in the Fantasy Block that illustrates the use of each method (you'll find it in "Fantasy Blocks", it's called "(3) Metaset Sample".
Maybe I should write a short 'howto' that explains how to use MetaSets to build custom blocks?
My "short" howto grew in writing, so I decided to post is as an article instead:Chris H. wrote:RumbleBBU wrote:I've committed my current MetaSet code now. It is fully functional, although the set combination code is not pretty (but it gets the job done). I also added a sample in the Fantasy Block that illustrates the use of each method (you'll find it in "Fantasy Blocks", it's called "(3) Metaset Sample".
Maybe I should write a short 'howto' that explains how to use MetaSets to build custom blocks?
Sounds good to me. If you put something together we can add it to the end of the readme.txt file for the moment.
I don't know if this is of any use to you, but here are the modified files for my two failed attempts. Version 1 is the one that adds a "Sideboard" button to the win/lose view and loses track of game status after sideboarding. Version 2 is the one that asks you whether you want to sideboard and if you do, it will start spawning lots of new games.friarsol wrote:If the Sideboard was only going to be 15 cards, it would probably be good enough for now. However, I think I won't commit what I have, and see if there's a slightly better way of going about Sideboarding, hopefully with reusing the Deck Editor in some form.
I can take a look at some point. Basically all I did is wait till the newGame was about to be actuated, checked the size of the sideboard and launched a DualListBox with the sideboard in the left list, and the main deck in the right. No asking questions, no extra buttons. If you don't want to sideboard, you can just press ok. Whatever you chose in the right box would be loaded into your deck instead of your originally saved deck.RumbleBBU wrote:I don't know if this is of any use to you, but here are the modified files for my two failed attempts. Version 1 is the one that adds a "Sideboard" button to the win/lose view and loses track of game status after sideboarding. Version 2 is the one that asks you whether you want to sideboard and if you do, it will start spawning lots of new games.
Maybe you (or someone else) can figure out what went wrong with these?
RumbleBBU wrote:My "short" howto grew in writing, so I decided to post is as an article instead:
viewtopic.php?f=26&t=8164
I'm including a text version in this message in case you want to include it in the game distribution.
Index:27|Meta0:CHOOSE1/CUBE/ArabianExtended/ArabianExtended;FULL/*/*;META/ICE,ALL,HML,CSP/IceAgeBlockExtended;BOOSTER/2ED/Unlimited;PACK/4ED/4th Edition /CHOOSE|Meta1:RANDOM1/FULL/*/*;META/CHK,BOK,SOK/KAMI;BOOSTER/8ED/8ED/RANDOM|Meta2:COMBO/CUBE/juzamjedi/JZJEDI;META/USG,ULG,UDS/URZA;PACK/M13/M13;BOOSTER/TSB/TimeShift/COMBO|Name:(3) Metaset Sample 2|DraftPacks:3|LandSetCode:2ED|SealedPacks:6Meta0:CHOOSE1/CUBE/ArabianExtended/ArabianExtended;FULL/*/*;META/ICE,ALL,HML,CSP/IceAgeBlockExtended;BOOSTER/2ED/Unlimited;PACK/4ED/4th Edition /CHOOSEMeta1:RANDOM1/FULL/*/*;META/CHK,BOK,SOK/KAMI;BOOSTER/8ED/8ED/RANDOMMeta2:COMBO/CUBE/juzamjedi/JZJEDI;META/USG,ULG,UDS/URZA;PACK/M13/M13;BOOSTER/TSB/TimeShift/COMBOMeta0:CHOOSE1/CUBE/AzoriusCube/Azorius Guild;CUBE/IzzetCube/Izzet Guild;CUBE/RakdosCube/Rakdos Guild;CUBE/GolgariCube/Golgari Guild;CUBE/SelesnyaCube/Selesnya Guild/GUILD
Come to think of it, the above suggested 'guild booster' example is actually sub-optimal. Since we are talking a "choose1" type MetaSet, the display names are relevant and should definitely be more informative than "AZRC", "IZTC", and so on.RumbleBBU wrote:Then you would add the following MetaSet to your block definition (edit for the actual cube names, if different):If included in a Sealed Deck game, this would allow the player to choose one of the included guild "cubes" as the booster base. (Obviously, this is still untested.)
- Code: Select all
Meta0:CHOOSE1/CUBE/AzoriusCube/AZRC;CUBE/IzzetCube/IZTC;CUBE/RakdosCube/RKDC;CUBE/GolgariCube/GLGC;CUBE/SelesnyaCube/SLSC/GUILD
Meta0:CHOOSE1/CUBE/AzoriusCube/Azorius Guild;CUBE/IzzetCube/Izzet Guild;CUBE/RakdosCube/Rakdos Guild;CUBE/GolgariCube/Golgari Guild;CUBE/SelesnyaCube/Selesnya Guild/GUILDMeta0:CHOOSE1/BOOSTER/GAZO/Azorius Guild;BOOSTER/GIZZ/Izzet Guild;BOOSTER/GRAK/Rakdos Guild;BOOSTER/GGOL/Golgari Guild;BOOSTER/GSEL/Selesnya Guild/GUILDFirst we need to script more of the cards. At the moment I think Azorius is the most complete with all the white cards scripted (except for the Angel which it looks like ArsenalNut is working on. I got quite far with multiple origin zones at one stage, but started running into problems with replacement effects and one or two other bits that check Origin. Good luck Arsenal!)mcrawford620 wrote:Sounds sweet. Are you going to actually build the guild cubes for these examples? I'd love to try out the idea.