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
➜ SMAUG coding
➜ programs for objects
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Harsk
USA (47 posts) Bio
|
Date
| Mon 28 Jan 2002 10:43 AM (UTC) |
Message
| Been trying to get it so that players (both the player themselves, and those in the room) will see a message when something is either worn, or wielded. So far, I've just drawn one big blank, any help would be greatly appreciated. | Top |
|
Posted by
| Cirus
(22 posts) Bio
|
Date
| Reply #1 on Fri 07 Mar 2003 02:35 PM (UTC) |
Message
| hum I once experimented with makeing it so that the object reconized the action as an emote and responded that way why don't ya try that I think I used opedit add speech <emoted action> and that MIGHT work..... |
CiRuS ThE ViRuS
Star Wars Spiral Void
wildcat1245@up-link.net | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #2 on Fri 07 Mar 2003 06:59 PM (UTC) |
Message
| Actually, showing an echo when an obj is worn or removed is fairly simple. Find the do_wear and do_remove functions in your code, look for the section that actually handles putting the object into a legal wear slot and add a message like send_to_room("$n has worn $o",ch, obj). Granted that exact code may not quite work but you get the idea. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.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.
12,013 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top