The text search is *amazing*. You need to tell people how to use it

Discussion in 'Feedback and Suggestions' started by Rorre, Jun 5, 2013.

  1. Rorre

    Rorre Orc Soldier

    I'm a programming geek, so I just tried a "|" in the text search, and IT WORKED
    [​IMG]

    For people without a programming background, the bar symbol '|' is commonly used for a logical "OR", so the above search finds all items in my inventory with either "accelerate" OR "wellspring" anywhere on the card - I *love* what Unholy Wellspring and Accelerated Thought do for my wizards.

    It's chainable and doesn't mind spaces too, so if I had more healing, I could add "wellspring|accelerate|unholy power|demonic feeback"

    It's also worth noting that it's a full text search, so you can search for "Encumber", or "Encumber 2", and a search for "acid" will also turn up Burning Armor, because it's damage type is acid, along with all the other cards you'd expect.

    A couple of small surprises: It doesn't include damage or range, and you get occasional surprises, like "spark" turning up Sparking Shell and Sparkling Mail, but in general, this is an amazingly useful tool that needs more promotion. Maybe Gary could pop up when you collect, say, 100 cards, and congratulate on progress and point out the text search?

    Edit: Ok, this is in! :D Along with a little "Usable" button. Apparently I need to read the patch notes more clearly.

    So, some useful stuff:
    I haven't seen any range 2 heals for priests, yet, so this filters for all the stabs and step attacks.
    The first number is your lower bound, the second number is your upper bound. Square brackets match anything inside them. As an example is "draws [a2]" will pick up "draws a" and "draws 2", which is all the cards that priests cast that cause people to draw cards.
    This one grabs all the attacks with damage of at least 11 up to 99. This is Powerful Bludgeon, and all the "Mighty" and "Obliterating" attacks. You can change the first number inside the first square brackets to change the minimum. For example, "damage: 1[0-9]" will include Violent Swing and Massive Chop.
    You can probably figure how to tweak this to do what you want. "\d" is the same as [0-9]
    I'm sure you can add or remove to suit your build.

    Let me know if there's stuff you'd like to see, but I should warn you that what you *can't* do is limit a card by two things at once. For example, you can't search for "long range abilities that do damage". You can do range, or you can do damage, but not both at once.
     
  2. skip_intro

    skip_intro Ogre

    Yes, that does need to be highlighted. There was much joy and celebration when it was discovered.
     
  3. Hessian

    Hessian Orc Soldier

    No comprehende....

    Is this in game or on the forum or who?
     
  4. Wounder

    Wounder Mushroom Warrior

    Game. Anytime you have access to inventory, basically. And yeah, it's excellent. A more comprehensive guide would likely help, because it does have the feel of "by code monkeys, for code monkeys". Speaking as a code monkey, mind you! :)
     
    skip_intro likes this.
  5. Rorre

    Rorre Orc Soldier

    Edit: I moved the pic up into the OP, so it would just take up space here now.
     
  6. Jon

    Jon Blue Manchu Staff Member

  7. Rorre

    Rorre Orc Soldier

    The text search has solved quite a number of the inventory troubles I've had, but one that's still very hard to do is "Show me all my ranged melee attacks". Is there any plans to make range and/or damage be searchable?

    Edit: I'm no guru, but I've written an incomprehensible RegExp or two in my time. If people have searches they'd like to be able to do, feel free to ask here and if I can figure out how to do them, I'll add them to the OP.

    By far the most useful for me so far have been really straightforward searches for keywords: "Encumber" "Stun" "Burst" "Bash" "Penetrating" etc, applied either to my entire inventory or to a specific slot.

    I think there's a lot that you could do that really isn't worth the additional effort unless you were already into RegExps. For example, you could get just sparks, and and avoid the sparkling mail with "spark$", but I doubt anyone really cares that much.
     
  8. Jon

    Jon Blue Manchu Staff Member

    It would be quite easy to add sort by range/damage/move amount. I'm not quite sure how to filter by these. Any suggestions?
     
  9. Rorre

    Rorre Orc Soldier

    Well, the most obvious thing to me is the mouse-over text. it says "Range: 1", so if you just included those tooltips in the searchable stuff that seems the easiest way to make me happy. You'd be able to find Obliterating Bludgeon with just "17" which would be nice, and you'd be able to get all the stabs + Spear Of Darkness + Reaching Swing with "Range: 2", limiting it to normal or divine weapons as appropriate.

    That's not "sorting", but so far I've found that the filter achieves what really I want. The search in the OP, for example. I want to see all the items in any slot that have those cards on them so I can see the talent requirements and plan where I'm going to spend the talents.

    So I would find the filtering more useful, but I don't really know if that's going to be popular. Would "normal people" be willing to copy-and-paste regexps for common filters?

    The regexp for "range greater than 1" would be a little ugly - I can't be sure without testing it, but I think it would be something like "Range: ([2-9]|\d\d)".

    There would definitely be a wiki page with common searches, but there's probably some very good reason why linking to it would be a bad idea.

    A sneakier way to solve the "warrior for fighting trogs" scenario would be to include the word "stab" in the flavor text for those range 2 melee cards that don't have it in their title, and then "stab" works (and "stab\b" excludes Unstable Bolt).
     
    Wounder likes this.
  10. Jon

    Jon Blue Manchu Staff Member

    Easy. I like it.
     
  11. Jon

    Jon Blue Manchu Staff Member

    This will be in the next build.
     
    Grombak and Wounder like this.
  12. Rorre

    Rorre Orc Soldier

    Huzzah! and thanks :D

    I'll edit the OP with more good stuff when it works, and make sure it's all on the wiki somewhere.
     
  13. Rorre

    Rorre Orc Soldier

    Ok, this is in! :D Along with a little "Usable" button. Apparently I need to read the patch notes more clearly!

    So, some useful stuff:
    I haven't seen any range 2 heals for priests, yet, so this filters for all the stabs and step attacks.
    The first number is your lower bound, the second number is your upper bound.
    This one grabs all the attacks with damage of at least 11. This is Powerful Bludgeon, and all the "Mighty" and "Obliterating" attacks. You can change the first number inside the square brackets to change what you want. For example, "damage: 1[0-9]" will include Violent Swing and Massive Chop. By the way: If all you want is your "Obliterating" stuff, you can just type "17", and that'll get them.
    Nothing does twenty damage yet, so this will do for now.
    You can probably figure how to tweak this to do what you want.
    I'm sure you can add or remove to suit your build.

    Let me know if there's stuff you'd like to see, but I should warn you that what you *can't* do is limit a card by two things at once. For example, you can't search for "long range abilities that do damage". You can do range, or you can do damage, but not both at once.

    I hope that's enough content to excuse the bump.
     
    Pawndawan and Wounder like this.
  14. Zalminen

    Zalminen Hydra

    Almighty Bludgeon :)

    I don't remember if it's on any of the current items though.
     
  15. Xayrn

    Xayrn Hydra

    I can't believe I've been playing this game for over half a year without knowing about this; it's incredibly useful! And yet, it's hidden away in the dark depths of the 2013 feedback forum. Even the FAQ doesn't seem to mention it!

    I'd like to suggest 2 things regarding this hidden gem of a feature:
    1. Make it more publicly visible. (@Scarponi? Gary?)
    2. Allow an 'and' function by splitting the search string around the & character and returning a match only if all resulting patterns are found (this would be a huge convenience and complement the | operator already present in regex).
     
    Last edited: Aug 25, 2015
    Sir Veza, timeracers and Flaxative like this.
  16. Would

    Code:
    Damage.*Range|Range.*Damage
    
    work?

    It might, if the way it's working is by turning the card into a single string and accepting the input as a raw regex to be compiled and evaluated. If, OTOH, it's going field-by-field, then it won't.
     
  17. Flaxative

    Flaxative Party Leader

    I... also had no idea.
     
  18. Phaselock

    Phaselock Bugblatter

  19. Scarponi

    Scarponi Moderator

    Yeah I thought about adding it, but that post was already so long, I didn't want to crowd it further. My hope was to link to the specific text search point on the wiki page (rather than the whole page), but I don't actually know how to link to a point on a page and apparently never remembered to get back to it to figure out how.
     
  20. Pawndawan

    Pawndawan Champion of Cardhuntria

    http://wiki.cardhuntria.com/wiki/Searching_the_Inventory#Using_the_text_search
     
    Phaselock and Scarponi like this.

Share This Page