Author Topic: Same keyword different results  (Read 879 times)

UNTAG

  • Newbie
  • *
  • Posts: 2
Same keyword different results
« on: December 13, 2020, 09:41:18 PM »
Hi,

Hopefully you guys can guide me on the right path and/or supply the much needed help.

I want VoiceAttack to tell me if an item is valuable or not and if that item is needed for a quest.

For example, if I say: Red Keycard (https://tarkov-market.com/item/lab._red_keycard). It should inform me that the item is valuable.

What did I try to do? Was something like this:
1) A;B;C;D;E
2) F;G;H;I;A;B;C

As soon as I had two commands that had the same words in it the program would halt and not allow me to save that command.

So... how do I get around this?

Maybe the solution is that I should create three categories:
1) Valuable
2) Valuable + Quest item.
3) Quest item.

or what's a better way of doing this?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Same keyword different results
« Reply #1 on: December 13, 2020, 11:37:09 PM »
The same word(s) can be used in multiple commands, provided that the complete phrase is unique.

However, for this application, using those three commands would likely be the simplest way.


The alternative would be to use a single command, and do the differentiation internally (using conditions, or even an inline function, just to make it easier to edit), however, given that there are only three different categories, that's a lot more complex for no real gain.

UNTAG

  • Newbie
  • *
  • Posts: 2
Re: Same keyword different results
« Reply #2 on: December 14, 2020, 05:31:05 AM »
Thank you very much!