Armageddon General Discussion Board

General => Code Discussion => Topic started by: cisalus on April 01, 2004, 04:49:41 PM

Title: Devour.. Eat spam?
Post by: cisalus on April 01, 2004, 04:49:41 PM
Eat spam - spam = Devourer

>devour pie
Amos eats all of his massive pie in a series of large bites

..as opposed to...

>eat pie
Amos eats a portion of a partially eaten fifteen-cord tall gimpka pie.

>eat pie
Amos eats a portion of a partially eaten fifteen-cord tall gimpka pie.

>eat pie
Amos eats a portion of a partially eaten fifteen-cord tall gimpka pie.

>eat pie
Amos eats a portion of a half-eaten fifteen-cord tall gimpka pie.

etc, etc...

I personally don't like sitting in the mess hall of ANY compound and seeing 10 militants chomping away at their food.. over.. and over... Even all those eat emotes are spammy. Ugh.

Thoughts?
Title: Devour.. Eat spam?
Post by: SailorMars on April 01, 2004, 05:05:13 PM
Well if they're going to add that, add 'scour' too... a command that would 'clean' as many times as necessary until something was clean or stained. ;)
Title: Devour.. Eat spam?
Post by: Tamarin on April 01, 2004, 05:09:13 PM
I love this idea.
Title: Devour.. Eat spam?
Post by: RideTheDivide on April 01, 2004, 05:19:19 PM
I think we should also put in a killskincraft command too so that rangers don't have to create so much spam.
Title: Devour.. Eat spam?
Post by: Tamarin on April 01, 2004, 05:48:02 PM
Can we please dispense with the obvious witty retorts when a perfectly good idea has been presented?
Title: Devour.. Eat spam?
Post by: Bestatte on April 01, 2004, 06:00:19 PM
The problem with a "devour" thing is that it just isn't that simple. You have to take into account the "fullness state" of the person eating. What if he only needs one more bite to be so full he can't eat anymore?

That's more needed in the code to account for, turning what sounds like a nice easy solution to be not so easy.

What I -would- like is to be able to add <item> to <get all.>

Such that, if I have 10 red peppers in my pack, 15 shards, 5 waterskins, and 3 chunks of red stone

I could "get all chunk pack" and retrieve all 3 chunks. Obviously if I had 3 red chunks and 3 black chunks I'd have to deal with not having enough room in my inv to carry all 6 chunks.  But it beats the heck out of trying to get all, or get red until you have the -right- red, or get chunk until you have the -right- chunk.
Title: Devour.. Eat spam?
Post by: UnderSeven on April 01, 2004, 06:07:54 PM
Well a 'devour' commmand could work like a craft.

>devour baby

You begin to eat a baby.

...

You can no longer eat any more baby.

>inven
A partially eaten baby.

could even take as long as individual bites could so you could type score and use
>stop
or something to cease part way.
Title: Devour.. Eat spam?
Post by: cisalus on April 01, 2004, 06:13:33 PM
Oh, by the way, I finally have presented a good idea. Thanks for the thoughts

:P
Title: Devour.. Eat spam?
Post by: Angela Christine on April 01, 2004, 07:14:22 PM
Poison could be a problem.  Will it stop you after the first bite of poisoned gimpka pie, or will eat all 9 bites, consuming 9 doses of poison?  In general, less poison is better than more poison.


AC
Title: Devour.. Eat spam?
Post by: cisalus on April 01, 2004, 07:26:58 PM
Quote from: "Angela Christine"Poison could be a problem.  Will it stop you after the first bite of poisoned gimpka pie, or will eat all 9 bites, consuming 9 doses of poison?  In general, less poison is better than more poison.

We're all assuming that we've obtained food from a reliable source.

And if someone was smart enough to check for poison, they would taste, THEN devour? Good thought though, no doubt
Title: Devour.. Eat spam?
Post by: sacac on April 01, 2004, 07:55:21 PM
I like it.
Title: Devour.. Eat spam?
Post by: on April 01, 2004, 08:13:57 PM
I would like to see this as well, not to replace the eat command but to augment it.
Title: Devour.. Eat spam?
Post by: cisalus on April 01, 2004, 08:15:14 PM
Quote from: "Xerin"I would like to see this as well, not to replace the eat command but to augment it.

I never meant to kill the eat command, it'd still be around..
This'd just be helpful in large groupings, where if you are playing on modem, a few people aren't going to spam you out by eating a pie. :P
Title: Devour.. Eat spam?
Post by: EvilRoeSlade on April 01, 2004, 08:19:23 PM
There might be coding problems, and then again there might not be.  If it can easily be coded, then it should be.  If it can't, then I don't think it's worth the time of day.
Title: Devour.. Eat spam?
Post by: Lazloth on April 02, 2004, 12:16:55 AM
Just get rid of the room echo to 'eat'.
Title: Devour.. Eat spam?
Post by: Dracul on April 02, 2004, 12:20:41 AM
Quote from: "Lazloth"Just get rid of the room echo to 'eat'.

Well no...it is an action, that's obvious...and how would I know if I successfully poisoned you then?
huh. ;)
Title: Devour.. Eat spam?
Post by: Quirk on April 02, 2004, 09:40:12 AM
Devour should be reasonably simple to code, and would rid us of a lot of annoying spam. I'd love to see it.

Quirk
Title: Devour.. Eat spam?
Post by: Anonymous on April 02, 2004, 10:37:40 AM
Quote from: "Bestatte"The problem with a "devour" thing is that it just isn't that simple. You have to take into account the "fullness state" of the person eating. What if he only needs one more bite to be so full he can't eat anymore?

