NATION

PASSWORD

Card queries [season 3 queries available]

The place to wheel and deal, talk shop, and build up your dream deck!

Advertisement

Remove ads

User avatar
The Northern Light
Spokesperson
 
Posts: 156
Founded: Oct 10, 2014
Iron Fist Consumerists

Postby The Northern Light » Mon Dec 09, 2019 3:11 pm

Warzone Codger wrote:
The Northern Light wrote:
If for whatever reason you think having mixed-season queries would be useful, please post here.



Would this allow searching for cards which has been promoted or demoted between seasons? Or those who have lost or gained a badge or trophy?

That's not how I was originally thinking about it, but it is an interesting possibility.

For example, I could allow someone to do "+rarity:ultra-rare:season1, -rarity:epic:season2", to get all cards that are UR in S1 and are not epic in S2.

It'll take some extensive editing of the current codebase to allow for this third-level season specifier, but I'll add it to my TODO.
Last edited by The Northern Light on Mon Dec 09, 2019 3:12 pm, edited 1 time in total.
Home of the WADP, Planet Eras, and the Constibillocode!
Join The North Pacific!
Where the democracy is strong, the debate robust, and the rum plentiful!

Forum | Discord Chat | Citizenship | Executive Staff | North Pacific Army | World Assembly Ministry | Roleplay | Trading Cards | Handbook

User avatar
Riemstagrad
Ambassador
 
Posts: 1081
Founded: Antiquity
Left-Leaning College State

Postby Riemstagrad » Thu Dec 12, 2019 3:21 pm

Thanks for this great tool!

Is it possible to use wildcards in a query? and if so, how does that work?

For example +NAME:A?? (to find all cards with a 3-letter name starting with an A). This example doesn't work.

User avatar
When U Die
Bureaucrat
 
Posts: 63
Founded: Oct 16, 2019
Ex-Nation

Postby When U Die » Thu Dec 19, 2019 12:20 pm

Wheeeeeeeeee

User avatar
The Northern Light
Spokesperson
 
Posts: 156
Founded: Oct 10, 2014
Iron Fist Consumerists

Postby The Northern Light » Fri Dec 20, 2019 10:16 pm

Riemstagrad wrote:Thanks for this great tool!

Is it possible to use wildcards in a query? and if so, how does that work?

For example +NAME:A?? (to find all cards with a 3-letter name starting with an A). This example doesn't work.

Right now, it doesn't support wildcards or regular expressions. It should be easy to add that (at least for fields where it makes sense, e.g., name, region, motto, and flag). It is a little busy right now in RL, but I'll try to add it soonish.
Home of the WADP, Planet Eras, and the Constibillocode!
Join The North Pacific!
Where the democracy is strong, the debate robust, and the rum plentiful!

Forum | Discord Chat | Citizenship | Executive Staff | North Pacific Army | World Assembly Ministry | Roleplay | Trading Cards | Handbook

User avatar
SherpDaWerp
Technical Moderator
 
Posts: 1895
Founded: Mar 02, 2016
Benevolent Dictatorship

Postby SherpDaWerp » Fri Dec 20, 2019 11:16 pm

I think I found a bug:

Querying
Code: Select all
+badge:Issues Author
+rarity:epic

works fine, and similar for rarity:legendary, but querying
Code: Select all
+badge:Issues Author
+rarity:ultra_rare

returns an empty list.

Ultra rare issue authors do exist, and you can find them by querying
Code: Select all
+badge:issues_author
-rarity:legendary
-rarity:epic


I have tried swapping the line breaks for commas with no effect.
Became an editor on 18/01/23 techie on 29/01/24

Rampant statistical speculation from before then is entirely unofficial

User avatar
Verdant Haven
Director of Content
 
Posts: 2801
Founded: Feb 26, 2013
Left-wing Utopia

Postby Verdant Haven » Sat Dec 21, 2019 6:22 am

SherpDaWerp wrote:I think I found a bug:

Querying
Code: Select all
+badge:Issues Author
+rarity:epic

works fine, and similar for rarity:legendary, but querying
Code: Select all
+badge:Issues Author
+rarity:ultra_rare

returns an empty list.

