i am very new to programming, so pardon all that comes with that please.
I am creating a sample game based off of a basic house design, more to explore design and proper coding than make a functional game at this point. i am having problems making an NPC cat. i would like the player to be able to pet the cat but cannot figure out how to do that since it is not a predefined action. I was able to define it, place it in a room and give it a HermitActorState as well as a noResponse property. But instead of “talk to cat” i would like to be able to input the command “pet cat” or “pet the cat”.
Here is the code i am working with:
sara : Actor 'calico cat' 'cat' @kitchen "The cat is a rather large female calico, the tag on her collar says her name is Sara. " ; + HermitActorState specialDesc = "a calico cat lies on the ground by the food bowl, her tail thwacking loudly on the floor. " noResponse = "The cat is busy ignoring you right now. She licks her paw while keeping an eye on you. " isInitState = true ;
i do not think i know enough about programming to do this on my own. does anyone have any details they could share?