Not simple?  I think you are talking about a pretty basic check that anyone proficient enough to code on Arm would take care of in a few lines.
if (hunger_rating(pc) < food_rating(fooditem)) {
      /* Devour code here */ }
else {
      /* Echo to player that they are too full to eat all of that */}
Title: Devour.. Eat spam?
Post by: sarahjc on April 02, 2004, 11:12:23 AM
AS a self proclaimed, shamefull spam eater.. I like the idea.
Title: Devour.. Eat spam?
Post by: Delirium on April 02, 2004, 11:21:28 AM
I'd suggest that the echo to other players be something like:

$n consumes <food object>.

Or some other word similar to that, that ISN'T 'devours'.

Because if you just want to emote how you're eating everything, and then 'devour' it at the end to avoid the eating spam, it would look funny if:

A pale-skinned noble daintily cuts a piece of meat into bites, forking small bits into her mouth one at a time.

A pale-skinned noble devours a piece of meat.

You see my point? ;)
Title: Devour.. Eat spam?
Post by: Quirk on April 02, 2004, 11:33:39 AM
Quote from: "CRW"Not simple?  I think you are talking about a pretty basic check that anyone proficient enough to code on Arm would take care of in a few lines.
if (hunger_rating(pc) < food_rating(fooditem)) {
      /* Devour code here */ }
else {
      /* Echo to player that they are too full to eat all of that */}

Or, with a slightly more sophisticated handling:


bool foodLeft = true;

while( hunger_rating( pc ) < PC_FED_MAX && foodLeft )
{
  /* Reduce food by a bite, increase PC hunger_rating by the corresponding value */

  if( allEaten( food ) ) foodLeft = false;
}

if( untouched( food ) )
{
  /* Echo to player that they are too full to eat that
     Return */
}
else if( foodLeft )
{
  /* Echo to player that they eat the food until they can eat no more
     Return */
}
else
{
  /* Echo to player that they devour the food to the last morsel
     Return */
}


The modified code would have the advantage it would allow you to eat as many bites of a particular piece of food as you have room for without any additional spam or need for another command.

Quirk
Title: Devour.. Eat spam?
Post by: Vega on April 02, 2004, 08:26:25 PM
It's funny how easy the solution can be when it's sitting under your nose. Getting rid of the room echo as Lazloth suggests sounds perfect for the problem we have (or at least, the perceived problem).
Title: Devour.. Eat spam?
Post by: Angela Christine on April 02, 2004, 09:04:10 PM
I'd prefer for eat spam, along with look spam and movement spam, to be togglable.  There are times when you want to know that someone is eating, and times that you want to gag it because of screen scroll.

AC
Title: Devour.. Eat spam?
Post by: Malifaxis on April 02, 2004, 09:26:54 PM
That would 'solve' te problem, but what happens if you want to poison someone and do something dramatic at the same time.  You would never see them eat it unless they are emoting it... which not everybody does.

X eats blah portion of blah poisoned food

You exclaim to X, laughing maniacally, in sirihish;
"Ahahahaha, you have fallen for my evil plan!  Now I will rule the world! I'm a naughty boy!  Naughty, naughty, naughty!"

I think, in consideration of the devour idea, that it would actually be best if there was no effect, or even message, if you devour a poisoned munchie.  Devour would show that you're 'really' hungry in an RP situation.  You're probably not going to notice if something tastes slightly off.

As an aside, a 'chug' command or something of the like would rule for those northern drinking games.

You begin to chug a flourescent neon pink bottle.
X begins to chug a flourescent neon pink bottle.

You begin to feel intoxicated.
You begin to feel light-headed.
X wobbles slightly, still chugging on his flourescent neon pink bottle.
You get really drunk.

Your flourescent neon pink bottle is empty.
X lowers his flourescent neon pink bottle.

I think it's an awesome idea, and I think it's got a lot more potential than just removing the eat echo.  Also, if certain races/classes got certain bonuses to chugging (in the respect of speed reduction, if going on the 'crafting time' devour idea), it would actually lend more lure to playing a merc... or a half giant.

The thunder-thighed, ample giantess grins at you over the top of a big ass keg of liquor.
The thunder-thighed, ample giantess begins to chug a big ass keg of liquor.

(goes off to ponder the ramifications of an HG drinking game in a crowded tavern)
Title: Ooh, ooh.
Post by: Satansfish on April 03, 2004, 07:59:40 AM
You could rework the eat command, kind of interbreed with with emote.

eat cake @ lifts ~cake to his lips, taking a bite from it and chewing.
<room sees>
The guy with the bright idea lifts a travel cake to his lips, taking a bite from it and chewing.
eat cake Stuffing the remainder of ~cake into his mouth, @ swallows thickly.
<room sees>
Stuffing the remainder of a small portion of a travel cake into his mouth, the guy with the bright idea swallows thickly.
Title: Re: Ooh, ooh.
Post by: SpyGuy on April 03, 2004, 01:43:17 PM
Quote from: "Satansfish"You could rework the eat command, kind of interbreed with with emote.

eat cake @ lifts ~cake to his lips, taking a bite from it and chewing.
<room sees>
The guy with the bright idea lifts a travel cake to his lips, taking a bite from it and chewing.
eat cake Stuffing the remainder of ~cake into his mouth, @ swallows thickly.
<room sees>
Stuffing the remainder of a small portion of a travel cake into his mouth, the guy with the bright idea swallows thickly.

This is a nice idea, have it be like look emotes.  Those seem to cut down on the monotonous spam when people learn how to use them.