Guest
Posts: n/a
|
I'm trying to implement deck construction rules.
One rule is that a sideboard must be 0 or 15 cards. The other is that there can't be more than 5 duplicates of any one card in both in the sideboard and deck combined. BTW: These are for the data files I'm doing for doomtrooper. (Yes I still play it). ------------------------ Yahoo! Groups Sponsor ---------------------~--> Sell a Home with Ease! http://us.click.yahoo.com/SrPZMC/kTm...fIAA/WuQolB/TM ---------------------------------------------------------------------~-> |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
The sideboard size limit should be very simple. Obviously, it's a deck
rule, and the scope of the rule is whichever deck you've designated as the sideboard (e.g. "deck2"). To impose the sideboard rule, you can use the '$' term, which reports the total number of cards in the scope. So the rule should look like: ($ = 0) | ($ = 15) The second rule is a card scoping rule, since it applies to a single card at a time. However, since it has to span multiple decks, the proper scope needs to be "span". Since the limit applies to the count of each card, you can use the '#' special term for card rules to obtain that count. Therefore, verifying that you don't have more than 5 of a particular card across all decks would look like: (# <= 5) That should cover both the rules. They're easy ones to implement. Hope this helps, Rob At 06:59 AM 10/6/2002 +0000, you wrote: >I'm trying to implement deck construction rules. > >One rule is that a sideboard must be 0 or 15 cards. > >The other is that there can't be more than 5 duplicates of any one >card in both in the sideboard and deck combined. > >BTW: These are for the data files I'm doing for doomtrooper. (Yes I >still play it). --------------------------------------------------------------------------- Rob Bowes (rob@wolflair.com) (559) 658-6995 Lone Wolf Development www.wolflair.com ------------------------ Yahoo! Groups Sponsor ---------------------~--> Plan to Sell a Home? http://us.click.yahoo.com/J2SnNA/y.l...fIAA/WuQolB/TM ---------------------------------------------------------------------~-> |
#2 |
Guest
Posts: n/a
|
Yep. that works. thanks rob.
--- In cardvault@y..., Rob Bowes <rob@w...> wrote: > The sideboard size limit should be very simple. Obviously, it's a deck > rule, and the scope of the rule is whichever deck you've designated as the > sideboard (e.g. "deck2"). To impose the sideboard rule, you can use the '$' > term, which reports the total number of cards in the scope. So the rule > should look like: > ($ = 0) | ($ = 15) > > The second rule is a card scoping rule, since it applies to a single card > at a time. However, since it has to span multiple decks, the proper scope > needs to be "span". Since the limit applies to the count of each card, you > can use the '#' special term for card rules to obtain that count. > Therefore, verifying that you don't have more than 5 of a particular card > across all decks would look like: > (# <= 5) > > That should cover both the rules. They're easy ones to implement. > > Hope this helps, > Rob > > At 06:59 AM 10/6/2002 +0000, you wrote: > >I'm trying to implement deck construction rules. > > > >One rule is that a sideboard must be 0 or 15 cards. > > > >The other is that there can't be more than 5 duplicates of any one > >card in both in the sideboard and deck combined. > > > >BTW: These are for the data files I'm doing for doomtrooper. (Yes I > >still play it). > > > --------------------------------------------------------------------------- > Rob Bowes (rob@w...) (559) 658-6995 > Lone Wolf Development www.wolflair.com ------------------------ Yahoo! Groups Sponsor ---------------------~--> Plan to Sell a Home? http://us.click.yahoo.com/J2SnNA/y.l...fIAA/WuQolB/TM ---------------------------------------------------------------------~-> |
#3 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
card images/ bitmaps to card details? | emperor799 at bellsouth.n | Card Vault | 3 | September 23rd, 2003 02:10 PM |
Duplicate Special item | sheady at xtra.co.nz | Army Builder | 1 | January 3rd, 2000 01:23 PM |