Ultra rare issue authors do exist, and you can find them by querying
Code: Select all
+badge:issues_author
-rarity:legendary
-rarity:epic


I have tried swapping the line breaks for commas with no effect.


The UR rarity is Ultra-Rare rather than Ultra_Rare.

User avatar
SherpDaWerp
Technical Moderator
 
Posts: 1895
Founded: Mar 02, 2016
Benevolent Dictatorship

Postby SherpDaWerp » Sat Dec 21, 2019 3:54 pm

Verdant Haven wrote:The UR rarity is Ultra-Rare rather than Ultra_Rare.

Yep, that works.
Became an editor on 18/01/23 techie on 29/01/24

Rampant statistical speculation from before then is entirely unofficial

User avatar
The Northern Light
Spokesperson
 
Posts: 156
Founded: Oct 10, 2014
Iron Fist Consumerists

Postby The Northern Light » Sat Dec 21, 2019 7:08 pm

The card queries page has been updated to allow searches based on decks and collections. You can use this to check, for example, which cards meeting certain criteria re missing from your deck or a collection you are putting together.
Home of the WADP, Planet Eras, and the Constibillocode!
Join The North Pacific!
Where the democracy is strong, the debate robust, and the rum plentiful!

Forum | Discord Chat | Citizenship | Executive Staff | North Pacific Army | World Assembly Ministry | Roleplay | Trading Cards | Handbook

User avatar
When U Die
Bureaucrat
 
Posts: 63
Founded: Oct 16, 2019
Ex-Nation

Postby When U Die » Mon Dec 23, 2019 10:04 am

Thanks :clap:

User avatar
Voxija
Ambassador
 
Posts: 1449
Founded: Jan 17, 2019
Civil Rights Lovefest

Postby Voxija » Sun Jan 19, 2020 11:23 am

Can you search for specific flags that were part of the nation creation menu? As in "default flags", "Iran flags", or in my case "Basque Country flags". That would be cool and possibly doable.
The Republic of Voxija (pronounced: Voshiya)
I'm a woman. Some weird Jew. Trying to learn French and failing. An American who wishes the US would switch to the metric system. Part of a giant conspiracy. Secret pyromaniac? I will never make an OOC factbook!

my politics are confused and muddled
Most of my grammar errors are on purpose. Sppeling errors, tho...
I'd rather be fishing. | Author of Issues 1324 and 1346.
Generic MT liberal democracy Meh. | I think that by now I've created more lore for my nation than most real-world nations have.
Disclaimer: the views of my characters do not necessarily represent the views of the author.

User avatar
Racoda
Technical Moderator
 
Posts: 579
Founded: Aug 12, 2014
Democratic Socialists

Postby Racoda » Mon Jan 20, 2020 3:14 pm

Voxija wrote:Can you search for specific flags that were part of the nation creation menu? As in "default flags", "Iran flags", or in my case "Basque Country flags". That would be cool and possibly doable.

You can do this with:
Code: Select all
+flag:basque_country

Default flags:
Code: Select all
+flag:default
Iran:
Code: Select all
+flag:iran

Acting as a player unless accompagnied by mod action or reddish text
Any pronouns

User avatar
Tinian
Civil Servant
 
Posts: 9
Founded: Jul 09, 2004
Inoffensive Centrist Democracy

Postby Tinian » Sat Feb 15, 2020 7:33 am

Is there a way to search for cards with "0" owners such as this one?

https://www.nationstates.net/page=deck/ ... 0/season=1

User avatar
The Northern Light
Spokesperson
 
Posts: 156
Founded: Oct 10, 2014
Iron Fist Consumerists

Postby The Northern Light » Sat Feb 15, 2020 11:48 am

Unfortunately that's difficult, as it requires going over all cards one by one using the API.
Home of the WADP, Planet Eras, and the Constibillocode!
Join The North Pacific!
Where the democracy is strong, the debate robust, and the rum plentiful!

Forum | Discord Chat | Citizenship | Executive Staff | North Pacific Army | World Assembly Ministry | Roleplay | Trading Cards | Handbook

User avatar
Tinian
Civil Servant
 
Posts: 9
Founded: Jul 09, 2004
Inoffensive Centrist Democracy

Postby Tinian » Sun Feb 16, 2020 1:32 pm

