Guest
Posts: n/a
|
Well, I thought I had this licked but it's reared its ugly head
again. Raw Deal background: Decks are built around a WWE Superstar and may contain any number of non-superstar specific cards, but may only contain their own superstar specific cards. The Rock cannot use a Steve Austin card, for example. Right now Superstar specific cards have a tag from the group reqss. Superstar cards have a tag from the group isSS. I have tried to steal the Will Only Join rule from the L5R files. So I first identify the type of deck being played with a series of rules along this line: <rule id="Is3Min" message="Error: Cannot set Is3Min" priority="1" scope="deck2"> <![CDATA[ eval Is3Min as { test { card:isSS.3Min > 0, 1, 0}} ]]> </rule> Then check the cards with this rule: scope="card" !reqss.? | (reqss.3Min & ( @Is3Min > 0)) This works fine except that there are over 70 superstar cards so the rule over flows and won't parse. So I broke the rule into 26 pieces and did one rule for each letter of the alphabet. This would work fine except that some cards have more than one superstar and so it activates more than one rule so I get false negatives. The only solution I can think of right now is to do seperate entries for the different superstars and indentical them together, but that seems like to much of a kludge. Any thoughts? Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/cardvault/ <*> To unsubscribe from this group, send an email to: cardvault-unsubscribe@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
#1 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
At 07:21 AM 3/10/2004, you wrote:
>Well, I thought I had this licked but it's reared its ugly head >again. > >Raw Deal background: Decks are built around a WWE Superstar and may >contain any number of non-superstar specific cards, but may only >contain their own superstar specific cards. The Rock cannot use a >Steve Austin card, for example. > >Right now Superstar specific cards have a tag from the group reqss. > >Superstar cards have a tag from the group isSS. > >I have tried to steal the Will Only Join rule from the L5R files. > >So I first identify the type of deck being played with a series of >rules along this line: > ><rule id="Is3Min" message="Error: Cannot set Is3Min" priority="1" >scope="deck2"> ><![CDATA[ >eval Is3Min as { test { card:isSS.3Min > 0, 1, 0}} >]]> ></rule> > >Then check the cards with this rule: > >scope="card" >!reqss.? | (reqss.3Min & ( @Is3Min > 0)) > >This works fine except that there are over 70 superstar cards so the >rule over flows and won't parse. The rule 'over flows'? What do you mean? -- Colen McAlister (colen@wolflair.com) Lone Wolf Development www.wolflair.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/cardvault/ <*> To unsubscribe from this group, send an email to: cardvault-unsubscribe@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
#2 |
Guest
Posts: n/a
|
My rule was going over 100 terms.
----- Original Message ----- From: Colen McAlister To: cardvault@yahoogroups.com Sent: Saturday, March 13, 2004 6:17 PM Subject: Re: [CardVault] More Raw Deal Trouble At 07:21 AM 3/10/2004, you wrote: >Well, I thought I had this licked but it's reared its ugly head >again. > >Raw Deal background: Decks are built around a WWE Superstar and may >contain any number of non-superstar specific cards, but may only >contain their own superstar specific cards. The Rock cannot use a >Steve Austin card, for example. > >Right now Superstar specific cards have a tag from the group reqss. > >Superstar cards have a tag from the group isSS. > >I have tried to steal the Will Only Join rule from the L5R files. > >So I first identify the type of deck being played with a series of >rules along this line: > ><rule id="Is3Min" message="Error: Cannot set Is3Min" priority="1" >scope="deck2"> ><![CDATA[ >eval Is3Min as { test { card:isSS.3Min > 0, 1, 0}} >]]> ></rule> > >Then check the cards with this rule: > >scope="card" >!reqss.? | (reqss.3Min & ( @Is3Min > 0)) > >This works fine except that there are over 70 superstar cards so the >rule over flows and won't parse. The rule 'over flows'? What do you mean? -- Colen McAlister (colen@wolflair.com) Lone Wolf Development www.wolflair.com ------------------------------------------------------------------------------ Yahoo! Groups Links a.. To visit your group on the web, go to: http://groups.yahoo.com/group/cardvault/ b.. To unsubscribe from this group, send an email to: cardvault-unsubscribe@yahoogroups.com c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/mOAaAA/3ex...sNAA/WuQolB/TM ---------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/cardvault/ <*> To unsubscribe from this group, send an email to: cardvault-unsubscribe@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
Try breaking your rule up into pieces, assigning the results of each piece
to a variable. For example, if you have 200 terms, create 10 variables that process 20 terms each. Then have your rule verify the 10 variables. I'm tempted to believe that a rule with more than 100 terms can be written differently, eliminating many of the current terms. But that's just a gut feeling and completely unfounded. We leave for a tradeshow tomorrow morning and won't be back until next week. If you want, press me on this issue when we're back next week and I'll see if I can come up with a more creative solution for you to try. In the meantime, the trick mentioned above ought to get you operational. Hope this helps, Rob At 11:49 PM 3/13/2004 -0600, you wrote: >My rule was going over 100 terms. > ----- Original Message ----- > From: Colen McAlister > To: cardvault@yahoogroups.com > Sent: Saturday, March 13, 2004 6:17 PM > Subject: Re: [CardVault] More Raw Deal Trouble > > > At 07:21 AM 3/10/2004, you wrote: > >Well, I thought I had this licked but it's reared its ugly head > >again. > > > >Raw Deal background: Decks are built around a WWE Superstar and may > >contain any number of non-superstar specific cards, but may only > >contain their own superstar specific cards. The Rock cannot use a > >Steve Austin card, for example. > > > >Right now Superstar specific cards have a tag from the group reqss. > > > >Superstar cards have a tag from the group isSS. > > > >I have tried to steal the Will Only Join rule from the L5R files. > > > >So I first identify the type of deck being played with a series of > >rules along this line: > > > ><rule id="Is3Min" message="Error: Cannot set Is3Min" priority="1" > >scope="deck2"> > ><![CDATA[ > >eval Is3Min as { test { card:isSS.3Min > 0, 1, 0}} > >]]> > ></rule> > > > >Then check the cards with this rule: > > > >scope="card" > >!reqss.? | (reqss.3Min & ( @Is3Min > 0)) > > > >This works fine except that there are over 70 superstar cards so the > >rule over flows and won't parse. > > The rule 'over flows'? What do you mean? --------------------------------------------------------------------------- Rob Bowes (rob@wolflair.com) (650) 588-8252 Lone Wolf Development www.wolflair.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/cardvault/ <*> To unsubscribe from this group, send an email to: cardvault-unsubscribe@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
#4 |
Guest
Posts: n/a
|
Well, there are over 60 superstars in Raw Deal and each one requires at least 2 terms to check.
I've tried using variables and I haven't been very sucessful with the project. My current solution is to multiple copies of the card with only one superstar tag on the card and then mark them as identical. The upside is that it makes the rules much simpler, the downside is that the cards collapse into one another unless you are specifically searching for a given superstar. ----- Original Message ----- From: Rob Bowes To: cardvault@yahoogroups.com Sent: Monday, March 15, 2004 4:58 AM Subject: Re: [CardVault] More Raw Deal Trouble Try breaking your rule up into pieces, assigning the results of each piece to a variable. For example, if you have 200 terms, create 10 variables that process 20 terms each. Then have your rule verify the 10 variables. I'm tempted to believe that a rule with more than 100 terms can be written differently, eliminating many of the current terms. But that's just a gut feeling and completely unfounded. We leave for a tradeshow tomorrow morning and won't be back until next week. If you want, press me on this issue when we're back next week and I'll see if I can come up with a more creative solution for you to try. In the meantime, the trick mentioned above ought to get you operational. Hope this helps, Rob At 11:49 PM 3/13/2004 -0600, you wrote: >My rule was going over 100 terms. > ----- Original Message ----- > From: Colen McAlister > To: cardvault@yahoogroups.com > Sent: Saturday, March 13, 2004 6:17 PM > Subject: Re: [CardVault] More Raw Deal Trouble > > > At 07:21 AM 3/10/2004, you wrote: > >Well, I thought I had this licked but it's reared its ugly head > >again. > > > >Raw Deal background: Decks are built around a WWE Superstar and may > >contain any number of non-superstar specific cards, but may only > >contain their own superstar specific cards. The Rock cannot use a > >Steve Austin card, for example. > > > >Right now Superstar specific cards have a tag from the group reqss. > > > >Superstar cards have a tag from the group isSS. > > > >I have tried to steal the Will Only Join rule from the L5R files. > > > >So I first identify the type of deck being played with a series of > >rules along this line: > > > ><rule id="Is3Min" message="Error: Cannot set Is3Min" priority="1" > >scope="deck2"> > ><![CDATA[ > >eval Is3Min as { test { card:isSS.3Min > 0, 1, 0}} > >]]> > ></rule> > > > >Then check the cards with this rule: > > > >scope="card" > >!reqss.? | (reqss.3Min & ( @Is3Min > 0)) > > > >This works fine except that there are over 70 superstar cards so the > >rule over flows and won't parse. > > The rule 'over flows'? What do you mean? --------------------------------------------------------------------------- Rob Bowes (rob@wolflair.com) (650) 588-8252 Lone Wolf Development www.wolflair.com ------------------------------------------------------------------------------ Yahoo! Groups Links a.. To visit your group on the web, go to: http://groups.yahoo.com/group/cardvault/ b.. To unsubscribe from this group, send an email to: cardvault-unsubscribe@yahoogroups.com c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/cardvault/ <*> To unsubscribe from this group, send an email to: cardvault-unsubscribe@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
#5 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Raw Deal update | nathrax at adelphia.net | Card Vault | 1 | July 7th, 2004 08:16 AM |
More Raw Deal Trouble | rob | Card Vault | 4 | April 4th, 2004 04:52 PM |
Raw Deal | y2jcerebralassassin at ya | Card Vault | 1 | August 11th, 2003 04:50 AM |
Raw Deal a Done Deal | aetherknight at yahoo.co. | Card Vault | 0 | December 9th, 2002 11:46 PM |
Raw Deal | khronos_vz at yahoo.com | Card Vault | 2 | November 12th, 2002 04:17 AM |