Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Running the server
➜ Advice on some scripted functionality
Advice on some scripted functionality
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Xinphinity
USA (26 posts) Bio
|
Date
| Wed 19 Oct 2005 04:36 PM (UTC) |
Message
| 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! | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Wed 19 Oct 2005 04:58 PM (UTC) |
Message
| 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". |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Conner
USA (381 posts) Bio
|
Date
| Reply #2 on Wed 19 Oct 2005 08:10 PM (UTC) |
Message
| 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?
|
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,466 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top