The Northern Light wrote:Unfortunately that's difficult, as it requires going over all cards one by one using the API.

Thanks. Do you know how such cards can exist? I thought an ex-nation winked out when it's last owner CTE'd?

User avatar
SherpDaWerp
Technical Moderator
 
Posts: 1895
Founded: Mar 02, 2016
Benevolent Dictatorship

Postby SherpDaWerp » Sun Feb 16, 2020 7:10 pm

Tinian wrote:
The Northern Light wrote:Unfortunately that's difficult, as it requires going over all cards one by one using the API.

Thanks. Do you know how such cards can exist? I thought an ex-nation winked out when it's last owner CTE'd?


Once a nation CTE's, it card gets 10 times rarer. If it has 0 owners, the card still exists, because it can still be pulled, albeit very rarely. If someone who owns a card CTE's, that has no bearing on the card itself.
Became an editor on 18/01/23 techie on 29/01/24

Rampant statistical speculation from before then is entirely unofficial

User avatar
Tinian
Civil Servant
 
Posts: 9
Founded: Jul 09, 2004
Inoffensive Centrist Democracy

Postby Tinian » Mon Feb 17, 2020 1:35 pm

SherpDaWerp wrote:Once a nation CTE's, it card gets 10 times rarer. If it has 0 owners, the card still exists, because it can still be pulled, albeit very rarely. If someone who owns a card CTE's, that has no bearing on the card itself.

Interesting. Thanks!
Last edited by Tinian on Mon Feb 17, 2020 1:38 pm, edited 2 times in total.

User avatar
Union of Pepe
Bureaucrat
 
Posts: 63
Founded: Feb 08, 2019
Ex-Nation

Postby Union of Pepe » Fri Mar 06, 2020 5:44 am

What’s the chance of receiving a legendary card?
Founder of the New Meritocrats of the New Meritocrats
Favorite Quotes
    “If the opposition disarms, well and good. If it refuses to disarm, we shall disarm it ourselves.” -Jospeh Stalin
    “I like thinking big. If you're going to be thinking anything, you might as well think big.”- Donald Trump
    “ We are all different, but when we ask for the Lord's blessings, we must not forget that God created us equal.”- Vladimir Putin
    “ A man who has never gone to school may steal from a freight car; but if he has a university education, he may steal the whole railroad.”- Theodore Roosevelt

User avatar
Recuecn
Ambassador
 
Posts: 1049
Founded: Feb 02, 2015
New York Times Democracy

Postby Recuecn » Fri Mar 06, 2020 10:44 am

Union of Pepe wrote:What’s the chance of receiving a legendary card?

According to TNL's card market watch spreadsheet, the odds of a Season 2 card being a legendary card today, March 6th, are 0.16%. So that's a 0.8% chance of finding a legendary in a pack of Season Two cards (one every 125 packs). However, there's also a 1% chance that a pack will be a Season 1 pack, in which case the odds are better: up to 0.32% chance of pulling a legendary per card, or 1.6% chance of pulling a legendary per pack (exactly twice the odds of Season 2). Altogether though, the odds of pulling a legendary card from any season are still only a .808% chance per pack.

