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.
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.