Advice on some scripted functionality

Posted by Xinphinity on Wed 19 Oct 2005 04:36 PM — 3 posts, 16,447 views.

USA #0
Greetings;

Its been a while since I've posted and I'll admit up front I've forgotten a lot of stuff.

Here is what I am trying to do. (running SmaugFUSS on Cygwin)

I'm trying to create a room that has containers and such in the description only, and then when the player 'looks' at the container (using an extra description), they can 'see' objects like 'a simple black cloak'.

What I'd like to do is make it so that when they 'get cloak or 'buy cloak or whatever, a copy of the cloak is loaded and given to the player. I'm willing to use whatever combinations of scripts, objects and mobs I need to in order to do this, so any advice would be great.

Thanks!
USA #1
I'm not really sure what you mean. When the player gets/buys an item, it's already in their inven. Or do you mean you want another of the same item to be given, so they have 2? From what I understand, you'll have to use an act prog on the object to match the acts like "Bob buys a black cloak".
USA #2
Ok, so you're saying that the room is actually empty except for the player. The room description mentions a container, which they can examine via room exdesc which describes items being in the container and you want to create a room prog that when they type get <obj> mpoloads that object and gives it to them?

I'd go with an act prog for that, though I'm not sure how you'd do it because the command get will respond with 'you don't see that here' instead of sending the message that the room prog will need. Is there a reason to not just make a container object with the objects in question in it or a shopkeeper mob?