by Ice Cream Jonsey » Tue Dec 09, 2003 9:00 pm
Hey, can you have conditions for "living" and "object" for the same verb? I.E. -- and I don't mean that crappy Browser
!!!!
Code: Select all
verb "spit"
* DoVague
* living DoSpitLiving
* "on" living DoSpitLiving
* "at" living DoSpitLiving
* object DoSpit
* "on" object DoSpit
* "at" object DoSpit
routine DoSpitLiving
{
if object.conscious = 0
{
"I hock a sizeable loogie and let go."
}
else
{
"Being brought up by Old Man Duffy gets in the way of spitting in a face!"
}
}
routine DoSpit
{
"I try to keep the city clean, eh?"
}
... Anyway, if I try to run all that I see that it handles me trying to spit on a living object OK, but it won't invoke DoSpit if I try to spit on an object.
EDIT! Also, if I try to handle talking to an object and talking to a living entity in DoTalk (for instance, I have a skull in the game and I want the PC to be able to try to talk to it, but I don't want that skull to get any of the other privledges that the living tag offers) it'll mess up in the same way.
Is there a way to make it so that I can have different default commands for spitting on animate and inanimate things?
Hey, can you have conditions for "living" and "object" for the same verb? I.E. -- and I don't mean that crappy Browser[i]!!!![/i]
[code]
verb "spit"
* DoVague
* living DoSpitLiving
* "on" living DoSpitLiving
* "at" living DoSpitLiving
* object DoSpit
* "on" object DoSpit
* "at" object DoSpit
routine DoSpitLiving
{
if object.conscious = 0
{
"I hock a sizeable loogie and let go."
}
else
{
"Being brought up by Old Man Duffy gets in the way of spitting in a face!"
}
}
routine DoSpit
{
"I try to keep the city clean, eh?"
}
[/code]
... Anyway, if I try to run all that I see that it handles me trying to spit on a living object OK, but it won't invoke DoSpit if I try to spit on an object.
EDIT! Also, if I try to handle talking to an object and talking to a living entity in DoTalk (for instance, I have a skull in the game and I want the PC to be able to try to talk to it, but I don't want that skull to get any of the other privledges that the living tag offers) it'll mess up in the same way.
Is there a way to make it so that I can have different default commands for spitting on animate and inanimate things?