Armageddon General Discussion Board

General => Code Discussion => Topic started by: alicedavignon on May 16, 2009, 07:46:38 AM

Title: "Keep" command
Post by: alicedavignon on May 16, 2009, 07:46:38 AM
I don't know if something similar exists in Armageddon already, but can we have a MUD2-ish "keep" command. What it basically does is disable the automatic removal of items when you try to drop them, e.g.

>$put wood campfire
>You put a piece of wood into the campfire.
>$put wood campfire
>You put a piece of wood into the campfire.
>$put wood campfire
>[Removing a wood-decorated cloak first.] *
>You put a wood-decorated cloak into the campfire.


The only thing the command does is disable the step *. Happens to be all the time when I try storing hides in a chest and, although a minor inconvenience to me (a frequent one nevertheless), looks pretty stupid to everyone else in the room.
Title: Re: "Keep" command
Post by: Lizzie on May 16, 2009, 09:01:32 AM
There's a "key" command you can use, to see which items are which. You can also try counting, if you're transferring from one container to the other. It shouldn't be too much of an issue, and only happen rarely, if you're paying attention.

key wood chest
(list of 20 different wood items, and items #5-9 are the ones you want).
so there are 5 items total you want, beginning with #5.

get 5.wood chest
get 5.wood chest
get 5.wood chest
get 5.wood chest
get 5.wood chest
(you can't carry that many. Okay so you have 4 in your inventory, and 1 more still in the chest)

put wood trunk
put wood trunk
put wood trunk
put wood trunk
get 5.wood chest
put wood trunk

done.
Title: Re: "Keep" command
Post by: SMuz on May 16, 2009, 09:17:55 AM
Heh, yeah, but there's always a time when you end up careless, especially during late night games or when you're in a rush. Some kind of "auto-remove off" would keep bad situations from getting worse.


The grizzled templar sends you a telepathic message:
      "Hurry up!"

>put bone chest

[Removing it first.]
You put your bone-studded pants in the chest.

>key bone chest
(list of 84 different bone items in the chest, good luck finding your pants)

With an annoyed expression, the grizzled templar has arrived from the west.


Though generally, you should always keyword things when you can. The "count (object)" command can also do wonders in preventing such mistakes, as does using "piece.wood" instead of just "wood".
Title: Re: "Keep" command
Post by: Ourla on May 16, 2009, 02:22:06 PM
This should probably be in Code Discussion.
Title: Re: "Keep" command
Post by: brytta.leofa on May 16, 2009, 10:32:22 PM
put bone.!pants chest