Register forum user name Search FAQ

Gammon Forum

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 ➜ Object Speech Program

Object Speech Program

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by BlackDah4   USA  (1 post)  Bio
Date Tue 18 Feb 2003 05:33 AM (UTC)
Message
Ok first off I have to say that I know nothing at all about C++ coding and my knowledge with Smaug is limited. I use SmaugWiz due to the fact that it's pretty much ready to go and makes it a bit easier for me to learn the internal programming.

On to my question. I have an object that I have successfully added programs to except for speech. I'm trying to add one or more programs to it which basically makes it so that when the person that has it (in their inventory or is wearing it) says something, the object will do something in return (i.e. mpecho). I did get the program to work when the object was lying on the ground, but I want it to work for only the person who has it. Here is what I have, which does not work, and I can't for the life of me figure out how to make it work:

speech_prog Rio
if ovnumcarry(1236)
mpecho Her name is Rio and she dances on the sand.
endif

I've also tried if ovnumcarry(1236) >= 1, tried using ovnumhere, pretty much all the variations I could think of. Once again, my knowledge is limited. This could be an easy fix or it might require some C++ changes. Either way, I would really like some help. :) Thanks in advance.


- The Black Dahlia -
@----->----->----->-----
http://www.blackdah4.com/
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Tue 18 Feb 2003 07:59 PM (UTC)
Message
Actually, the ACK! codebase has this in place and has for some time. Get a copy of the source and look at the various obj flags, there are several with echos (and effects) when carried.

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.


9,814 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.