Additionally, there's a 10% that a pack (from either season) will be able to pull CTE'd cards as well (not ex-nation cards--that's different). These 10% of packs aren't guaranteed to contain only CTE'd cards, but rather than only turning up cards of currently active nations, they might also turn up other cards whose nations don't exist anymore, from the same season. I don't think anyone has the exact numbers on how many of these cards there are total, or how that changes the odds of pulling a legendary. Of course, legendaries and commons CTE alike, but in general it's assumed that legendary cards belong to the nations of players who have been around a while and are thus more likely to stick around. This means they CTE less frequently, so when you open a pack that may contain CTE cards, the odds of pulling a legendary card dip a little bit. If I knew how many cards there were total I'd be able to tell you how much exactly, but presumably the effect is negligible.

Sorry, nerded out there.

TL;DR, you have a 0.1616% chance per card, 0.808% chance per pack, 1 leg every 124 packs.

Unrelatedly, I think the word 'queries' in the title of this thread refers to TNL's query tool, not a general Q&A thread, but I'm not sure there was any better place to ask this question (besides maybe the cards discord).
rəswɛsən

User avatar
The Northern Light
Spokesperson
 
Posts: 156
Founded: Oct 10, 2014
Iron Fist Consumerists

Postby The Northern Light » Sat Mar 07, 2020 7:59 pm

Recuecn wrote:Unrelatedly, I think the word 'queries' in the title of this thread refers to TNL's query tool, not a general Q&A thread, but I'm not sure there was any better place to ask this question (besides maybe the cards discord).

Probably the card market watch thread would be the best place, given that that's where a lot of the data that was quoted comes from.
Home of the WADP, Planet Eras, and the Constibillocode!
Join The North Pacific!
Where the democracy is strong, the debate robust, and the rum plentiful!

Forum | Discord Chat | Citizenship | Executive Staff | North Pacific Army | World Assembly Ministry | Roleplay | Trading Cards | Handbook

User avatar
Praeceps
Diplomat
 
Posts: 757
Founded: Feb 08, 2016
Ex-Nation

Postby Praeceps » Sun Mar 08, 2020 1:32 pm

Recuecn wrote:Unrelatedly, I think the word 'queries' in the title of this thread refers to TNL's query tool, not a general Q&A thread, but I'm not sure there was any better place to ask this question (besides maybe the cards discord).

General questions would be welcomed in the thread for the Cards Guide. It would certainly be helpful to know what additional information should be included in the Guide if there are questions about content not covered in the Guide.
Apparently simultaneously a Ravenclaw puppet, a NPO plant, and a Warden spy. I had no idea I was that good. Depending on who you ask, my aliases include Krulltopia.

Former Minister of Foreign Affairs for The North Pacific, Former Guildmaster of The North Pacific Cards Guild

User avatar
Debussy
Envoy
 
Posts: 229
Founded: Jun 19, 2019
Psychotic Dictatorship

Postby Debussy » Sun Mar 15, 2020 10:57 am

Would it be possible to add a filter for cards on the market?

User avatar
The Northern Light
Spokesperson
 
Posts: 156
Founded: Oct 10, 2014
Iron Fist Consumerists

Postby The Northern Light » Sun Mar 15, 2020 2:19 pm

What do you mean by "on the market"? Currently on auction?
Home of the WADP, Planet Eras, and the Constibillocode!
Join The North Pacific!
Where the democracy is strong, the debate robust, and the rum plentiful!

Forum | Discord Chat | Citizenship | Executive Staff | North Pacific Army | World Assembly Ministry | Roleplay | Trading Cards | Handbook

User avatar
Debussy
Envoy
 
Posts: 229
Founded: Jun 19, 2019
Psychotic Dictatorship

Postby Debussy » Sun Mar 15, 2020 10:30 pm

The Northern Light wrote:What do you mean by "on the market"? Currently on auction?

Yes. From the list, for example, +region:lazarus, it could find every card people current have placed on the market with something like +auction
Last edited by Debussy on Sun Mar 15, 2020 10:30 pm, edited 1 time in total.

User avatar
The Northern Light
Spokesperson
 
Posts: 156
Founded: Oct 10, 2014
Iron Fist Consumerists

Postby The Northern Light » Sun Mar 15, 2020 10:53 pm

I think that should be possible, now that there is the market API. I'll try to look into this, along with another addition I was planning, next weekend. (Sorry, I can't do much NS work on weekdays.)
Home of the WADP, Planet Eras, and the Constibillocode!
Join The North Pacific!
Where the democracy is strong, the debate robust, and the rum plentiful!

Forum | Discord Chat | Citizenship | Executive Staff | North Pacific Army | World Assembly Ministry | Roleplay | Trading Cards | Handbook

User avatar
Debussy
Envoy
 
Posts: 229
Founded: Jun 19, 2019
Psychotic Dictatorship

Postby Debussy » Mon Mar 16, 2020 12:03 am

The Northern Light wrote:I think that should be possible, now that there is the market API. I'll try to look into this, along with another addition I was planning, next weekend. (Sorry, I can't do much NS work on weekdays.)

Don't apologize. You do so much already. This will save me so much time that whenever it is implemented I could not thank you enough. Thank you.

PreviousNext

Advertisement

Remove ads

Return to Trading Cards

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads