Armageddon General Discussion Board

General => Code Discussion => Topic started by: Morgenes on March 25, 2009, 02:58:34 PM

Title: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Morgenes on March 25, 2009, 02:58:34 PM
Reposting from the Staff Announcements forum (original link: http://www.zalanthas.org/gdb/index.php/topic,34852.msg436222.html#msg436222), please use this thread to discuss this change:

I've extended the '.' notation for referring to things to allow you to combine multiple keywords.  If you want to be more specific, you can refer to someone by combining multiple keywords and separating them with a '.'.

Examples:

   > look brown.candle
   # Looks at the brown candle.

   > keyword blue.cotton
   # Show all things in the vicinity that have the keywords 'blue' and 'cotton'

   > kill muscular.man
   # Kills the muscular man

   > put all.tallow.candle 2.large.bag
   # Puts all of the tallow candles into the second large bag.

   > emote flips ~blue.wrap behind him.
   # Performs an emote showing me flip my 'blue wrap' behind me.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: brytta.leofa on March 25, 2009, 03:02:01 PM
Morg, I've been wishing for this ever since you described it for Arm Reborn. :D Thanks.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: RogueGunslinger on March 25, 2009, 03:05:32 PM
No more misstargets? Oh hell yes.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Synthesis on March 25, 2009, 03:11:22 PM
:high-fives ~guru.morgenes

Question:  can we do multiple keywords for multiple overlaps?  For instance, if there are two "tall" characters who both have "brown" as a keyword (the tall, brown-eyed man and the tall figure in a hooded brown military aba), can we emote at ~tall.brown.eyed?
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Morgenes on March 25, 2009, 03:14:06 PM
Quote from: Synthesis on March 25, 2009, 03:11:22 PM
Question:  can we do multiple keywords for multiple overlaps?  For instance, if there are two "tall" characters who both have "brown" as a keyword (the tall, brown-eyed man and the tall figure in a hooded brown military aba), can we emote at ~tall.brown.eyed?

Yes, you can separate as many keywords as you like with '.' as you suggested above.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Synthesis on March 25, 2009, 03:20:50 PM
Quote from: Synthesis on March 25, 2009, 03:11:22 PM
:high-fives ~guru.morgenes

:high-fives ~super.fucking.awesome.guru.morgenes
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: RogueGunslinger on March 25, 2009, 03:21:19 PM
My god I'm so excited for this. Can we 'keyword tall.dark.handsome' as well? Has that already been in place? Is it even useful? I don't know but I want to do it.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Morgenes on March 25, 2009, 03:24:04 PM
Quote from: RogueGunslinger on March 25, 2009, 03:21:19 PM
My god I'm so excited for this. Can we 'keyword tall.dark.handsome' as well? Has that already been in place? Is it even useful? I don't know but I want to do it.

See the examples above:

Quote> keyword blue.cotton
   # Show all things in the vicinity that have the keywords 'blue' and 'cotton'
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: RogueGunslinger on March 25, 2009, 03:26:09 PM
Oh, missed that. Awesome, thank you!
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Twilight on March 25, 2009, 03:26:34 PM
Thank you.

Especially for emoting, this is awesome.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: mansa on March 25, 2009, 03:34:05 PM
This is really awesome.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Agent_137 on March 25, 2009, 03:34:56 PM
:splooges.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: brytta.leofa on March 25, 2009, 03:37:36 PM
¿ count blue.fruit all.bag ?
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Morgenes on March 25, 2009, 03:41:26 PM
Quote from: brytta.leofa on March 25, 2009, 03:37:36 PM
¿ count blue.fruit all.bag ?

Not yet, currently put and get are the only commands that understand the 'all.' notation.  I will consider this for count though.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: number13 on March 25, 2009, 03:41:49 PM
Wow. Unexpected and totally awesome.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: mansa on March 25, 2009, 03:43:32 PM
Now I need to update my new players guide:  http://www.zalanthas.org/gdb/index.php/topic,33512
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: brytta.leofa on March 25, 2009, 03:51:32 PM
Quote from: Morgenes on March 25, 2009, 03:41:26 PM
Quote from: brytta.leofa on March 25, 2009, 03:37:36 PM
¿ count blue.fruit all.bag ?

Not yet, currently put and get are the only commands that understand the 'all.' notation.  I will consider this for count though.

Y'know, when combined with multi-keyword-filtering, doesn't this present some new possibilities for other sorts of targetting?  (Ability to fairly selectively target multiple people, instead of just individuals OR the whole room.)

  > cast 'sul un bugaboo evil weevil' all.soldier.human,all.templar,yellow.kank
  Magickal currents begin to swirl around you.
  Hope you got enough mana for all that, buddy!

  > order unit.archers shoot all.giant.soldier north
  (Splits the unit's fire between all specified targets.)

Not saying that it's worth it, just that it's probably more feasible now. ;)
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: RogueGunslinger on March 25, 2009, 03:53:44 PM
Whoah. Cool idea Brytta.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: rishenko on March 25, 2009, 04:18:35 PM
Awesome.  Awesome.  Awesome.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Maso on March 25, 2009, 04:20:53 PM
YAY.

This is awesome!!
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Akoto on March 25, 2009, 05:08:03 PM
This is an awesome addition! Great work, Morgenes.  :)
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Mechafish on March 25, 2009, 05:52:35 PM
Thank you for this!  Great work.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Taven on March 25, 2009, 06:42:48 PM
I have an overwhelming urge to make you cookies, or brownies, or cake.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: mangler on March 25, 2009, 08:00:49 PM
Awsomesauce. Morgenes is legend.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Bogre on March 26, 2009, 02:46:39 PM
This ability is awesome, especially in really crowded, spammy places!

Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Delstro on March 26, 2009, 08:26:45 PM
Can you "Forage Rock.flint"?
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: brytta.leofa on April 06, 2009, 12:27:23 PM
A possible extension: add the ability to EXCLUDE keywords from the match.

   > kill beetle.-war   (attack the first beetle that ain't somebody's mount)
   > spit rugged.one-eyed.-templar  (spit on the first rugged, piratical commoner)

I know, Morgenes, I'm an ungrateful, never-satisfied git.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Synthesis on April 06, 2009, 02:27:03 PM
I'd just like to reaffirm the double.plus.good status of this addition.

It takes a little getting used to (mainly to get over the laziness of fishing for a single unique keyword identifier), but once you start defaulting to multiple keywords, it's flippin' awesome.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: jmordetsky on April 06, 2009, 07:00:45 PM
bad ass. No more killing my black inix when I mean to kill the black beetle.

:)
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: mansa on July 09, 2009, 10:56:08 PM
Can you:

>put all.coins pack

?
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Wyx on July 09, 2009, 11:08:38 PM
You can just "put coins pack." This modification went in some time ago.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Ashes on July 09, 2009, 11:27:27 PM
Last time I tried, you still could not "put coin pack,"  if you happened to only have one coin in your inventory.  I had to do "put 1 coins pack," as "put coins pack" turned up nothing to match the keyword.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Bluefae on July 10, 2009, 01:17:16 AM
Quote from: Wyx on July 09, 2009, 11:08:38 PM
You can just "put coins pack." This modification went in some time ago.

     Wow, didn't know this.  Thanks!
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: jmordetsky on July 10, 2009, 03:03:51 PM
Quote from: brytta.leofa on April 06, 2009, 12:27:23 PM
A possible extension: add the ability to EXCLUDE keywords from the match.

  > kill beetle.-war   (attack the first beetle that ain't somebody's mount)
  > spit rugged.one-eyed.-templar  (spit on the first rugged, piratical commoner)

I know, Morgenes, I'm an ungrateful, never-satisfied git.

That is pretty awesome. A beetle walked in on me the other day and I was like "shit..keyword...not beetle...uh...not huge....shit....BLACK...kill BLACK!"

Good thing there was no blackhaired man.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: MarshallDFX on July 10, 2009, 03:11:18 PM
Quote from: jmordetsky on July 10, 2009, 03:03:51 PM
Quote from: brytta.leofa on April 06, 2009, 12:27:23 PM
A possible extension: add the ability to EXCLUDE keywords from the match.

   > kill beetle.-war   (attack the first beetle that ain't somebody's mount)
   > spit rugged.one-eyed.-templar  (spit on the first rugged, piratical commoner)

I know, Morgenes, I'm an ungrateful, never-satisfied git.

That is pretty awesome. A beetle walked in on me the other day and I was like "shit..keyword...not beetle...uh...not huge....shit....BLACK...kill BLACK!"

Good thing there was no blackhaired man.

Thank God for the stop command. 
Kill beetle
think WAIT! NO DON'T!
stop
1 command purged.
think Phew.
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: brytta.leofa on July 10, 2009, 03:19:08 PM
The rugged, white-eyed man exclaims, in southern-accented sirihish,
  "Not mah mount!"
Title: Re: Discussion of Extension to the '.' notation to allow multiple keywords
Post by: Ashes on July 13, 2009, 12:26:27 AM
The stubble-bearded, one-eyed man exclaims, in sirihish:
                             "Down, Spunky!  Down!  Tek, not 'gain!"